animateWidgetShakeX method

Widget animateWidgetShakeX({
  1. int delayMs = 0,
  2. int durationMs = 500,
  3. bool repeat = false,
  4. bool animate = true,
})
  1. Shake X

Implementation

Widget animateWidgetShakeX({
  int delayMs = 0,
  int durationMs = 500,
  bool repeat = false,
  bool animate = true,
}) {
  if (!animate) return this;
  return _baseAnimate(
    delayMs: delayMs,
    repeat: repeat,
  ).shake(hz: 4, curve: Curves.easeInOut, duration: durationMs.ms);
}