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