saveFileBytes function

Future<File> saveFileBytes(
  1. File file,
  2. Uint8List data
)

Saves a file from data bytes.

Implementation

Future<File> saveFileBytes(File file, Uint8List data) async {
  return file.writeAsBytes(data, flush: true);
}