addSubmenu abstract method

Future<bool> addSubmenu({
  1. required String parentMenuId,
  2. required String submenuId,
  3. required String title,
  4. int? index,
})

Adds a submenu to the specified parent menu.

parentMenuId is the identifier of the parent menu to add the submenu to. submenuId is a unique identifier for this submenu (used to add items to it later). title is the display text for the submenu. index is the optional position to insert the submenu (null to append).

Returns true if the submenu was successfully added.

Implementation

Future<bool> addSubmenu({
  required String parentMenuId,
  required String submenuId,
  required String title,
  int? index,
});