of static method

SheetStateInfo? of(
  1. BuildContext context
)

Returns the nearest SheetStateInfo in context, or null.

Implementation

static SheetStateInfo? of(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<GlassModalSheetStateProvider>()
      ?.info;
}