SpinAnimation constructor
SpinAnimation({
- Key? key,
- required Duration duration,
- required Duration delay,
- required Widget child,
- ValueSetter<
AnimationController> ? onComplete, - 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),
);