ToastAnimationConfig constructor

const ToastAnimationConfig({
  1. bool enableAnimation = true,
  2. int animationDuration = 300,
  3. Curve fadeInCurve = Curves.easeOut,
  4. Curve fadeOutCurve = Curves.easeIn,
  5. double scaleStart = 0.8,
  6. double scaleEnd = 1.0,
  7. bool enableScaleAnimation = true,
})

Implementation

const ToastAnimationConfig({
  this.enableAnimation = true,
  this.animationDuration = 300,
  this.fadeInCurve = Curves.easeOut,
  this.fadeOutCurve = Curves.easeIn,
  this.scaleStart = 0.8,
  this.scaleEnd = 1.0,
  this.enableScaleAnimation = true,
});