clearMenus method Null safety
override
Clears any existing platform-rendered menus and leaves the application with no menus.
It is not necessary to call this before updating the menu with setMenus.
Implementation
@override
void clearMenus() => setMenus(<MenuItem>[]);