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