ToastEntry constructor

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

Implementation

ToastEntry({
  required this.message,
  required this.type,
  required this.position,
  required this.duration,
  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.backgroundColor,
  this.onTap,
  this.progress,
  this.showIndicator = false,
});