withDefault method
Returns a MapDefaultExtensions view that returns defaultValue for missing keys.
Implementation
@useResult
MapDefaultExtensions<K, V> withDefault(V defaultValue) =>
MapDefaultExtensions<K, V>(this, defaultValue);
Returns a MapDefaultExtensions view that returns defaultValue for missing keys.
@useResult
MapDefaultExtensions<K, V> withDefault(V defaultValue) =>
MapDefaultExtensions<K, V>(this, defaultValue);