scaleX method
T
scaleX({})
Adds a scaleX extension to AnimateManager (Animate and AnimateList).
This scales only on the x-axis according to the double
begin/end values.
Implementation
T scaleX({
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: ScaleEffect.neutralValue.copyWith(dx: begin),
end: ScaleEffect.neutralValue.copyWith(dx: end),
alignment: alignment,
));
}