isValidMenu method

bool isValidMenu(
  1. String id
)

Implementation

bool isValidMenu(String id) {
  return menus.any((element) => element.id == id);
}