SimpleEnumCodec<A>.fromList constructor

SimpleEnumCodec<A>.fromList(
  1. List<A?> list
)

Implementation

SimpleEnumCodec.fromList(List<A?> list) {
  map.addAll({
    for (var i = 0; i < list.length; i++)
      if (list[i] != null) i: list[i]!
  });
}