writeBytes function

Future<File> writeBytes(
  1. File file,
  2. Uint8List bytes
)

Write bytes content. Does not fail

Implementation

Future<File> writeBytes(File file, Uint8List bytes) async {
  return fs.unwrapIoFile(await fs.writeBytes(fs.wrapIoFile(file), bytes));
}