RouteManager class
Manages application routing based on MCP UI DSL spec
Constructors
- RouteManager({required ApplicationDefinition appDefinition, required dynamic pageLoader(String uri), required RuntimeEngine runtimeEngine, String? launchRoute})
Properties
- appDefinition → ApplicationDefinition
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialRoute → String
-
Get initial route — the launch route when one was requested and the
document declares it, the document's own initial route otherwise.
no setter
- launchRoute → String?
-
Route requested by whatever opened this runtime — a scan entry, a deep
link, an app-to-app open (MCP UI DSL 8.9, platform spec 19 4.3).
final
- launchRouteMissing → bool
-
True when a launch route was requested but this document has no such
route. The host discloses it rather than pretending the request landed.
no setter
- pageLoader → dynamic Function(String uri)
-
final
- runtimeEngine → RuntimeEngine
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
generateRoutes(
BuildContext context) → Map< String, WidgetBuilder> - Generate Flutter routes from application definition
- Navigate back
- Navigate to a route with parameters
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onGenerateRoute(
RouteSettings settings) → Route? - Resolves a route name that no entry in generateRoutes matches literally.
-
parseRoute(
String route) → RouteInfo - Parse route and extract parameters
-
popToRoot(
BuildContext context) → void - Pop to root
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited