NeomageToast constructor

const NeomageToast({
  1. Key? key,
  2. required String message,
  3. NeomageToastVariant variant = NeomageToastVariant.info,
  4. Duration duration = const Duration(seconds: 4),
  5. VoidCallback? onDismiss,
  6. String? action,
  7. VoidCallback? onAction,
})

Implementation

const NeomageToast({
  super.key,
  required this.message,
  this.variant = NeomageToastVariant.info,
  this.duration = const Duration(seconds: 4),
  this.onDismiss,
  this.action,
  this.onAction,
});