replace method

Pair<K, V> replace({
  1. K? key,
  2. V? value,
})

Creates a Pair which key and/or value has been replaced.

Implementation

Pair<K, V> replace({K? key, V? value}) => Pair(key ?? this.key, value ?? this.value);