BearRouter class
The "stocker" of route.
Constructors
Properties
-
routes
→ List<
BearRoute> -
The list of routes.
final
-
statics
→ List<
BearStatic> -
The list of statics.
final
- 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
-
add(
String method, String path, Object handler) → void - Add a new BearRoute to routes [...]
-
route(
BearContext c) → void -
Call the correspondent BearRoute of the
c
[...] -
static(
String path, String directory) → void - Add a new BearStatic to statics [...]
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
@pragma("vm:entry-point"), inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited