whereTextHeightBehavior method

Creates a WidgetSelector that finds all SelectableText where textHeightBehavior matches the condition.

Example usage:

spot<SelectableText>().whereTextHeightBehavior((it) => it.equals(TextHeightBehavior(applyHeightToFirstAscent: true, applyHeightToLastDescent: false))).existsOnce();

Implementation

@useResult
WidgetSelector<SelectableText> whereTextHeightBehavior(
    MatchProp<TextHeightBehavior> match) {
  return withDiagnosticProp<TextHeightBehavior>('textHeightBehavior', match);
}