of static method

Map<Type, Action<Intent>>? of(
  1. BuildContext context
)

Retrieves the nearest action map from the widget tree.

Implementation

static Map<Type, Action>? of(BuildContext context) {
  final scope = context.dependOnInheritedWidgetOfExactType<_ActionsScope>();
  return scope?.actions;
}