start static method

dynamic start({
  1. int backgroundColor = 0x42000000,
  2. int seconds = 10,
  3. bool clickClose = true,
  4. bool allowClick = true,
  5. bool ignoreContentClick = false,
  6. bool crossPage = true,
  7. int animationMilliseconds = 200,
  8. int animationReverseMilliseconds = 200,
  9. BackButtonBehavior backButtonBehavior = BackButtonBehavior.none,
})

Implementation

static start({
  int backgroundColor = 0x42000000,
  int seconds = 10,
  bool clickClose = true,
  bool allowClick = true,
  bool ignoreContentClick = false,
  bool crossPage = true,
  int animationMilliseconds = 200,
  int animationReverseMilliseconds = 200,
  BackButtonBehavior backButtonBehavior = BackButtonBehavior.none,
}) {
  cancelInstance = BotToast.showCustomLoading(
      clickClose: clickClose,
      allowClick: allowClick,
      backButtonBehavior: backButtonBehavior,
      ignoreContentClick: ignoreContentClick,
      animationDuration: Duration(milliseconds: animationMilliseconds),
      animationReverseDuration:
          Duration(milliseconds: animationReverseMilliseconds),
      duration: Duration(seconds: seconds),
      backgroundColor: Color(backgroundColor),
      align: Alignment.center,
      toastBuilder: (cancelFunc) {
        return NewView();
      });
}