ToastContent constructor

const ToastContent({
  1. Key? key,
  2. Widget? title,
  3. required Widget description,
  4. required NotificationType notificationType,
  5. required bool displayCloseButton,
  6. required void onCloseButtonPressed(),
  7. required Color verticalDividerColor,
  8. Widget closeButton(
    1. void dismissNotification()
    )?,
  9. Widget? icon,
  10. double iconSize = 20,
  11. Widget? action,
})

Implementation

const ToastContent({
  Key? key,
  this.title,
  required this.description,
  required this.notificationType,
  required this.displayCloseButton,
  required this.onCloseButtonPressed,
  required this.verticalDividerColor,
  this.closeButton,
  this.icon,
  this.iconSize = 20,
  this.action,
}) : super(key: key);