AnimatedRotation constructor Null safety
- {Key? key,
- Widget? child,
- required double turns,
- Alignment alignment = Alignment.center,
- FilterQuality? filterQuality,
- Curve curve = Curves.linear,
- required Duration duration,
- VoidCallback? onEnd}
Creates a widget that animates its rotation implicitly.
The turns argument must not be null. The curve and duration arguments must not be null.
Implementation
const AnimatedRotation({
super.key,
this.child,
required this.turns,
this.alignment = Alignment.center,
this.filterQuality,
super.curve,
required super.duration,
super.onEnd,
}) : assert(turns != null);