withTextHeightBehavior method

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

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

Example usage:

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

Implementation

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