withAutofocus method
Creates a WidgetSelector that finds all SelectableText where autofocus equals (==) value
.
Example usage:
spot<SelectableText>().withAutofocus(true).existsOnce();
Implementation
@useResult
WidgetSelector<SelectableText> withAutofocus(bool? value) {
return withDiagnosticProp<bool>(
'autofocus', (it) => value == null ? it.isNull() : it.equals(value));
}