of static method

Retrieves the nearest GlassSwipeActionScopeState from the widget tree, or null if none is found.

Implementation

static GlassSwipeActionScopeState? of(BuildContext context) {
  return context.findAncestorStateOfType<GlassSwipeActionScopeState>();
}