getByValue static method

TUIMenuItemState getByValue(
  1. num i
)

Implementation

static TUIMenuItemState getByValue(num i) {
  return TUIMenuItemState.values.firstWhere((x) => x.value == i);
}