hasText method

WidgetMatcher<SelectableText> hasText(
  1. String? value
)

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));
}