CompletableAppRoute<R, P extends RouteParams> class

The details of the route are opaque, all the transitions are managed internally and a future is returned.

Implemented types
Implementers
Available Extensions

Constructors

CompletableAppRoute(String route, CompletableHandler<R, P> handler, ParameterConverter<P> paramConverter, {String? name, ToRouteUri? toRouteUri, ToRouteTitle<P>? toRouteTitle})

Properties

hashCode int
The hash code for this object.
no setterinherited
name String?
The friendly name of the route
final
paramConverter ParameterConverter<P>
Used to convert to typed parameters
final
route String
The uri or name of hte route
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toRouteUri ToRouteUri?
Builds a route uri for given parameters
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 params, SendRoute sender) Future<R>
handleAny(BuildContext context, dynamic params, SendRoute sender) Future
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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