withSemanticLabel method

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

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