hasMax method

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

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

Example usage:

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

Implementation

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