hasSemanticsLabel method

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

Expects that semanticsLabel of SelectableText equals (==) value.

Example usage:

spot<SelectableText>().existsOnce().hasSemanticsLabel('foo');

Implementation

WidgetMatcher<SelectableText> hasSemanticsLabel(String? value) {
  return hasDiagnosticProp<String>('semanticsLabel',
      (it) => value == null ? it.isNull() : it.equals(value));
}