flip method

GetAnimatedBuilder flip({
  1. double begin = 0,
  2. double end = 1,
  3. Duration duration = _defaultDuration,
  4. Duration delay = _defaultDelay,
  5. ValueSetter<AnimationController>? onComplete,
  6. bool isSequential = false,
})

Flips the widget around the Y-axis from begin to end.

  • begin Starting rotation value factor.
  • end Ending rotation value factor.
  • duration The duration of the flip transition.
  • delay The delay duration before flipping starts.
  • onComplete A callback triggered when the animation completes.
  • isSequential If true, starts this animation after the previous one in the chain completes.

Implementation

GetAnimatedBuilder flip({
  double begin = 0,
  double end = 1,
  Duration duration = _defaultDuration,
  Duration delay = _defaultDelay,
  ValueSetter<AnimationController>? onComplete,
  bool isSequential = false,
}) {
  return FlipAnimation(
    duration: duration,
    delay: _getDelay(isSequential, delay),
    begin: begin,
    end: end,
    onComplete: onComplete,
    child: this,
  );
}