AnimatedRotationModifier constructor

const AnimatedRotationModifier({
  1. Key? key,
  2. Widget? child,
  3. Curve curve = Curves.linear,
  4. required Duration duration,
  5. VoidCallback? onEnd,
  6. Key? modifierKey,
  7. required double turns,
  8. Alignment alignment = Alignment.center,
  9. FilterQuality? filterQuality,
})

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 AnimatedRotationModifier({
  super.key,
  super.child,
  super.curve,
  required super.duration,
  super.onEnd,
  super.modifierKey,
  required this.turns,
  this.alignment = Alignment.center,
  this.filterQuality,
});