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