hasTextHeightBehaviorWhere method
Expects that textHeightBehavior of Text matches the condition in match
.
Example usage:
spot<Text>().existsOnce().hasTextHeightBehaviorWhere((it) => it.equals(TextHeightBehavior(applyHeightToFirstAscent: true, applyHeightToLastDescent: false)));
Implementation
WidgetMatcher<Text> hasTextHeightBehaviorWhere(
MatchProp<TextHeightBehavior> match) {
return hasDiagnosticProp<TextHeightBehavior>('textHeightBehavior', match);
}