textHeightBehavior method

NikuText textHeightBehavior(
  1. TextHeightBehavior textHeightBehavior
)

Defines how the paragraph will apply TextStyle.height to the ascent of the first line and descent of the last line

Equivalent:

Text(textHeightBehavior: input)

Implementation

NikuText textHeightBehavior(TextHeightBehavior textHeightBehavior) {
  this._textHeightBehavior = textHeightBehavior;

  return this;
}