ConnectionId constructor
ConnectionId(
- Uint8List bytes
Create a connection id from 16 little-endian wire bytes.
Throws ArgumentError if bytes is not exactly 16 bytes long.
Implementation
ConnectionId(this.bytes) {
if (bytes.length != byteLength) {
throw ArgumentError(
'ConnectionId must be exactly $byteLength bytes, got ${bytes.length}',
);
}
}