shakeX method
Adds a shakeX extension to AnimateManager (Animate and AnimateList).
This sets rotation=0
and offset=Offset(amount, 0)
.
Implementation
T shakeX({
Duration? delay,
Duration? duration,
Curve? curve,
int? hz,
double? amount,
}) =>
addEffect(ShakeEffect(
delay: delay,
duration: duration,
curve: curve,
hz: hz,
offset: Offset(amount ?? ShakeEffect.defaultMove, 0),
rotation: 0,
));