ToastProps constructor

const ToastProps({
  1. required String message,
  2. String? title,
  3. String? description,
  4. ToastVariant variant = ToastVariant.info,
  5. ToastPosition position = ToastPosition.bottomRight,
  6. int duration = 4000,
  7. bool dismissible = true,
  8. ToastAction? action,
  9. Widget? icon,
  10. String? id,
  11. bool isExiting = false,
  12. bool isHovered = false,
  13. void onMouseEnter()?,
  14. void onMouseLeave()?,
  15. void onDismiss()?,
})

Implementation

const ToastProps({
  required this.message,
  this.title,
  this.description,
  this.variant = ToastVariant.info,
  this.position = ToastPosition.bottomRight,
  this.duration = 4000,
  this.dismissible = true,
  this.action,
  this.icon,
  this.id,
  this.isExiting = false,
  this.isHovered = false,
  this.onMouseEnter,
  this.onMouseLeave,
  this.onDismiss,
});