curved static method

Apply a curve onto the given motion.

Implementation

static MotionWidgetBuilder curved(
  Curve curve,
  MotionWidgetBuilder motion,
) =>
    (
      BuildContext context,
      MontageAnimation current,
      Animation<double> animation,
      Widget? child,
    ) =>
        motion(
          context,
          current,
          CurvedAnimation(parent: animation, curve: curve),
          child,
        );