ClassNameMatcher class
Match a list of class names on a component
Constructors
- ClassNameMatcher.expected(dynamic _expectedClasses, {bool allowExtraneous = true})
- ClassNameMatcher.unexpected(dynamic _unexpectedClasses)
Properties
- allowExtraneous → bool
-
Whether or not to allow extraneous classes (classes not specified in expectedClasses).
final
- expectedClasses → Set
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unexpectedClasses → Set
-
final
Methods
-
describe(
Description description) → Description - Builds a textual description of the matcher.
-
describeMismatch(
dynamic item, Description mismatchDescription, Map matchState, bool verbose) → Description - Builds a textual description of a specific mismatch.
-
matches(
dynamic className, Map matchState) → bool - Does the matching of the actual vs expected values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getClassIterable(
dynamic classNames) → Iterable