withAttributedValue method

  1. @useResult
WidgetSelector<Semantics> withAttributedValue(
  1. String? value
)

Creates a WidgetSelector that finds all Semantics where attributedValue equals (==) value.

Example usage:

spot<Semantics>().withAttributedValue('foo').existsOnce();

Implementation

@useResult
WidgetSelector<Semantics> withAttributedValue(String? value) {
  return withDiagnosticProp<String>('attributedValue',
      (it) => value == null ? it.isNull() : it.equals(value));
}