hideLoadingDialog function

void hideLoadingDialog()

will dismiss all dialog

Implementation

void hideLoadingDialog() {
  Future.delayed(Duration.zero, () {
    if (_keys.isNotEmpty) {
      var key = _keys.first;
      key.currentState?.loadingKey.currentState?.dismissAnim();
      key.currentState?.dismissLoading();
    }
  });
}