clearMenus method

  1. @override
void clearMenus()
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(<PlatformMenuItem>[]);