disableAnimations property
Whether reduced motion is active.
Implementation
bool get disableAnimations => _disableAnimations;
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);
}
}