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