file method

Future<File> file()

Gets the file.

Implementation

Future<File> file() async {
  if (_file != null)
    return _file!;
  else {
    if (_appDocDir == null) await _findAppDocDir();
    String pathNameStr = pathName(
      dbName,
      dbSubDir: dbSubDir,
      subDirs: subDirs,
    );
    _file = _fileSystem.file(pathNameStr);
    return _file!;
  }
}