debugLockDelegate method Null safety
- BuildContext context
This is called by PlatformMenuBar when it is initialized, to be sure that only one is active at a time.
debugLockDelegate function should be called before the first call to
If the lock is successfully acquired,
debugLockDelegate will return
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);