agent_gate_getx library

GetX integration for agent_gate.

  • GetxAdapter — NavigationAdapter over Get.toNamed / offNamed / offAllNamed (or Get.to(builder) for builder-only candidates). No BuildContext needed anywhere.
  • GateArguments — the typed payload delivered through Get.arguments so the destination knows why it was chosen.
  • GateGetPage — a GetPage whose page is a GatePage: the AI-chosen candidate renders inline at that named route.
  • GateMiddleware — GetMiddleware.redirectDelegate for apps on GetX's Navigator-2 router (GetMaterialApp.router); resolves a gate path to the chosen candidate's route before anything is built.
  • GateController — a GetxController that exposes the last decision reactively, for teams that keep navigation decisions in controllers.

Classes

GateArguments
Payload delivered via Get.arguments by GetxAdapter.
GateController
A GetxController wrapper around AgentGate for teams that keep navigation decisions in controllers and bind UI with Obx.
GateGetPage
A GetPage whose page is the gate.
GateMiddleware
GetX router middleware (Navigator 2 / GetMaterialApp.router) that resolves a gate route to the chosen candidate's route.
GetxAdapter
NavigationAdapter for GetX. Context-free: works from controllers, services and callbacks alike.

Enums

GetxNavigationMode
How GetxAdapter should move to the chosen route.

Typedefs

GateArgumentsBuilder = Object? Function(GateArguments args)
Customises the arguments delivered to the destination. Receives the default GateArguments; return anything (or null).
GateGetContext = Map<String, Object?> Function(Map<String, String?> parameters, Object? arguments)
Derives per-navigation decider context from GetX routing state (Get.parameters, Get.arguments).
GateNavContext = Map<String, Object?> Function(GetNavConfig route)
Derives decider context from the incoming GetNavConfig.