SplayTreeMap<K, V> constructor

SplayTreeMap<K, V>(
  1. [int compare(
    1. K key1,
    2. K key2
    ),
  2. bool isValidKey(
    1. dynamic potentialKey
    )]
)

Implementation

SplayTreeMap([int compare(K key1, K key2), bool isValidKey(potentialKey)])
    : _comparator = compare ?? _defaultCompare<K>(),
      _validKey = isValidKey ?? ((v) => v is K);