toMapOfValueKeys<V> method
Implementation
Map<T, V> toMapOfValueKeys<V>({required V defaultValue}) {
return Map.fromEntries(
[
for (final value in this) MapEntry(value, defaultValue),
],
);
}
Map<T, V> toMapOfValueKeys<V>({required V defaultValue}) {
return Map.fromEntries(
[
for (final value in this) MapEntry(value, defaultValue),
],
);
}