ScaleTransition constructor

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

Creates a scale transition.

The scale argument must not be null. The alignment argument defaults to Alignment.center.

Implementation

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