file method

Future<File> file()

Gets the file.

Implementation

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