enumToValue method Null safety

T enumToValue(
  1. Map<E, T> map,
  2. E e
)

Implementation

T enumToValue(Map<E, T> map, E e) {
  return map[e] as T;
}