manual method

Future<void> manual(
  1. File outputFile
)

Export the store to a specified non-existing outputFile

The outputFile should not exist. If it does, it will be deleted without warning.

See withGUI for a method that provides logic to show appropriate platform windows/sheets for export.

Implementation

Future<void> manual(File outputFile) async {
  if (await outputFile.exists()) await outputFile.delete();
  return FMTCRegistry
      .instance.storeDatabases[DatabaseTools.hash(storeDirectory.storeName)]!
      .copyToFile(outputFile.absolute.path);
}