hideLoading method
Implementation
Future hideLoading() async {
try {
if (!_isShowDialog || _ctx == null) return;
return Future.delayed(const Duration(milliseconds: 300), () {
if (Navigator.of(_ctx!).canPop()) {
Navigator.of(_ctx!).pop();
}
_isShowDialog = false;
});
} catch (e, stack) {
debugPrint('$e $stack');
}
}