dismissAllToolTips static method
Dismiss all of the tooltips that are currently shown on the screen, including those with mouse cursors currently hovering over them.
This method returns true if it successfully dismisses at least one tooltip and returns false if there is no tooltip currently displayed.
Implementation
static bool dismissAllToolTips() {
if (_openedTooltips.isEmpty) {
return false;
}
// Avoid concurrent modification.
final List<RawTooltipState> openedTooltips = _openedTooltips.toList();
for (final state in openedTooltips) {
assert(state.mounted);
state._scheduleDismissTooltip();
}
return true;
}