hasMaxLines method

WidgetMatcher<SelectableText> hasMaxLines(
  1. int? value
)

Expects that maxLines of SelectableText equals (==) value.

Example usage:

spot<SelectableText>().existsOnce().hasMaxLines(10);

Implementation

WidgetMatcher<SelectableText> hasMaxLines(int? value) {
  return hasDiagnosticProp<int>(
      'maxLines', (it) => value == null ? it.isNull() : it.equals(value));
}