ModToast constructor
const
ModToast({
- Key? key,
- String? title,
- required String message,
- IconData? icon,
- Color? backgroundColor,
- Color? textColor,
- Color? iconColor,
- Duration duration = const Duration(seconds: 4),
- ToastPosition position = ToastPosition.topCenter,
- bool showCloseButton = true,
- VoidCallback? onClose,
- EdgeInsetsGeometry margin = const EdgeInsets.all(16),
- double borderRadius = 8.0,
- double? width,
- double? height,
- ToastType type = ToastType.custom,
- BoxShadow? shadow,
- double? maxWidth,
Implementation
const ModToast({
super.key,
this.title,
required this.message,
this.icon,
this.backgroundColor,
this.textColor,
this.iconColor,
this.duration = const Duration(seconds: 4),
this.position = ToastPosition.topCenter,
this.showCloseButton = true,
this.onClose,
this.margin = const EdgeInsets.all(16),
this.borderRadius = 8.0,
this.width,
this.height,
this.type = ToastType.custom,
this.shadow,
this.maxWidth,
});