fromValue static method

MessagesOptions? fromValue(
  1. int value
)

Implementation

static MessagesOptions? fromValue(int value) {
  for (final option in MessagesOptions.values) {
    if (option.value == value) {
      return option;
    }
  }
  return null;
}