removeJsonList method

  1. @override
void removeJsonList(
  1. String file,
  2. List<Object> path,
  3. int index
)
override

Removes item index of the list at path in file.

Implementation

@override
void removeJsonList(String file, List<Object> path, int index) {
  final list = _jsonAt(current?.file(file), path);
  if (list is! List || index < 0 || index >= list.length) return;
  list.removeAt(index);
  configEdited(file);
}