hasMaxLines method

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

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

Example usage:

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

Implementation

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