activate method

bool activate(
  1. String id
)

Activates the flow id without pausing others. Multiple flows can be running and all receive intents.

Why use it: When you want more than one flow to react (e.g. auth + cart). For a single active flow, use switchTo. Example: flowManager.activate("authFlow"); flowManager.activate("cartFlow");

Implementation

bool activate(String id) {
  final flow = _flows[id];
  if (flow == null) return false;
  if (flow.state == OmegaFlowState.running) return true;

  flow.start();
  return true;
}