UiRuntimeRegistry class

Registry of installed UI runtimes keyed by id, with a secondary prefix index for target-based routing. Hosts register runtimes at boot or when a bundle that contributes one is activated.

Constructors

UiRuntimeRegistry()

Properties

all → List<UiRuntimePort>
no setter
hashCode → int
The hash code for this object.
no setterinherited
ids → List<String>
no setter
prefixes → List<String>
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

byId(String id) → UiRuntimePort?
byTarget(String target) → UiRuntimePort?
Return the runtime whose supportedPrefixes contains a prefix of target. Iterates in insertion order for deterministic results.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(UiRuntimePort port) → void
Register port. Throws if the id is already taken or a prefix collides with another registered runtime.
resolveOrThrow(String target) → UiRuntimePort
Same as byTarget but throws UnknownUiRuntime on miss.
toString() → String
A string representation of this object.
inherited
unregister(String id) → void
Idempotent remove — unknown ids are ignored. Disposes the runtime.

Operators

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