GlobalMiddleware class

Middleware that packages add at startup. dox_core puts them in front of the app's own globalMiddleware.

dox_core clears the list each time the app starts, before the providers run setup(). So add from setup(). Anything added before the app starts is cleared.

Constructors

GlobalMiddleware()

Properties

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
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

items → List<Object>
the added middleware, in order
no setter
version ↔ int
goes up on every change
getter/setter pair

Static Methods

add(Object middleware) → void
add middleware once (a second add of the same one is skipped). The check uses ==. Use a top-level function or a const instance.
clear() → void
remove all. dox_core calls it at each start. Also for tests.