MapEnhancer extension
- on
Methods
-
getIn(
List path, {dynamic defaultValue}) → dynamic -
Gets a nested value in
path
of theMap
, if not present, returns null, or the optionally provideddefaultValue
. -
hasIn(
List path) → bool -
Returns if a key is present in
path
of theMap
-
setIn(
List path, dynamic value) → void -
Sets a nested value in
path
of theMap
with the providedvalue
. -
unsetIn(
List path) → void -
Removes nested key in provided
path
and its associated value, if present, from theMap
.