SpinAnimation constructor

SpinAnimation({
  1. Key? key,
  2. required Duration duration,
  3. required Duration delay,
  4. required Widget child,
  5. ValueSetter<AnimationController>? onComplete,
  6. double idleValue = 0,
})

Implementation

SpinAnimation({
  super.key,
  required super.duration,
  required super.delay,
  required super.child,
  super.onComplete,
  super.idleValue = 0,
}) : super(
        builder: (context, value, child) => Transform.rotate(
          angle: value * pi / 180.0,
          child: child,
        ),
        tween: Tween<double>(begin: 0, end: 360),
      );