Middleware<T> class
Null safety
Used to manage requests and responses before and after the endpoint manages them
Constructors
Properties
- attachTo → bool Function(String? uri, Method? method)
-
Indicates for which uris and methods the middleware should attach to [...]
read-only
-
clone
→ Middleware<
T> ? -
A clone of this class [...]
read-only
- 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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
onHandle(
T param) → Future< T> -
Called every time an handling is needed. [...]
inherited
-
onInit(
Context context) → Future< void> - Called to init a component only one time. [...]
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited