hasMaxLinesWhere method

WidgetMatcher<SelectableText> hasMaxLinesWhere(
  1. MatchProp<int> match
)

Expects that maxLines of SelectableText matches the condition in match.

Example usage:

spot<SelectableText>().existsOnce().hasMaxLinesWhere((it) => it.isGreaterThan(10));

Implementation

WidgetMatcher<SelectableText> hasMaxLinesWhere(MatchProp<int> match) {
  return hasDiagnosticProp<int>('maxLines', match);
}