RouteTree constructor

const RouteTree({
  1. List<RouteEntry> routes = const [],
  2. List<MiddlewareEntry> globalMiddleware = const [],
  3. List<MiddlewareEntry> scopedMiddleware = const [],
  4. List<ErrorEntry> scopedErrors = const [],
  5. RouteEntry? fallback,
  6. HooksEntry? hooks,
})

Creates a scanned route tree.

Implementation

const RouteTree({
  this.routes = const [],
  this.globalMiddleware = const [],
  this.scopedMiddleware = const [],
  this.scopedErrors = const [],
  this.fallback,
  this.hooks,
});