toListOfKeyAndValues method
Convert this map to list of KeyAndValue
s.
Implementation
List<KeyAndValue<Key, Object?>> toListOfKeyAndValues() {
final pairs = entries.map((e) {
final value = e.value;
return value is KeyAndValue<Key, Object?>
? value
: KeyAndValue<Key, Object?>(e.key, value, dynamic);
});
return List.unmodifiable(pairs);
}