AnimatedScale constructor Null safety
- {Key? key,
- Widget? child,
- required double scale,
- Alignment alignment = Alignment.center,
- FilterQuality? filterQuality,
- Curve curve = Curves.linear,
- required Duration duration,
- 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({
super.key,
this.child,
required this.scale,
this.alignment = Alignment.center,
this.filterQuality,
super.curve,
required super.duration,
super.onEnd,
}) : assert(scale != null);