NeomageToast constructor
const
NeomageToast({
- Key? key,
- required String message,
- NeomageToastVariant variant = NeomageToastVariant.info,
- Duration duration = const Duration(seconds: 4),
- VoidCallback? onDismiss,
- String? action,
- 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,
});