callback method

T callback({
  1. Duration? delay,
  2. Duration? duration,
  3. required ValueChanged<bool> callback,
})

Adds a callback extension to AnimateManager (Animate and AnimateList).

Implementation

T callback({
  Duration? delay,
  Duration? duration,
  required ValueChanged<bool> callback,
}) =>
    addEffect(CallbackEffect(
      delay: delay,
      duration: duration,
      callback: callback,
    ));