AnimatedScale constructor

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

Creates a widget that insets its child by a value that animates implicitly.

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

Implementation

AnimatedScale({
  Key? key,
  required this.scale,
  this.child,
  Curve curve = Curves.linear,
  required Duration duration,
  VoidCallback? onEnd,
}) : super(
        key: key,
        curve: curve,
        duration: duration,
        onEnd: onEnd,
      );