withText method
Creates a WidgetSelector that finds all AnyText where text equals (==) value
.
Example usage:
spot<AnyText>().withText('foo').existsOnce();
Implementation
@useResult
WidgetSelector<AnyText> withText(String? value) {
return withDiagnosticProp<String>(
'text', (it) => value == null ? it.isNull() : it.equals(value));
}