GoRouteInformationProvider constructor
GoRouteInformationProvider({
- required String initialLocation,
- required Object? initialExtra,
- Listenable? refreshListenable,
- bool routerNeglect = false,
Creates a GoRouteInformationProvider.
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);
}