toMap method

Map<K, V> toMap()

Creates a new Map containing all entries of this Map.

The new Map preserves the entry iteration order of the this Map.

Implementation

Map<K, V> toMap() => Map.of(this);