toggle method
Toggles the visibility of the tooltip with the given key, or all tooltips if none is specified.
Implementation
Future<void> toggle([UniqueKey? key]) async {
if (key != null) {
await _tooltips[key]?.toggle();
return;
}
await Future.wait([
for (final tooltip in _tooltips.values) tooltip.toggle(),
]);
}