GlobalMiddleware class

Registers a Middleware implementation globally, applied to every route.

Global middleware run in ascending order (ties broken by class name), before controller- and route-level middleware. The class joins the dependency injection graph automatically.

Annotations
  • @Target.new({TargetKind.classType})

Constructors

GlobalMiddleware({int order = 0})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
order → int
final
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