RouteDecoder class
A class that decodes a route and provides information about the current route tree branch and associated page settings.
- Annotations
Constructors
-
RouteDecoder.new(List<
GetPage> currentTreeBranch, PageSettings? pageSettings) -
const
- RouteDecoder.fromRoute(String location)
-
Factory constructor to create a RouteDecoder from a given route
location
.factory
Properties
- args → dynamic
-
Retrieves the arguments passed to the current page.
no setter
-
currentChildren
→ List<
GetPage> ? -
Retrieves the children of the current route, if any.
no setter
-
currentTreeBranch
→ List<
GetPage> -
List of GetPage representing the current branch of the route tree.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- pageSettings → PageSettings?
-
The settings of the current page, including parameters and arguments.
final
-
parameters
→ Map<
String, String> -
Retrieves the parameters of the current page settings.
no setter
- route ↔ GetPage?
-
Returns the last GetPage in the current tree branch, or
null
if empty.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
arguments<
T> () → T? -
Retrieves arguments cast to a specific type
T
, ornull
if type mismatch. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
routeOrUnknown(
GetPage onUnknown) → GetPage -
Returns the last GetPage or a default fallback
onUnknown
. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override