AlbaRouterDelegate constructor
AlbaRouterDelegate({
- required RouterState routerState,
- GlobalKey<
RouterWidgetState> ? routerKey, - String initialPath()?,
- List<
NavigatorObserver> observers()?,
Creates a AlbaRouterDelegate.
Implementation
AlbaRouterDelegate({
required RouterState routerState,
GlobalKey<RouterWidgetState>? routerKey,
String Function()? initialPath,
List<NavigatorObserver> Function()? observers,
}) : _routerState = routerState,
_navigatorKey = routerState._navigatorKey,
_routerKey = routerKey,
_initialPath = initialPath,
_observers = observers {
_routerState.addListener(() {
notifyListeners();
});
}