isReducedMotionEnabled static method

bool isReducedMotionEnabled(
  1. BuildContext context
)

Check if reduced motion is preferred.

Implementation

static bool isReducedMotionEnabled(BuildContext context) {
  return MediaQuery.of(context).disableAnimations;
}