hasMaxLength method

WidgetMatcher<TextField> hasMaxLength(
  1. int? value
)

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