hasMaxLength method
Expects that maxLength of TextField equals (==) value
.
Example usage:
spot<TextField>().existsOnce().hasMaxLength(10);
Implementation
WidgetMatcher<TextField> hasMaxLength(int? value) {
return hasDiagnosticProp<int>(
'maxLength', (it) => value == null ? it.isNull() : it.equals(value));
}