AnimatedToastWidget constructor

const AnimatedToastWidget({
  1. Key? key,
  2. required String message,
  3. required ToastType type,
  4. required Duration duration,
  5. required VoidCallback onRemove,
  6. String? title,
  7. bool showCloseIcon = true,
  8. ToastAnimation animation = ToastAnimation.none,
  9. TextStyle? messageStyle,
  10. TextStyle? titleStyle,
  11. EdgeInsetsGeometry? padding,
  12. double borderRadius = 8.0,
  13. double elevation = 0.0,
  14. Widget? icon,
  15. VoidCallback? onTap,
  16. Color? backgroundColor,
  17. double? progress,
  18. bool isProgress = false,
})

Implementation

const AnimatedToastWidget({
  super.key,
  required this.message,
  required this.type,
  required this.duration,
  required this.onRemove,
  this.title,
  this.showCloseIcon = true,
  this.animation = ToastAnimation.none,
  this.messageStyle,
  this.titleStyle,
  this.padding,
  this.borderRadius = 8.0,
  this.elevation = 0.0,
  this.icon,
  this.onTap,
  this.backgroundColor,
  this.progress,
  this.isProgress = false,
});