ConnectionId constructor
Creates a ConnectionId from a list of bytes.
Throws an ArgumentError if the length of bytes
is not
equal to cidLength.
Implementation
ConnectionId(List<int> bytes) : _bytes = Uint8List.fromList(bytes) {
if (_bytes.length != cidLength) {
throw ArgumentError('ConnectionId must be $cidLength bytes long');
}
}