hasKeyboardTypeWhere method

WidgetMatcher<TextField> hasKeyboardTypeWhere(
  1. MatchProp<TextInputType> match
)

Expects that keyboardType of TextField matches the condition in match.

Example usage:

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

Implementation

WidgetMatcher<TextField> hasKeyboardTypeWhere(
    MatchProp<TextInputType> match) {
  return hasDiagnosticProp<TextInputType>('keyboardType', match);
}