save method

Future<File> save(
  1. String path
)

Save the file to the specified path

Implementation

Future<File> save(String path) async {
  final file = File(path);
  final bytes = await _cachedBytes;
  await file.writeAsBytes(bytes);
  return file;
}