Middleware<T> class abstract

A reusable class that injects functionality to determined endpoints

Constructors

Middleware()
Constructor

Properties

attachFunction → void Function(List<Middleware<T>> list)
Function used to attach a Middleware to a request chain
no setter
attachTo bool Function(String uri, Method method)
Function used to check if this Middleware should attach to a request chain defined uri and method
no setter
clone Middleware<T>?
Returns a shallow copy of this object
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onHandle(T param) Future<T>
Method called when something should be handled in this class
inherited
onInit(Context context) Future<void>
Method called to initialize this class
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited