whereMaxLines method

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

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

Example usage:

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

Implementation

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