animateWidgetBreathe method

Widget animateWidgetBreathe({
  1. int durationMs = 1500,
  2. bool repeat = true,
  3. bool animate = true,
})
  1. Breathe (Scale Cycle)

Implementation

Widget animateWidgetBreathe(
    {int durationMs = 1500, bool repeat = true, bool animate = true}) {
  if (!animate) return this;
  return _baseAnimate(repeat: repeat, reverse: true).scaleXY(
      begin: 1.0,
      end: 1.03,
      duration: durationMs.ms,
      curve: Curves.easeInOutSine);
}