debugUnlockDelegate method
This is called by PlatformMenuBar when it is disposed, so that another one can take over.
If the debugUnlockDelegate successfully unlocks the delegate, it will return true.
See also:
- debugLockDelegate, where the delegate is locked.
Implementation
@override
bool debugUnlockDelegate(BuildContext context) {
assert(() {
if (_lockedContext != null && _lockedContext != context) {
return false;
}
_lockedContext = null;
return true;
}());
return true;
}