OmegaConfig class

Bootstrap configuration: list of agents, flows, routes and initial flow.

Why use it: Single object you pass to OmegaRuntime.bootstrap; the runtime registers everything and returns the OmegaRuntime.

Example: OmegaConfig(agents: [...], flows: [...], routes: [...], initialFlowId: "authFlow", initialNavigationIntent: OmegaIntent.fromName(AppIntent.navigateLogin), intentHandlerRegistrars: [MyDemo.attach]);

Constructors

OmegaConfig({List<OmegaAgent> agents = const [], List<OmegaFlow> flows = const [], List<OmegaRoute> routes = const [], String? initialFlowId, OmegaIntent? initialNavigationIntent, List<OmegaIntentHandlerRegistrar> intentHandlerRegistrars = const []})
const

Properties

agents List<OmegaAgent>
final
flows List<OmegaFlow>
final
hashCode int
The hash code for this object.
no setterinherited
initialFlowId String?
Id of the flow to activate when the app opens. The host calls flowManager.switchTo(initialFlowId) on the first frame.
final
initialNavigationIntent OmegaIntent?
Optional first navigation intent (e.g. OmegaIntent.fromName with AppIntent.navigateLogin).
final
intentHandlerRegistrars List<OmegaIntentHandlerRegistrar>
Optional hooks; OmegaRuntime.bootstrap invokes each with the same OmegaFlowManager and OmegaChannel the runtime uses (after wireNavigator).
final
routes List<OmegaRoute>
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