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