animateThen method

Future<void> animateThen({
  1. Duration? duration,
  2. Curve curve = Curves.linear,
})

Implementation

Future<void> animateThen({Duration? duration, Curve curve = Curves.linear}) =>
    _current = _current.then((_) => animate(duration: duration, curve: curve));