GoRouteInformationProvider constructor

GoRouteInformationProvider({
  1. required String initialLocation,
  2. required Object? initialExtra,
  3. Listenable? refreshListenable,
  4. bool routerNeglect = false,
})

Implementation

GoRouteInformationProvider({
  required String initialLocation,
  required Object? initialExtra,
  Listenable? refreshListenable,
  bool routerNeglect = false,
})  : _refreshListenable = refreshListenable,
      _value = RouteInformation(
        uri: Uri.parse(initialLocation),
        state: RouteInformationState<void>(
            extra: initialExtra, type: NavigatingType.go),
      ),
      _valueInEngine = _kEmptyRouteInformation,
      _routerNeglect = routerNeglect {
  _refreshListenable?.addListener(notifyListeners);
}