showLoading static method

void showLoading({
  1. String? text,
})

Implementation

static void showLoading({String? text}) {
  hideLoading();
  BotToast.showCustomLoading(toastBuilder: (context) {
    if (BaseWidget.loadingWidget is ComLoading) {
      return ComLoading(message: text);
    } else {
      return BaseWidget.loadingWidget;
    }
  });
}