showNotificationCustomToast function

void showNotificationCustomToast(
  1. Widget widget, {
  2. Duration? duration,
  3. Alignment? align,
})

Implementation

void showNotificationCustomToast(Widget widget,
    {Duration? duration, Alignment? align}) {
  BaseBotToast.showCustomNotification(
    align: align ?? Alignment.topCenter,
    duration: duration ?? kNotificationToastDuration,
    toastBuilder: (void Function() cancelFunc) {
      return widget;
    },
  );
}