of static method
The state from the closest instance of this class that encloses the given context.
Typical usage is as follows:
ScrollableState scrollable = Scrollable.of(context);
Calling this method will create a dependency on the closest SheetScrollable
in the context, if there is one.
Implementation
static SheetState? of(BuildContext context) {
final _ScrollableScope? widget =
context.dependOnInheritedWidgetOfExactType<_ScrollableScope>();
return widget?.scrollable;
}