TypedMap<B>.fromList constructor

TypedMap<B>.fromList(
  1. List<B> items
)

Create a typed map from a list of values.

Implementation

TypedMap.fromList(List<B> items) {
  for (final item in items) {
    _data[item.runtimeType] = item;
  }
}