of static method

Finds the nearest BoxDrawerState ancestor of the given context.

Implementation

static SlideDrawerState? of(BuildContext context) =>
    context.findAncestorStateOfType<SlideDrawerState>();