hasAutocorrect method
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));
}