Router constructor
const
Router({
- required RouterState state,
- required List<
NavigatorObserver> observers(), - Key? key,
Creates a Router.
Implementation
const Router({
required RouterState state,
required GlobalKey<NavigatorState> navigatorKey,
required List<NavigatorObserver> Function() observers,
Key? key,
}) : _state = state,
_navigatorKey = navigatorKey,
_observers = observers,
super(key: key);