animatedScale method
Wraps the widget with an animated scale.
Example:
Text('Hello').animatedScale(scale: 1.5);
Implementation
Widget animatedScale({
double scale = 1.0,
Duration duration = const Duration(milliseconds: 300),
Curve curve = Curves.easeInOut,
Alignment alignment = Alignment.center,
}) {
return AnimatedScale(
scale: scale,
duration: duration,
curve: curve,
alignment: alignment,
child: this,
);
}