appendBytes method

Future<void> appendBytes(
  1. List<int> bytes
)

Appends an array of bytes to the content of this file.

Implementation

Future<void> appendBytes(List<int> bytes) async {
  var raf = await open(mode: FileMode.writeOnlyAppend);
  await raf.writeFrom(bytes);
  await raf.close();
}