hasSemanticsLabelWhere method

WidgetMatcher<SelectableText> hasSemanticsLabelWhere(
  1. MatchProp<String> match
)

Expects that semanticsLabel of SelectableText matches the condition in match.

Example usage:

spot<SelectableText>().existsOnce().hasSemanticsLabelWhere((it) => it.equals('foo'));

Implementation

WidgetMatcher<SelectableText> hasSemanticsLabelWhere(
    MatchProp<String> match) {
  return hasDiagnosticProp<String>('semanticsLabel', match);
}