RouterState constructor

RouterState(
  1. AuthService _auth, {
  2. RouteInformation? initial,
})

Implementation

RouterState(this._auth, {RouteInformation? initial}) {
  delegate = AppRouterDelegate(this);
  parser = AppRouteInformationParser();

  if (initial != null) {
    provider = PlatformRouteInformationProvider(
      initialRouteInformation: initial,
    );
  }
}