hasTextHeightBehavior method

WidgetMatcher<SelectableText> hasTextHeightBehavior(
  1. TextHeightBehavior? value
)

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));
}