scaleY method

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

Adds a scaleY extension to AnimateManager (Animate and AnimateList). This scales only on the y-axis according to the double begin/end values.

Implementation

T scaleY({
  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(dy: begin),
    end: ScaleEffect.neutralValue.copyWith(dy: end),
    alignment: alignment,
  ));
}