handleSystemHide method
override
Handles the system hiding a context menu.
This is called for all instances of SystemContextMenuController, so it's not guaranteed that this instance was the one that was hidden.
Implementation
@override
void handleSystemHide() {
assert(!_isDisposed);
// If this instance wasn't being shown, then it wasn't the instance that was
// hidden.
if (!_isVisible) {
return;
}
if (_lastShown == this) {
_lastShown = null;
}
_hiddenBySystem = true;
onSystemHide?.call();
}