NiceToast constructor
const
NiceToast({
- Key? key,
- required String message,
- NiceNotificationType type = NiceNotificationType.info,
- Duration duration = const Duration(seconds: 3),
- VoidCallback? onDismiss,
- String? actionLabel,
- 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,
});