AbstractRouter<O, P> class

Base router implementation for given output/parameter. Ported from eyeem/router OSS project and improved upon.

@param the Output class @param

the Params class

Implementers

Constructors

AbstractRouter()

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

clearCache() → void
globalParam(String key, dynamic object) AbstractRouter
outputFor(String url, { 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 [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited