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 && parent != null) {
return parent!.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(renderBoxModel!, FONT_SIZE);
}