DrawerStackController constructor

DrawerStackController({
  1. required GlobalKey<ScaffoldState> scaffoldKey,
  2. required RouterProxy routerProxy,
  3. required DrawerConfig config,
})

Implementation

DrawerStackController({
  required this.scaffoldKey,
  required this.routerProxy,
  required this.config,
}) {
  // 监听路由栈变化
  routerProxy.addListener(_onRouteChanged);
}