hide method

void hide()

Hides the indicator. Safe to call even when nothing is visible.

Implementation

void hide() {
  if (!_isShowing) return;
  _isShowing = false;

  try {
    _overlayEntry?.remove();
  } catch (_) {
    // The entry may already be detached if the app was rebuilt.
  } finally {
    _overlayEntry = null;
  }
}