AbstractRouter<O, P> class
abstract
Base router implementation for given output/parameter. Ported from eyeem/router OSS project and improved upon.
@param
the Params class
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearCache(
) → void - clears cache
-
globalParam(
String key, dynamic object) → AbstractRouter - adds a global param accessible to anyone having a hold of this router instance
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
outputFor(
String path, {P? extras}) → O - Open a map'd URL set using {@link #map(String, Class)} or {@link #map(String, BundleBuilder)}
-
paramsForUrl(
String url) → RouterParams< O, P> - Takes a url (i.e. "/users/16/hello") and breaks it into a {@link RouterParams} instance where each of the parameters (like ":id") has been parsed.
-
registerBuilder(
String format, OutputBuilder< O, P> builder) → void - Map a URL to an OutputBuilder
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited