Returns a matcher that matches if an object has a length property that matches matcher.
matcher
Matcher hasLength(Object? matcher) => _HasLength(wrapMatcher(matcher));