showLoading method

void showLoading({
  1. String? text,
  2. bool scaffoldMustGoBack = false,
})

Implementation

void showLoading({String? text, bool scaffoldMustGoBack = false}) {
  if (loadingVisible.value == true) return;
  loadingText = text;
  loadingVisible.value = true;
  if (scaffoldMustGoBack == true) scaffoldIsGoBack.value = true;
}