CarpenterToastDescriptor constructor
const
CarpenterToastDescriptor({
- required Object id,
- required String message,
- String? title,
- FeedbackColorRole role = FeedbackColorRole.info,
- CarpenterActionDescriptor? action,
- ToastDuration duration = ToastDuration.short,
- String dismissLabel = 'Dismiss notification',
Implementation
const CarpenterToastDescriptor({
required this.id,
required this.message,
this.title,
this.role = FeedbackColorRole.info,
this.action,
this.duration = ToastDuration.short,
this.dismissLabel = 'Dismiss notification',
});