dismiss static method Null safety

void dismiss()

Implementation

static void dismiss() {
  if (!_isVisible) {
    return;
  }
  _isVisible = false;
  _overlayEntry?.remove();
}