animateWidgetProgressFill method

Widget animateWidgetProgressFill({
  1. int delayMs = 0,
  2. int durationMs = 1000,
  3. bool repeat = false,
  4. bool animate = true,
})
  1. Progress Infill

Implementation

Widget animateWidgetProgressFill({
  int delayMs = 0,
  int durationMs = 1000,
  bool repeat = false,
  bool animate = true,
}) {
  if (!animate) return this;
  return _baseAnimate(delayMs: delayMs, repeat: repeat)
      .fadeIn(duration: 400.ms)
      .scaleX(
        begin: 0,
        end: 1,
        alignment: Alignment.centerLeft,
        duration: durationMs.ms,
        curve: Curves.easeInOut,
      );
}