CarpenterToastDescriptor constructor

const CarpenterToastDescriptor({
  1. required Object id,
  2. required String message,
  3. String? title,
  4. FeedbackColorRole role = FeedbackColorRole.info,
  5. CarpenterActionDescriptor? action,
  6. ToastDuration duration = ToastDuration.short,
  7. 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',
});