copyToFile method
Copy a compacted version of the database to the specified file.
If you want to backup your database, you should always use a compacted version. Compacted does not mean compressed.
Do not run this method while other transactions are active to avoid unnecessary growth of the database.
Implementation
@override
Future<void> copyToFile(String targetPath) {
return _spanHelper.asyncWrapInSpan('copyToFile', () {
return _isar.copyToFile(targetPath);
}, dbName: name);
}