animateWidgetToastEntry method

Widget animateWidgetToastEntry({
  1. int delayMs = 0,
  2. int durationMs = 400,
  3. bool repeat = false,
  4. bool animate = true,
})
  1. Toast Entry

Implementation

Widget animateWidgetToastEntry({
  int delayMs = 0,
  int durationMs = 400,
  bool repeat = false,
  bool animate = true,
}) {
  if (!animate) return this;
  return _baseAnimate(delayMs: delayMs, repeat: repeat)
      .slideY(
        begin: 0.5,
        end: 0,
        duration: durationMs.ms,
        curve: Curves.easeOutBack,
      )
      .fadeIn();
}