RotationAnimation constructor
const
RotationAnimation({})
The duration of the rotation animation. Constructor for the RotationAnimation widget.
Implementation
/// Constructor for the RotationAnimation widget.
const RotationAnimation({
super.key,
required this.child,
this.beginRotation = 0.0,
/// The initial rotation angle (default is 0 degrees).
this.duration = const Duration(milliseconds: 500),
/// Default animation duration.
});