putIfAbsent<T> method
Puts a value only if it hasn't ben added before.
Implementation
void putIfAbsent<T>(String name, {T? value}) {
_map.putIfAbsent(name, () => value);
}
Puts a value only if it hasn't ben added before.
void putIfAbsent<T>(String name, {T? value}) {
_map.putIfAbsent(name, () => value);
}