Init function

Future<void> Init({
  1. String? windowsPreferencesFilePath,
})

Implementation

Future<void> Init({String? windowsPreferencesFilePath}) async {
  prefs = await loadWithCorruptFileReset(
    SharedPreferences.getInstance,
    filePath: Platform.isWindows ? windowsPreferencesFilePath : null,
    detectDefaultWindowsPath: Platform.isWindows,
  );
}