CustomToast constructor
const
CustomToast({
- Key? key,
- required String message,
- ToastType type = ToastType.success,
- ToastStyle style = ToastStyle.simple,
- TextStyle? textStyle,
- TextAlign? textAlign,
- VoidCallback? onClose,
Creates a CustomToast.
Requires a message to display. Optionally accepts type, style,
textStyle, textAlign, and onClose callback.
Implementation
const CustomToast({
super.key,
required this.message,
this.type = ToastType.success,
this.style = ToastStyle.simple,
this.textStyle,
this.textAlign,
this.onClose,
});