invoke static method

Object? invoke(
  1. BuildContext context,
  2. Intent intent
)

Invokes the action matching intent's runtime type.

Implementation

static Object? invoke(BuildContext context, Intent intent) {
  final action = lookupByType(intent.runtimeType, context);
  if (action == null) return null;
  return const ActionDispatcher().invokeAction(action, intent);
}