getMenuItemsFor method

  1. @override
List<MenuItemModel>? getMenuItemsFor(
  1. String uniqueId,
  2. AppModel app,
  3. NewAppWizardParameters parameters,
  4. MenuType type,
)
inherited

Implementation

@override
List<MenuItemModel>? getMenuItemsFor(String uniqueId, AppModel app,
    NewAppWizardParameters parameters, MenuType type) {
  if (parameters is ActionSpecificationParametersBase) {
    if (parameters.actionSpecifications.should(type)) {
      return getThoseMenuItems(uniqueId, app);
    }
  } else {
    throw Exception('Unexpected class for parameters: $parameters');
  }
  return null;
}