reset method Null safety
Reset the root directory, database, and stores
Internally calls delete then re-initialises FMTC with the same setup.
This will remove all traces of this root from the user's device. Use with caution!
Implementation
Future<void> reset() async {
final directory = FMTC.instance.rootDirectory.directory.absolute.path;
final settings = FMTC.instance.settings;
await delete();
await FMTC.initialise(
customRootDirectory: directory,
customSettings: settings,
);
}