captureAny<T> function

T captureAny<T>({
  1. String? named,
  2. Matcher? that,
})

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',
  );
}