RotationAnimation constructor

const RotationAnimation({
  1. Key? key,
  2. required Widget child,
  3. double beginRotation = 0.0,
  4. Duration duration = const Duration(milliseconds: 500),
})

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.
});