getCurve static method
Get animation curve respecting reduced motion preference
Implementation
static Curve getCurve(
BuildContext context,
Curve normalCurve,
) {
if (isEnabled(context)) {
return Curves.linear;
}
return normalCurve;
}
Get animation curve respecting reduced motion preference
static Curve getCurve(
BuildContext context,
Curve normalCurve,
) {
if (isEnabled(context)) {
return Curves.linear;
}
return normalCurve;
}