scaleOut method
Wraps the widget with a scale-out animation.
Example:
Text('Hello').scaleOut(duration: Duration(milliseconds: 500));
Implementation
Widget scaleOut({
Duration duration = const Duration(milliseconds: 300),
Duration delay = Duration.zero,
Curve curve = Curves.easeInBack,
double endScale = 0.0,
Alignment alignment = Alignment.center,
}) {
return _ScaleOutWidget(
duration: duration,
delay: delay,
curve: curve,
endScale: endScale,
alignment: alignment,
child: this,
);
}