nullableDisableAnimations property

bool? get nullableDisableAnimations

Returns whether to disable animations for the nearest MediaQuery ancestor or null if none exists.

Example:

bool? disableAnimations = context.nullableDisableAnimations;

Implementation

bool? get nullableDisableAnimations =>
    MediaQuery.maybeDisableAnimationsOf(this);