IOPersistentProperties constructor

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

Implementation

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