hasDivisions method

WidgetMatcher<Slider> hasDivisions(
  1. int? value
)

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

Example usage:

spot<Slider>().existsOnce().hasDivisions(10);

Implementation

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