hide method

Future<void> hide()

Hides the tooltip.

Once hidden, the tooltip will be removed from the widget tree the next time the widget tree rebuilds, and stateful widgets in the tooltip may lose states as a result.

This method should typically not be called while the widget tree is being rebuilt.

Implementation

Future<void> hide() async {
  await _animation.reverse();
  _overlay.hide();
  notifyListeners();
}