saveFile static method

  1. @visibleForTesting
void saveFile(
  1. File file,
  2. Uint8List bytes
)

Saves the file in the local storage

Implementation

@visibleForTesting
static void saveFile(File file, Uint8List bytes) {
  file.create(recursive: true);
  file.writeAsBytes(bytes);
  _cachedPaths.add(file.path);
}