safaehCurveFor function

Curve safaehCurveFor(
  1. BuildContext context,
  2. Animation<double> animation
)

SafaehThemeData.enterCurve while opening, exitCurve while reversing.

Implementation

Curve safaehCurveFor(BuildContext context, Animation<double> animation) {
  final tokens = SafaehTheme.of(context);
  return animation.status == AnimationStatus.reverse
      ? tokens.exitCurve
      : tokens.enterCurve;
}