store method

Future<void> store()

Implementation

Future<void> store() async {
  final f = File(configPath);
  if (await f.exists()) {
    await f.delete();
  }
  await f.create(recursive: true);
  await f.writeAsString(json.encode(settings));
}