addToastNotification method

dynamic addToastNotification(
  1. Widget toastNotification({
    1. Function? onDismiss,
    2. required ToastNotificationStyleType style,
    3. dynamic toastNotificationStyleMeta(
      1. ToastNotificationStyleMetaHelper helper
      )?,
    })
)

Add toast notification

Implementation

addToastNotification(
    Widget Function({
      required ToastNotificationStyleType style,
      Function(ToastNotificationStyleMetaHelper helper)?
          toastNotificationStyleMeta,
      Function? onDismiss,
    }) toastNotification) {
  _toastNotification = toastNotification;
}