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