of static method

ActionExecutor of(
  1. BuildContext context
)

Retrieves the ActionExecutor from the widget tree

This method should be called from within the widget tree to access action execution capabilities. Throws if no DefaultActionExecutor is found in the ancestor tree.

Implementation

static ActionExecutor of(BuildContext context) {
  return context
      .getInheritedWidgetOfExactType<DefaultActionExecutor>()!
      .actionExecutor;
}