handleIntent method
Sends the intent to all flows that are running. The UI calls this when emitting an action.
Why use it: The screen doesn't know the flow; it just calls handleIntent(OmegaIntent.fromName(AppIntent.authLogin, payload: creds)).
Example: flowManager.handleIntent(OmegaIntent.fromName(AppIntent.authLogin, payload: creds));
Implementation
void handleIntent(OmegaIntent intent) {
for (final flow in _flows.values) {
if (flow.state == OmegaFlowState.running) {
flow.receiveIntent(intent);
}
}
}