slideY method
Adds a slideY extension to AnimateManager (Animate and AnimateList).
This slides only on the y-axis according to the double
begin/end values.
Implementation
T slideY({
Duration? delay,
Duration? duration,
Curve? curve,
double? begin,
double? end,
}) {
begin ??= end == null ? SlideEffect.defaultSlide : SlideEffect.neutralSlide;
end ??= SlideEffect.neutralSlide;
return addEffect(SlideEffect(
delay: delay,
duration: duration,
curve: curve,
begin: SlideEffect.neutralValue.copyWith(dy: begin),
end: SlideEffect.neutralValue.copyWith(dy: end),
));
}