hasKeyboardType method

WidgetMatcher<TextField> hasKeyboardType(
  1. TextInputType? value
)

Expects that keyboardType of TextField equals (==) value.

Example usage:

spot<TextField>().existsOnce().hasKeyboardType(TextInputType.text);

Implementation

WidgetMatcher<TextField> hasKeyboardType(TextInputType? value) {
  return hasDiagnosticProp<TextInputType>(
      'keyboardType', (it) => value == null ? it.isNull() : it.equals(value));
}