lineHeight property

  1. @override
CSSLengthValue lineHeight
override

Implementation

@override
CSSLengthValue get lineHeight {
  if (_lineHeight == null && parent != null) {
    return parent!.lineHeight;
  }

  return _lineHeight ?? CSSText.DEFAULT_LINE_HEIGHT;
}
void lineHeight=(CSSLengthValue? value)

Implementation

set lineHeight(CSSLengthValue? value) {
  if (_lineHeight == value) return;
  _lineHeight = value;
  // Update all the children layout and text with specified style property not set due to style inheritance.
  _markNestChildrenTextAndLayoutNeedsLayout(renderBoxModel!, LINE_HEIGHT);
}