save method
Implementation
Future<void> save() async {
if (kIsWeb) return;
try {
final File file = await _indexFile();
final StringBuffer buffer = StringBuffer();
for (final UDocRecord record in _records) {
buffer.writeln(jsonEncode(record.toJson()));
}
await file.writeAsString(buffer.toString(), flush: true);
} on Object {
return;
}
}