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