hasText method
Expects that text of SelectableText equals (==) value
.
Example usage:
spot<SelectableText>().existsOnce().hasText('foo');
Implementation
WidgetMatcher<SelectableText> hasText(String? value) {
return hasDiagnosticProp<String>(
'data', (it) => value == null ? it.isNull() : it.equals(value));
}