IOPersistentProperties constructor

IOPersistentProperties(
  1. String name, {
  2. String? documentDirPath,
})

Implementation

IOPersistentProperties(
  this.name, {
  String? documentDirPath,
}) {
  final fileName = name.replaceAll(' ', '_');
  documentDirPath ??= LocalFileSystem._userHomeDir();
  _file = File(path.join(documentDirPath, fileName));
  if (!_file.existsSync()) {
    _file.createSync(recursive: true);
  }
  syncSettings();
}