swap method

T swap({
  1. Duration? delay,
  2. Duration? duration,
  3. required TransitionBuilder builder,
})

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

Implementation

T swap({
  Duration? delay,
  Duration? duration,
  required TransitionBuilder builder,
}) =>
    addEffect(SwapEffect(
      delay: delay,
      duration: duration,
      builder: builder,
    ));