OmegaRuntime class

Result of bootstrap: channel, flowManager, protocol, navigator and optionally initialFlowId.

Why use it: Single creation point; agents, flows and navigator share the same channel.

Example: final r = OmegaRuntime.bootstrap((c) => OmegaConfig(channel: c, agents: [...], flows: [...], routes: [...], initialFlowId: "authFlow")); Then wrap the app with OmegaScope and assign r.navigator.navigatorKey to MaterialApp.

Constructors

OmegaRuntime.bootstrap(OmegaConfig createConfig(OmegaChannel))
Creates channel, config (with your createConfig), flowManager, protocol, navigator; registers agents, flows and routes; connects navigator to the channel.
factory

Properties

channel OmegaChannel
final
flowManager OmegaFlowManager
final
hashCode int
The hash code for this object.
no setterinherited
initialFlowId String?
Id of the flow to activate on startup. On first frame: flowManager.switchTo(initialFlowId).
final
final
protocol OmegaAgentProtocol
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.
inherited

Operators

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