hasAutofocusWhere method

WidgetMatcher<TextField> hasAutofocusWhere(
  1. MatchProp<bool> match
)

Expects that autofocus of TextField matches the condition in match.

Example usage:

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

Implementation

WidgetMatcher<TextField> hasAutofocusWhere(MatchProp<bool> match) {
  return hasDiagnosticProp<bool>('autofocus', match);
}