getCurve static method

Curve getCurve(
  1. BuildContext context,
  2. Curve normalCurve
)

Get animation curve respecting reduced motion preference

Implementation

static Curve getCurve(
  BuildContext context,
  Curve normalCurve,
) {
  if (isEnabled(context)) {
    return Curves.linear;
  }
  return normalCurve;
}