hasTextHeightBehaviorWhere method

WidgetMatcher<SelectableText> hasTextHeightBehaviorWhere(
  1. MatchProp<TextHeightBehavior> match
)

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