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