bytes method
Returns the combined address and amount as a byte array. The address occupies the first TXADDRLEN bytes, followed by the amount in TXAMOUNT bytes.
Implementation
ByteArray bytes() {
final buffer = Uint8List(TXADDRLEN + TXAMOUNT);
buffer.setAll(0, _address);
buffer.setAll(TXADDRLEN, getAmountBytes());
return buffer;
}