of static method

Finds the DrawerScaffoldState from the closest instance of this class the encloses the given context.

Implementation

static DrawerScaffoldState? of(BuildContext context) {
  return context.findAncestorStateOfType<DrawerScaffoldState>();
}