hasAutofocus method

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

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

Example usage:

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

Implementation

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