hasLength function Null safety

Matcher hasLength(
  1. dynamic matcher
)

Returns a matcher that matches if an object has a length property that matches matcher.

Implementation

Matcher hasLength(matcher) => _HasLength(wrapMatcher(matcher));