scaleXY method
T
scaleXY({})
Adds a scaleXY extension to AnimateManager (Animate and AnimateList).
This scales uniformly according to the double
begin/end values.
Implementation
T scaleXY({
Duration? delay,
Duration? duration,
Curve? curve,
double? begin,
double? end,
Alignment? alignment,
}) {
begin ??=
(end == null ? ScaleEffect.defaultScale : ScaleEffect.neutralScale);
end ??= ScaleEffect.neutralScale;
return addEffect(ScaleEffect(
delay: delay,
duration: duration,
curve: curve,
begin: Offset(begin, begin),
end: Offset(end, end),
alignment: alignment,
));
}