writeBytes method
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);