StackedRoute class

A route that is displayed visually above the matching parent route using the Navigator.

The widget returned by builder is wrapped in Pageand provided to the root Navigator or the Navigator belonging to the nearest NestedStackRoute ancestor. The page will be either a MaterialPage or CupertinoPage depending on the application type.

This route has the same behavior as GoRoute in go_router >=3.0.0.

Inheritance

Constructors

StackedRoute({required String path, required StackedRouteBuilder builder, Redirect? redirect, List<RouteBase> routes = const []})

Properties

builder StackedRouteBuilder
final
hashCode int
The hash code for this object.
no setterinherited
path String
finalinherited
redirect Redirect?
finalinherited
routes List<RouteBase>
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited