hasProperty function
Returns a matcher that checks if a class instance has a property
with name name
, and optionally, if that property in turn satisfies
a matcher
.
Implementation
Matcher hasProperty(String name, [Object? matcher]) =>
_HasProperty(name, matcher == null ? null : wrapMatcher(matcher));