append method
Appends a single byte to this byte array.
Example:
final bytes = Byte.fromList([1, 2, 3]);
bytes.append(4);
print(bytes.toList()); // [1, 2, 3, 4]
Throws InvalidArgumentException if value is outside byte range.
Implementation
void append(int byte) {
_bytes.add(_validateByteRange(byte));
}