shakeX method

T shakeX({
  1. Duration? delay,
  2. Duration? duration,
  3. Curve? curve,
  4. int? hz,
  5. double? amount,
})

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