whereAutofocus method

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

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

Example usage:

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

Implementation

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