whereAutofocus method

  1. @useResult
WidgetSelector<EditableText> whereAutofocus(
  1. MatchProp<bool> match
)

Creates a WidgetSelector that finds all EditableText where autofocus matches the condition.

Example usage:

spot<EditableText>().whereAutofocus((it) => it.isTrue()).existsOnce();

Implementation

@useResult
WidgetSelector<EditableText> whereAutofocus(MatchProp<bool> match) {
  return withDiagnosticProp<bool>('autofocus', match);
}