ToastProps constructor
const
ToastProps({
- required String message,
- String? title,
- String? description,
- ToastVariant variant = ToastVariant.info,
- ToastPosition position = ToastPosition.bottomRight,
- int duration = 4000,
- bool dismissible = true,
- ToastAction? action,
- Widget? icon,
- String? id,
- bool isExiting = false,
- bool isHovered = false,
- void onMouseEnter()?,
- void onMouseLeave()?,
- 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,
});