RouteConfiguration constructor

RouteConfiguration(
  1. ValueListenable<RoutingConfig> _routingConfig, {
  2. required GlobalKey<NavigatorState> navigatorKey,
  3. Codec<Object?, Object?>? extraCodec,
})

Constructs a RouteConfiguration.

Implementation

RouteConfiguration(
  this._routingConfig, {
  required this.navigatorKey,
  this.extraCodec,
}) {
  _onRoutingTableChanged();
  _routingConfig.addListener(_onRoutingTableChanged);
}