hasMaxLinesWhere method

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

Expects that maxLines of Text matches the condition in match.

Example usage:

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

Implementation

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