PrismToastMessage constructor

const PrismToastMessage({
  1. required String message,
  2. PrismToastType type = PrismToastType.info,
  3. String? title,
  4. Duration duration = const Duration(seconds: 3),
  5. String? actionLabel,
  6. VoidCallback? onAction,
})

Creates a toast payload.

Implementation

const PrismToastMessage({
  required this.message,
  this.type = PrismToastType.info,
  this.title,
  this.duration = const Duration(seconds: 3),
  this.actionLabel,
  this.onAction,
});