whereMaxLines method

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

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

Example usage:

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

Implementation

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