whereTextHeightBehavior method

  1. @useResult
WidgetSelector<Text> whereTextHeightBehavior(
  1. MatchProp<TextHeightBehavior> match
)

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

Example usage:

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

Implementation

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