writeBytes method

void writeBytes(
  1. List<int> bytes
)

Write the given bytes. A Uint8List is the recommended subtype of List<int>.

Implementation

void writeBytes(List<int> bytes) {
  if (bytes is Uint8List) {
    _dest.add(bytes);
  } else {
    _dest.add(Uint8List.fromList(bytes)); // Make a more compact copy
  }
}