fontFamily property

  1. @override
List<String>? get fontFamily
override

Implementation

@override
List<String>? get fontFamily {
  // Get style from self or closest parent if specified style property is not set
  // due to style inheritance.
  if (_fontFamily == null && parent != null) {
    return parent!.fontFamily;
  }
  return _fontFamily ?? CSSText.DEFAULT_FONT_FAMILY_FALLBACK;
}
set fontFamily (List<String>? value)

Implementation

set fontFamily(List<String>? value) {
  if (_fontFamily == value) return;
  _fontFamily = value;
  // Update all the children text with specified style property not set due to style inheritance.
  _markChildrenTextNeedsLayout(renderBoxModel!, FONT_FAMILY);
}