hasTextHeightBehaviorWhere method

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

Expects that textHeightBehavior of Text matches the condition in match.

Example usage:

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

Implementation

WidgetMatcher<Text> hasTextHeightBehaviorWhere(
    MatchProp<TextHeightBehavior> match) {
  return hasDiagnosticProp<TextHeightBehavior>('textHeightBehavior', match);
}