getAction method

Action getAction(
  1. String name,
  2. dynamic arguments
)

Returns the action with the given name.

Implementation

Action getAction(String name, dynamic arguments) {
  if (!_actions.containsKey(name)) {
    throw ArgumentError.value(
      name,
      'name',
      'An action with this name is not registered.',
    );
  }
  final registration = _actions[name]!;
  return registration.resolve(arguments);
}