addCall method

void addCall({
  1. required String named,
  2. Map<String, dynamic> arguments = const {},
})
inherited

Adds a method call to the list of method calls and adds the arguments to the list of received objects

Note: this is the preferred method to use to add a method call as it also forwards the information to the other methods

Implementation

void addCall(
    {required String named, Map<String, dynamic> arguments = const {}}) {
  methodCallList.add(MethodCall(methodName: named, arguments: arguments));
  addCalledFunction(named: named);
  for (final argument in arguments.entries) {
    addReceivedObject(argument.value, name: argument.key);
  }
}