MatchWidget class

Pass to the Match annotation. Includes widgets to generate a corresponding Matcher

Constructors

MatchWidget(Type type, MatchSpecification specification, {Type? secondaryType})
Accepts Type of the widget. E.g MyHomePage An enum MatchSpecification that indicates how many widgets should be matched by generated Matcher. A secondaryType to accomodate any other type needed to generate this matcher. For example to generate a matcher that asserts that a given widget type type is contained in another widget, secondaryType is initialised to accomaodte the second widget type
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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