menu
moontree_utils package
documentation
extensions/map.dart
SetOrUpdateOnMapExtension extension
SetOrUpdateOnMapExtension extension
dark_mode
light_mode
SetOrUpdateOnMapExtension<
TK
,
TV
>
extension
on
Map
<
TK
,
TV
>
Methods
upsert
(
{
required
TK
key
,
TV
value
(
TV
item
)?,
required
TV
defaultValue
,
bool
overwrite
=
true
})
→ void
if key present, overwrites value, if overwriteValue set, else inserts
moontree_utils package
documentation
extensions/map
SetOrUpdateOnMapExtension extension
map library