spin method

GetAnimatedBuilder spin({
  1. Duration duration = _defaultDuration,
  2. Duration delay = _defaultDelay,
  3. ValueSetter<AnimationController>? onComplete,
  4. bool isSequential = false,
})

Spins the widget 360 degrees.

  • duration The duration of the spin transition.
  • delay The delay duration before the spin 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 spin({
  Duration duration = _defaultDuration,
  Duration delay = _defaultDelay,
  ValueSetter<AnimationController>? onComplete,
  bool isSequential = false,
}) {
  return SpinAnimation(
    duration: duration,
    delay: _getDelay(isSequential, delay),
    onComplete: onComplete,
    child: this,
  );
}