appendToMap method

void appendToMap(
  1. Iterable<String> path,
  2. String key,
  3. Object? value
)

Implementation

void appendToMap(Iterable<String> path, String key, Object? value) {
  final currentValue = parseAt(path).value;
  if (currentValue is! Map?) {
    return;
  }
  update(path, {
    ...?currentValue,
    key: value,
  });
}