AssertionTextPolicy class

Implements text matching rules shared by the assertion facade.

The policy receives visibility queries from AssertionEngine, keeping widget traversal and text matching separate without changing the public assertion surface.

Constructors

AssertionTextPolicy({required bool isVisible(String text), required bool isContainingVisible(String text), required String failureHint(List<String> expectedTexts)})
const

Properties

failureHint → String Function(List<String> expectedTexts)
final
hashCode → int
The hash code for this object.
no setterinherited
isContainingVisible → bool Function(String text)
final
isVisible → bool Function(String text)
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

expectNoText(String text) → void
expectNoTextAny(List<String> texts) → void
expectText(String text) → void
expectTextAny(List<String> texts) → void
expectTextContains(String text) → void
expectTextContainsAny(List<String> texts) → void
isAnyTextContainingVisible(List<String> texts) → bool
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