RotationTransition constructor

const RotationTransition(
  1. {Key key,
  2. @required Animation<double> turns,
  3. Alignment alignment: Alignment.center,
  4. Widget child}
)

Creates a rotation transition.

The turns argument must not be null.

Implementation

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