DrawerStackController constructor
DrawerStackController({
- required GlobalKey<
ScaffoldState> scaffoldKey, - required RouterProxy routerProxy,
- required DrawerConfig config,
Implementation
DrawerStackController({
required this.scaffoldKey,
required this.routerProxy,
required this.config,
}) {
// 监听路由栈变化
routerProxy.addListener(_onRouteChanged);
}