AnimatedScale constructor Null safety

const AnimatedScale(
  1. {Key? key,
  2. Widget? child,
  3. required double scale,
  4. Alignment alignment,
  5. FilterQuality? filterQuality,
  6. Curve curve = Curves.linear,
  7. required Duration duration,
  8. VoidCallback? onEnd}
)

Creates a widget that animates its scale implicitly.

The scale argument must not be null. The curve and duration arguments must not be null.

Implementation

const AnimatedScale({
  Key? key,
  this.child,
  required this.scale,
  this.alignment = Alignment.center,
  this.filterQuality,
  Curve curve = Curves.linear,
  required Duration duration,
  VoidCallback? onEnd,
}) : assert(scale != null),
     super(key: key, curve: curve, duration: duration, onEnd: onEnd);