fromValue static method

DNDOptions? fromValue(
  1. int value
)

Implementation

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