animateCrop method

Future<void> animateCrop({
  1. required Rect to,
  2. Duration? duration,
  3. Curve curve = Curves.easeOut,
})

Animates crop from its current value to the given rect. Used for reset transitions and other places that want a smooth crop-rect change instead of an instant stage.crop.value = newRect assignment.

Implementation

Future<void> animateCrop({required Rect to, Duration? duration, Curve curve = Curves.easeOut}) =>
    _stage.animateCrop(to: to, duration: duration, curve: curve);