captureAny<T> function
An argument matcher that captures any argument passed in.
Implementation
T captureAny<T>({String? named, Matcher? that}) {
return _registerMatcher(
that ?? anything,
capture: true,
named: named,
argumentMatcher: named != null ? 'anyNamed' : 'any',
);
}