enumFromValue method Null safety

E enumFromValue(
  1. Map<E, T> map,
  2. T t,
  3. {E? defaultEnum}
)

Implementation

E enumFromValue(Map<E, T> map, T t, {E? defaultEnum}) {
  return _$enumDecode(map, t, unknownValue: defaultEnum);
}