concat method

ByteArray concat(
  1. ByteArray other
)

Concatenates this byte array with another.

other the other byte array

Implementation

ByteArray concat(ByteArray other) {
  List<int> combined = List<int>.from(_bytes);
  combined.addAll(other._bytes);
  return ByteArray.fromList(combined);
}