FakeChannelRequest class

One RtcPeerLink.openChannel call, as the transport made it.

Recorded and never removed, so a test can assert on what the transport asked for — in particular the reliability mode, which the fake honours by remembering rather than by dropping packets. Only a device proves the mode does anything; this proves the transport requested it.

Constructors

FakeChannelRequest({required String peerKey, required int id, required bool ordered, required int? maxRetransmits})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
id → int
final
maxRetransmits → int?
final
ordered → bool
final
peerKey → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited