hasOverflow method
Expects that overflow of Text equals (==) value
.
Example usage:
spot<Text>().existsOnce().hasOverflow(TextOverflow.values.first);
Implementation
WidgetMatcher<Text> hasOverflow(TextOverflow? value) {
return hasDiagnosticProp<TextOverflow>(
'overflow', (it) => value == null ? it.isNull() : it.equals(value));
}