hasAutofocus method

WidgetMatcher<Slider> hasAutofocus(
  1. bool? value
)

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

Example usage:

spot<Slider>().existsOnce().hasAutofocus(true);

Implementation

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