RoutePath class
Corresponding to GoRoute in go_router in which using builder callback to create page elements. In order to know which type of the target page, pageType is required. Due to the limitation of code generation, only input top-level | constant | static arguments.
Usage:
const _path1 = RoutePath(
'some_path_1',
pageType: UserPage,
pathArguments: 'id'
,
arguments: 'sort', 'type'
,
);
Constructors
-
RoutePath(String path, {Type? pageType, Function? builder, Function? pageBuilder, String? name, Function? redirect, Function? onExit, Set<
String> ? pathArguments, Set<String> ? arguments, List<_RouteBuilder> ? routes, bool extra = false}) -
Reflect to GoRoute class, using builder for building page of this route
const
Properties
-
arguments
→ Set<
String> ? -
final
- builder → Function?
-
GoRouterWidgetBuilder
final
- extra → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
final
- onExit → Function?
-
final
- pageBuilder → Function?
-
GoRouterPageBuilder
final
- pageType → Type?
-
final
-
final
- path → String
-
final
-
pathArguments
→ Set<
String> ? -
final
- redirect → Function?
-
final
-
routes
→ List<
_RouteBuilder> ? -
final
- 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