Middleware<T> class Null safety

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
read-only
attachTo bool Function(String uri, Method method)
Function used to check if this Middleware should attach to a request chain defined uri and method
read-only
clone Middleware<T>?
Returns a shallow copy of this object [...]
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>
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