NiceToast constructor

const NiceToast({
  1. Key? key,
  2. required String message,
  3. NiceNotificationType type = NiceNotificationType.info,
  4. Duration duration = const Duration(seconds: 3),
  5. VoidCallback? onDismiss,
  6. String? actionLabel,
  7. VoidCallback? onAction,
})

Implementation

const NiceToast({
  super.key,
  required this.message,
  this.type = NiceNotificationType.info,
  this.duration = const Duration(seconds: 3),
  this.onDismiss,
  this.actionLabel,
  this.onAction,
});