hide method

Future<void> hide([
  1. UniqueKey? key
])

Hides the tooltip with the given key, or all tooltips if none is specified.

Implementation

Future<void> hide([UniqueKey? key]) async {
  if (key != null) {
    await _tooltips[key]?.hide();
    return;
  }

  await Future.wait([for (final tooltip in _tooltips.values) tooltip.hide()]);
}