NewNotification function

void NewNotification(
  1. BuildContext context
)

Implementation

void NewNotification(BuildContext context) async {
  bool enableSlideOff = true;
  bool onlyOne = true;
  bool crossPage = true;
  int seconds = 10;
  int animationMilliseconds = 200;
  int animationReverseMilliseconds = 200;
  BackButtonBehavior backButtonBehavior = BackButtonBehavior.none;

  BotToast.showCustomNotification(
      animationDuration: Duration(milliseconds: animationMilliseconds),
      animationReverseDuration:
          Duration(milliseconds: animationReverseMilliseconds),
      duration: Duration(seconds: seconds),
      backButtonBehavior: backButtonBehavior,
      toastBuilder: (cancel) {
        return NewView();
      },
      enableSlideOff: enableSlideOff,
      onlyOne: onlyOne,
      crossPage: crossPage);
}