whereSemanticsLabel method

  1. @useResult
WidgetSelector<SelectableText> whereSemanticsLabel(
  1. MatchProp<String> match
)

Creates a WidgetSelector that finds all SelectableText where semanticsLabel matches the condition.

Example usage:

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

Implementation

@useResult
WidgetSelector<SelectableText> whereSemanticsLabel(MatchProp<String> match) {
  return withDiagnosticProp<String>('semanticsLabel', match);
}