withTextHeightBehavior method

  1. @useResult
WidgetSelector<Text> withTextHeightBehavior(
  1. TextHeightBehavior? value
)

Creates a WidgetSelector that finds all Text where textHeightBehavior equals (==) value.

Example usage:

spot<Text>().withTextHeightBehavior(TextHeightBehavior(applyHeightToFirstAscent: true, applyHeightToLastDescent: false)).existsOnce();

Implementation

@useResult
WidgetSelector<Text> withTextHeightBehavior(TextHeightBehavior? value) {
  return withDiagnosticProp<TextHeightBehavior>('textHeightBehavior',
      (it) => value == null ? it.isNull() : it.equals(value));
}