BearMiddlewares class
The "stocker" of middleware.
It will ensure that each middleware will be executed in order they have been added.
Constructors
Properties
-
middlewares
→ List<
BearMiddleware> -
The list of middlewares.
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(
BearMiddleware middleware) → void - Add a BearMiddleware to middlewares.
-
process(
BearContext c) → Future< BearContext> -
Execute each BearMiddleware in
middleware
, then return the modified ( or not ) BearContext in aFuture
. -
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