showLoadingBarrier function
A simple loader that can be used in conjunction with CompletableMixin. Displays a simple AlertDialog that covers the whole screen until dismissed. User cannot dismiss it from screen touch or back press.
Implementation
Completer<BuildContext> showLoadingBarrier({
required BuildContext context,
String? text
}) {
return _showLoadingBarrier(
context: context,
decoration: true,
text: text
);
}