AppPageRoute<R, P extends RouteParams> class Null safety

An app route:

Has a path Has a handler callback Knows how to convert raw map params into actual params Has a default transition type

Implemented types
Implementers
Available Extensions

Constructors

AppPageRoute(String route, WidgetHandler<R, P>? handler, ParameterConverter<P>? paramConverter, {String? name, TransitionType? transitionType, ToRouteUri? toRouteUri, ToRouteTitle<P>? toRouteTitle})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
name String?
final
paramConverter ParameterConverter<P>?
Function to convert parameters to the type expected by this route
final
route String
The route template string
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
toRouteUri ToRouteUri?
Function for creating route uris
final
transitionType TransitionType?
final

Methods

cast<RR, PP extends RouteParams>() AppRoute<RR, PP>
Casts this route to the expected type. If the cast is invalid, you may have errors when running the functions because parameters are not cast correctly
override
handle(BuildContext context, P input) Widget
handleAny(BuildContext context, dynamic input) Widget
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
routeTitle([P? params]) String?
override
routeUri(dynamic params) String
override
toString() String
A string representation of this object. [...]
override

Operators

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