hasAttributedValue method

WidgetMatcher<Semantics> hasAttributedValue(
  1. String? value
)

Expects that attributedValue of Semantics equals (==) value.

Example usage:

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

Implementation

WidgetMatcher<Semantics> hasAttributedValue(String? value) {
  return hasDiagnosticProp<String>('attributedValue',
      (it) => value == null ? it.isNull() : it.equals(value));
}