of static method

XActionPaneData? of(
  1. BuildContext context
)

The action pane's data from the closest instance of this class that encloses the given context.

Implementation

static XActionPaneData? of(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<_XActionPaneScope>()?.actionPaneData;
}