hasLabelWhere method
Expects that label of Semantics matches the condition in match
.
Example usage:
spot<Semantics>().existsOnce().hasLabelWhere((it) => it.equals('foo'));
Implementation
WidgetMatcher<Semantics> hasLabelWhere(MatchProp<String> match) {
return hasDiagnosticProp<String>('label', match);
}