getSelectable method

  1. @override
SelectableOption getSelectable(
  1. SelectionItemType item
)
override

Whether item should be shown as selectable.

Implementation

@override
SelectableOption getSelectable(SelectionItemType item) {
  for (final menuItem in this) {
    if (menuItem.value == item) return menuItem.selectableState;
  }

  return SelectableOption.Selectable;
}