save method

Future<void> save(
  1. List<T> list, {
  2. bool isPretty = true,
})

Implementation

Future<void> save(List<T> list, {bool isPretty = true}) async {
  final jsonList = list.map((e) => toMap(e)).toList();
  await io.write(path, JsonEncoder.withIndent(' ').convert(jsonList));
  notify();
}