getByValue static method

CollectionType getByValue(
  1. num i
)

Implementation

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