fontSize property
Implementation
@override
CSSLengthValue get fontSize {
// Get style from self or closest parent if specified style property is not set
// due to style inheritance.
if (_fontSize == null && getParentRenderStyle() != null) {
return getParentRenderStyle()!.fontSize;
}
return _fontSize ?? CSSText.DEFAULT_FONT_SIZE;
}
set
fontSize
(CSSLengthValue? value)
Implementation
set fontSize(CSSLengthValue? value) {
if (_fontSize == value) return;
_fontSize = value;
// Update all the children text with specified style property not set due to style inheritance.
_markChildrenTextNeedsLayout(this, FONT_SIZE);
}