hasLabel method

WidgetMatcher<Slider> hasLabel(
  1. String? value
)

Expects that label of Slider equals (==) value.

Example usage:

spot<Slider>().existsOnce().hasLabel('foo');

Implementation

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