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. Widget closeButton(
    1. void dismissNotification()
    )?,
  8. Widget? icon,
  9. double iconSize = 20,
  10. Widget? action,
})

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,
}) : super(key: key);