MergeNested extension
Methods
-
mergeNested(
Map< String, dynamic> other) → Map<String, dynamic> -
Available on Map<
Merges the current map with another map recursively. If there are duplicate keys and both values are maps, they are merged recursively. Otherwise, the values from theString, dynamic> , provided by the MergeNested extensionothermap will overwrite those in the current map. Ifotheris null, the current map is returned unchanged. -
mergeNestedWithAdditions(
Map< String, dynamic> other) → Map<String, dynamic> -
Available on Map<
Merges the current map with another map recursively, handling numerical instructions. If there are duplicate keys and both values are maps, they are merged recursively. If a value in theString, dynamic> , provided by the MergeNested extensionothermap is a NumericalAddition and the corresponding value in the current map is a number, the addition is performed and the value will be a number. Otherwise, the values from theothermap will overwrite those in the current map. Ifotheris null, the current map is returned unchanged.