whereKeyboardType method

  1. @useResult
WidgetSelector<TextField> whereKeyboardType(
  1. MatchProp<TextInputType> match
)

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

Example usage:

spot<TextField>().whereKeyboardType((it) => it.equals(TextInputType.text)).existsOnce();

Implementation

@useResult
WidgetSelector<TextField> whereKeyboardType(MatchProp<TextInputType> match) {
  return withDiagnosticProp<TextInputType>('keyboardType', match);
}