hasLabelWhere method

WidgetMatcher<Semantics> hasLabelWhere(
  1. MatchProp<String> match
)

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