SortedMap<K, V>.from constructor

SortedMap<K, V>.from(
  1. Map<K, V> other, [
  2. int compare(
    1. K,
    2. K
    )?
])

Creates a SortedMap from an existing Dart Map.

Implementation

SortedMap.from(Map<K, V> other, [int Function(K, K)? compare])
    : _container = collection.SplayTreeMap<K, V>.from(other, compare);