disableAnimations property

bool get disableAnimations

Whether reduced motion is active.

Implementation

bool get disableAnimations => _disableAnimations;
set disableAnimations (bool disabled)

Toggles reduced motion; a live simulation retargets onto MorphMotion.instant (or back) with velocity carried over.

Implementation

set disableAnimations(bool disabled) {
  if (_disableAnimations == disabled) {
    return;
  }
  _disableAnimations = disabled;
  if (isAnimating) {
    _retarget(_target, velocity: _velocity);
  }
}