MiddlewareConsumer class
A consumer for middleware configurations.
Constructors
- MiddlewareConsumer(RouteInfoPathExtractor _pathExtractor)
- Creates a new instance of MiddlewareConsumer.
Properties
-
configurations
→ Set<
MiddlewareConfiguration> -
The list of middleware configurations.
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
-
apply(
List< Middleware> middlewares) → MiddlewareConsumer - Applies the specified middlewares.
-
exclude(
List< RouteInfo> routes) → MiddlewareConsumer - Excludes specific routes from the middleware.
-
forControllers(
List< Type> controllers) → MiddlewareConsumer - Restricts the middleware to specific controllers.
-
forRoutes(
List< RouteInfo> routes) → MiddlewareConsumer - Restricts the middleware to specific routes.
-
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