hasTextHeightBehavior method
Expects that textHeightBehavior of SelectableText equals (==) value
.
Example usage:
spot<SelectableText>().existsOnce().hasTextHeightBehavior(TextHeightBehavior(applyHeightToFirstAscent: true, applyHeightToLastDescent: false));
Implementation
WidgetMatcher<SelectableText> hasTextHeightBehavior(
TextHeightBehavior? value) {
return hasDiagnosticProp<TextHeightBehavior>('textHeightBehavior',
(it) => value == null ? it.isNull() : it.equals(value));
}