of static method

BoxDrawerState? of(
  1. BuildContext context
)

Finds the nearest BoxDrawerState ancestor of the given context.

Implementation

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