appendBytes method

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

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

Implementation

Future<void> appendBytes(List<int> bytes) async {
  final sink = openWrite(mode: FileMode.writeOnlyAppend);
  sink.add(bytes);
  await sink.flush();
  await sink.close();
}