getFile method

Future<File?> getFile({
  1. String? fileName,
  2. String? path,
})

Returns the file handle, or null when the file does not exist (always null in a browser, which has no file system). The file is returned as stored: encrypted when the database is; read it with readFileAsBytes or readFileAsString, which decrypt.

Implementation

Future<File?> getFile({String? fileName, String? path}) =>
    _store.file(fileName: fileName, path: validatePath(path));