SubZeroToastConfig constructor
const
SubZeroToastConfig({
- required String message,
- SubZeroToastType type = SubZeroToastType.defaultType,
- SubZeroToastPosition position = SubZeroToastPosition.bottom,
- SubZeroToastActionMode actionMode = SubZeroToastActionMode.icon,
- Duration duration = const Duration(seconds: 4),
- String? actionLabel,
- VoidCallback? onAction,
- IconData? leadingIcon,
- bool showCloseButton = true,
- double? maxWidth,
Implementation
const SubZeroToastConfig({
required this.message,
this.type = SubZeroToastType.defaultType,
this.position = SubZeroToastPosition.bottom,
this.actionMode = SubZeroToastActionMode.icon,
this.duration = const Duration(seconds: 4),
this.actionLabel,
this.onAction,
this.leadingIcon,
this.showCloseButton = true,
this.maxWidth,
});