withEffectiveMaxLines method
A WidgetSelector for Text widgets with a fixed maxLines
value.
Example:
spot<Text>().withEffectiveMaxLines(2).existsOnce();
See also:
- withEffectiveMaxLinesMatching, for selecting Text widgets that meet
specified
maxLines
conditions, as defined by a custom matcher function.
Implementation
WidgetSelector<Text> withEffectiveMaxLines(int? value) {
return withEffectiveMaxLinesMatching((it) => it.equals(value));
}