of static method

CollapsibleSheetState? of(
  1. BuildContext context
)

The state of the closest ancestor collapsible sheet.

Can be used to expand and collapse the surrounding sheet.

Implementation

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