fromValue static method

RepliesOptions? fromValue(
  1. int value
)

Implementation

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