execute method

T? execute(
  1. DOMAction<T> action,
  2. T? target,
  3. T? self, {
  4. DOMTreeMap? treeMap,
  5. DOMContext? context,
})

Implementation

T? execute(DOMAction<T> action, T? target, T? self,
    {DOMTreeMap? treeMap, DOMContext? context}) {
  T? result;
  if (action is DOMActionSelect<T>) {
    result = selectByID(action.id, target, self, treeMap, context);
  } else if (action is DOMActionCall<T>) {
    result =
        call(action.name, action.parameters, target, self, treeMap, context);
  }
  return result;
}