hasAutofocus method

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

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

Example usage:

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

Implementation

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