IOPersistentProperties.fromFile constructor

IOPersistentProperties.fromFile(
  1. File file
)

Implementation

IOPersistentProperties.fromFile(File file) : name = path.basename(file.path) {
  _file = file;
  if (!_file.existsSync()) {
    _file.createSync(recursive: true);
  }
  syncSettings();
}