withSemanticLabel method
Creates a WidgetSelector that finds all Image where semanticLabel equals (==) value
.
Example usage:
spot<Image>().withSemanticLabel('foo').existsOnce();
Implementation
@useResult
WidgetSelector<Image> withSemanticLabel(String? value) {
return withDiagnosticProp<String>('semanticLabel',
(it) => value == null ? it.isNull() : it.equals(value));
}