hasAttributedLabel method

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

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

Example usage:

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

Implementation

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