hasValue method

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

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

Example usage:

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

Implementation

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