loadOrDefault<K, V> function
Implementation
V loadOrDefault<K, V>(Map<K, V> map, K key, V value) {
final read = map[key];
if (read == null) {
map[key] = value;
return value;
}
return read;
}
V loadOrDefault<K, V>(Map<K, V> map, K key, V value) {
final read = map[key];
if (read == null) {
map[key] = value;
return value;
}
return read;
}