RouterConfig<T> constructor
Null safety
- {RouteInformationProvider? routeInformationProvider,
- RouteInformationParser<
T> ? routeInformationParser, - required RouterDelegate<
T> routerDelegate, - BackButtonDispatcher? backButtonDispatcher}
Creates a RouterConfig.
The routerDelegate must not be null. The backButtonDispatcher, routeInformationProvider, and routeInformationParser are optional.
The routeInformationProvider and routeInformationParser must both be provided or not provided.
Implementation
const RouterConfig({
this.routeInformationProvider,
this.routeInformationParser,
required this.routerDelegate,
this.backButtonDispatcher,
}) : assert((routeInformationProvider == null) == (routeInformationParser == null));