AssertionTargetDiagnostics class

Builds actionable diagnostics for assertion targets.

The visibility predicate is supplied by AssertionEngine, so diagnostics use the same route, opacity, viewport, and offstage rules as assertions.

Constructors

AssertionTargetDiagnostics({required WidgetTester tester, required bool isVisuallyActionable(Element element)})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
isVisuallyActionable → bool Function(Element element)
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tester → WidgetTester
final

Methods

closestVisibleWidgetIds(String target, {int limit = 5}) → List<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
textFailureHint(List<String> expectedTexts, {int limit = 10}) → String
toString() → String
A string representation of this object.
inherited
visibleTextSummary({int limit = 10}) → String
visibleWidgetIdSummary({int limit = 12}) → String
widgetIdFailureHint(String id, {int limit = 12}) → String

Operators

operator ==(Object other) → bool
The equality operator.
inherited