ToastContent constructor
const
ToastContent({
- Key? key,
- Widget? title,
- required Widget description,
- required NotificationType notificationType,
- required bool displayCloseButton,
- required void onCloseButtonPressed(),
- Widget closeButton(
- void dismissNotification()
- Widget? icon,
- double iconSize = 20,
- Widget? action,
- dynamic onActionPressed()?,
Implementation
const ToastContent({
Key? key,
this.title,
required this.description,
required this.notificationType,
required this.displayCloseButton,
required this.onCloseButtonPressed,
this.closeButton,
this.icon,
this.iconSize = 20,
this.action,
this.onActionPressed,
}) : super(key: key);