withSemanticsLabel method

  1. @useResult
WidgetSelector<SelectableText> withSemanticsLabel(
  1. String? value
)

Creates a WidgetSelector that finds all SelectableText where semanticsLabel equals (==) value.

Example usage:

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

Implementation

@useResult
WidgetSelector<SelectableText> withSemanticsLabel(String? value) {
  return withDiagnosticProp<String>('semanticsLabel',
      (it) => value == null ? it.isNull() : it.equals(value));
}