StubIoStreamPort class

Stub implementation of IoStreamPort for testing.

Implemented types

Constructors

StubIoStreamPort()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Clear all subscriptions (for test reset).
getStatus(String subscriptionId) Future<SubscriptionStatus?>
Get subscription status, or null if the subscription does not exist.
override
listSubscriptions({String? consumerId, String? deviceId}) Future<List<SubscriptionHandle>>
List active subscriptions, optionally filtered by consumer or device.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subscribe(TopicSpec spec, {required String consumerId}) Future<IoStreamSubscription>
Create a subscription and return handle + stream.
override
toString() String
A string representation of this object.
inherited
unsubscribe(String subscriptionId) Future<void>
Unsubscribe from a topic.
override

Operators

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