load method

Future<ConfigFile> load()

Load the config data from the file.

Implementation

Future<ConfigFile> load() async {
  if (!file.existsSync()) await save();
  data = jsonDecode(file.readAsStringSync());
  return this;
}