RoutingConfig constructor

const RoutingConfig({
  1. required List<RouteBase> routes,
  2. GoRouterRedirect redirect = _defaultRedirect,
  3. int redirectLimit = 5,
})

Creates a routing config.

The routes must not be empty.

Implementation

const RoutingConfig({
  required this.routes,
  this.redirect = _defaultRedirect,
  this.redirectLimit = 5,
});