hasLabelWhere method

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

Expects that label of Slider matches the condition in match.

Example usage:

spot<Slider>().existsOnce().hasLabelWhere((it) => it.equals('foo'));

Implementation

WidgetMatcher<Slider> hasLabelWhere(MatchProp<String> match) {
  return hasDiagnosticProp<String>('label', match);
}