debugLockDelegate abstract method
- BuildContext context
This is called by PlatformMenuBar when it is initialized, to be sure that only one is active at a time.
If the lock is successfully acquired, debugLockDelegate will return true.
If your implementation of a PlatformMenuDelegate can have only limited active instances, enforce it when you override this function.
- debugUnlockDelegate, where the delegate is unlocked.
bool debugLockDelegate(BuildContext context);