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: [AuthAgent(...)], flows: [AuthFlow(channel)], routes: [OmegaRoute(...)], initialFlowId: "authFlow");

Constructors

OmegaConfig({List<OmegaAgent> agents = const [], List<OmegaFlow> flows = const [], List<OmegaRoute> routes = const [], String? initialFlowId})
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
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