withSemanticLabel method

  1. @useResult
WidgetSelector<Image> withSemanticLabel(
  1. String? value
)

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