of static method

从 context 中获取 DrawerStackController

Implementation

static DrawerStackController? of(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<InheritedDrawerStackController>()?.controller;
}