downloadBytesFile static method

void downloadBytesFile(
  1. String filename,
  2. List<int> bytes, [
  3. String mimeType = 'application/octet-stream'
])

Triggers a browser file download with filename and raw bytes.

No-op on non-web.

Implementation

static void downloadBytesFile(
  String filename,
  List<int> bytes, [
  String mimeType = 'application/octet-stream',
]) =>
    impl.downloadBytesFile(filename, bytes, mimeType);