slideY method

T slideY({
  1. Duration? delay,
  2. Duration? duration,
  3. Curve? curve,
  4. double? begin,
  5. double? end,
})

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),
  ));
}