scale method
Scales the widget.
Implementation
Widget scale({
Duration duration = const Duration(milliseconds: 300),
Curve curve = Curves.easeOut,
double beginScale = 0.95,
}) {
return _animate(
type: .scale,
duration: duration,
curve: curve,
beginScale: beginScale,
child: this,
);
}