ScaleAnimation constructor

const ScaleAnimation(
  1. {Key key,
  2. Duration duration,
  3. Duration delay,
  4. double scale = 0.0,
  5. @required Widget child}
)

Creates a scale animation that scales its child for its center.

Default value for scale is 0.0.

The child argument must not be null.

Implementation

const ScaleAnimation({
  Key key,
  this.duration,
  this.delay,
  this.scale = 0.0,
  @required this.child,
})  : assert(child != null),
      assert(scale != null && scale >= 0.0),
      super(key: key);