setMenuItemEnabled abstract method

Future<bool> setMenuItemEnabled(
  1. String itemId,
  2. bool enabled
)

Sets a menu item's enabled state.

itemId is the identifier of the menu item. enabled is the new enabled state.

Returns true if the menu item's state was successfully updated.

Implementation

Future<bool> setMenuItemEnabled(String itemId, bool enabled);