RouteInformationState<T> constructor

  1. @visibleForTesting
RouteInformationState<T>({
  1. Object? extra,
  2. Completer<T?>? completer,
  3. RouteMatchList? baseRouteMatchList,
  4. required NavigatingType type,
})

Creates an InternalRouteInformationState.

Implementation

@visibleForTesting
RouteInformationState({
  this.extra,
  this.completer,
  this.baseRouteMatchList,
  required this.type,
})  : assert((type == NavigatingType.go || type == NavigatingType.restore) ==
          (completer == null)),
      assert((type != NavigatingType.go) == (baseRouteMatchList != null));