ScaleAnimation constructor

const ScaleAnimation({
  1. Key? key,
  2. Duration? duration,
  3. Duration? delay,
  4. Curve curve = Curves.ease,
  5. double scale = 0.0,
  6. 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.curve = Curves.ease,
  this.scale = 0.0,
  required this.child,
})   : assert(scale >= 0.0),
      super(key: key);