dismiss method

void dismiss({
  1. String? overlayKey,
})

销毁loading overlayKey 对应style==LoadingStyle.aloneOverlay loading

Implementation

void dismiss({String? overlayKey}) {
  if (overlayKey.isEmptyString) {
    _dismissOverlay();
  } else {
    _dismissOverlayByEntry(overlayKey);
  }
  _dismissGlobal();
  _isShow = false;
  _context = null;
}