hide static method

void hide()

Implementation

static void hide() {
  _timer?.cancel();
  _timer = null;
  final entry = _overlayEntry;
  _overlayEntry = null;
  if (entry != null) {
    // Defer remove to avoid mouse_tracker assertion (_debugDuringDeviceUpdate).
    WidgetsBinding.instance.addPostFrameCallback((_) {
      entry.remove();
    });
  }
}