insertJsonList method

  1. @override
void insertJsonList(
  1. String file,
  2. List<Object> path,
  3. Object value, {
  4. int? at,
})
override

Inserts into the list at path in file.

Implementation

@override
void insertJsonList(String file, List<Object> path, Object value, {int? at}) {
  final list = _jsonAt(current?.file(file), path);
  if (list is! List) return;
  list.insert(at?.clamp(0, list.length) ?? list.length, value);
  configEdited(file);
}