scale static method
Implementation
static VillainAnimation scale({
double fromScale = 0.5,
double toScale = 1.0,
Duration from = Duration.zero,
Duration to = _kMaterialRouteTransitionLength,
Curve curve = Curves.linear,
}) =>
VillainAnimation(
from: from,
to: to,
curve: curve,
animatable: Tween<double>(begin: fromScale, end: toScale),
animatedWidgetBuilder: (animation, child) {
return ScaleTransition(
scale: animation as Animation<double>,
child: child,
);
});