asMap method

Map<K, Iterable<V>> asMap()

Returns as an immutable map.

Useful when producing or using APIs that need the Map interface. This differs from toMap where mutations are explicitly disallowed.

Implementation

Map<K, Iterable<V>> asMap() => Map<K, Iterable<V>>.unmodifiable(_map);