whereMaxLines method

  1. @useResult
WidgetSelector<Text> whereMaxLines(
  1. MatchProp<int> match
)

Creates a WidgetSelector that finds all Text where maxLines matches the condition.

Example usage:

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

Implementation

@useResult
WidgetSelector<Text> whereMaxLines(MatchProp<int> match) {
  return withDiagnosticProp<int>('maxLines', match);
}