INNER CODE UNIT · Dart
_InvocationForMatchedArguments
felangel/mocktail · packages/mocktail/lib/src/_is_invocation.dart:118
class _InvocationForMatchedArguments extends Invocation {
factory _InvocationForMatchedArguments(Invocation invocation) {
// Handle named arguments first, so that we can provide useful errors for
// the various bad states. If all is well with the named arguments, then we
// can process the positional arguments, and resort to more general errors
// if the state is still bad.
final namedArguments = _reconstituteNamedArgs(invocation);
final positionalArguments = _reconstitutePositionalArgs(invocation);
_storedArgs.clear();
_storedNamedArgs.clear();
return _InvocationForMatchedArguments._(
invocation.memberName,
positionalArguments,
namedArguments,
invocation.typeArguments,
invocation.isGetter,