RotationTransition constructor Null safety

const RotationTransition(
  1. {Key? key,
  2. required Animation<double> turns,
  3. Alignment alignment = Alignment.center,
  4. FilterQuality? filterQuality,
  5. Widget? child}
)

Creates a rotation transition.

The turns argument must not be null.

Implementation

const RotationTransition({
  super.key,
  required Animation<double> turns,
  this.alignment = Alignment.center,
  this.filterQuality,
  this.child,
}) : assert(turns != null),
     super(listenable: turns);