deepCopy method

Map<K, V> deepCopy()

Returns a new Map that contains a deep copy of every key and value from this.

Implementation

// ignore: use_to_and_as_if_applicable
Map<K, V> deepCopy() => Map.of(this);