hasValue method

WidgetMatcher<Slider> hasValue(
  1. double? value
)

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

Example usage:

spot<Slider>().existsOnce().hasValue(10.5);

Implementation

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