writeBytes method

Future<void> writeBytes(
  1. String path,
  2. Uint8List content, {
  3. bool rewrite = true,
})

Write content to a file as bytes (Uint8List). File will be created if it doesn't exist.

Implementation

Future<void> writeBytes(String path, Uint8List content,
        {bool rewrite = true}) async =>
    await writeBytesToFile(path.replaceSeparator(), content, rewrite: true);