StubIoRegistryPort class

Stub implementation of IoRegistryPort for testing.

Implemented types

Constructors

StubIoRegistryPort()

Properties

events Stream<RegistryEvent>
Stream of registry lifecycle events.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

discover({String? transportFilter, Duration? timeout}) Future<List<DeviceDescriptor>>
Discover available devices, optionally filtered by transport.
override
dispose() → void
Dispose the event stream controller.
get(String deviceId) Future<DeviceDescriptor?>
Get a specific device descriptor by its identifier.
override
list({IoConnectionState? stateFilter}) Future<List<DeviceDescriptor>>
List known devices, optionally filtered by connection state.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerAdapter(AdapterManifest manifest, IoDevicePort adapter) Future<void>
Register an adapter with its manifest.
override
resolveAdapter(String uri) Future<IoDevicePort?>
Resolve the adapter responsible for the given device URI.
override
toString() String
A string representation of this object.
inherited
unregisterAdapter(String adapterId) Future<void>
Unregister an adapter by its identifier.
override

Operators

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