Route constructor

Route(
  1. Api api,
  2. dynamic match, {
  3. dynamic security,
  4. ApiClient? apiClient,
  5. List<HttpHandler> middlewares = const [],
})

Implementation

Route(this.api, match,
    {security,
    ApiClient? apiClient,
    List<HttpHandler> middlewares = const []})
    : match = api.opts.basePath + match,
      security = security ?? api.opts.security {
  _apiClient = apiClient;
  _middlewares = middlewares;
}