Type definition for animation handler callback.
typedef AnimationHandler = Future<void> Function(double ratio, {Duration? duration, Curve? curve});