hasAutocorrect method

WidgetMatcher<TextField> hasAutocorrect(
  1. bool? value
)

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

Example usage:

spot<TextField>().existsOnce().hasAutocorrect(true);

Implementation

WidgetMatcher<TextField> hasAutocorrect(bool? value) {
  return hasDiagnosticProp<bool>(
      'autocorrect', (it) => value == null ? it.isNull() : it.equals(value));
}