any<T> function

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

An argument matcher that matches any argument passed in.

Implementation

T any<T>({String? named, Matcher? that}) {
  return _registerMatcher(
    that ?? anything,
    capture: false,
    named: named,
    argumentMatcher: named != null ? 'anyNamed' : 'any',
  );
}