MiddlewareRunner constructor

MiddlewareRunner(
  1. List<GetMiddleware>? middlewares
)

Implementation

MiddlewareRunner(List<GetMiddleware>? middlewares)
    : _middlewares = middlewares != null
          ? (List.of(middlewares)..sort(_compareMiddleware))
          : const [];