SortedMap<K extends Comparable, V> constructor Null safety

SortedMap<K extends Comparable, V>(
  1. [Ordering ordering = const Ordering.byKey()]
)

Creates a SortedMap instance with an optional ordering.

Implementation

factory SortedMap([Ordering ordering = const Ordering.byKey()]) =>
    _SortedMap._(ordering, null, null);