animateScale method
Wraps a widget in an easy implicit animated scale effect
Implementation
Widget animateScale({
Key? key,
double scale = 1.0,
Duration duration = const Duration(milliseconds: 300),
Curve curve = MotionCurves.swiftOut,
}) {
return AnimatedScale(
key: key,
scale: scale,
duration: duration,
curve: curve,
child: this,
);
}