MergeNested extension

on

Methods

mergeNested(Map<String, dynamic> other) Map<String, dynamic>

Available on Map<String, dynamic>, provided by the MergeNested extension

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 the other map will overwrite those in the current map. If other is null, the current map is returned unchanged.
mergeNestedWithAdditions(Map<String, dynamic> other) Map<String, dynamic>

Available on Map<String, dynamic>, provided by the MergeNested extension

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 the other map 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 the other map will overwrite those in the current map. If other is null, the current map is returned unchanged.