fromValue static method

ReactionsOptions? fromValue(
  1. int value
)

Implementation

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