createAnimation method

Animation<AntdMaskHole> createAnimation(
  1. AnimationController controller,
  2. AntdAnimatedContext<WidgetType, StateType> context
)

Implementation

Animation<AntdMaskHole> createAnimation(AnimationController controller,
    AntdAnimatedContext<WidgetType, StateType> context) {
  var state = context.state;
  return Tween(begin: state.hole, end: state.targetHole).animate(
    CurvedAnimation(
      parent: controller,
      curve: const Interval(0, 0.5, curve: Curves.easeOutCubic),
    ),
  );
}