fontFamily property
String?
get
fontFamily
Searches the path to the root for the first occurance of a node with a
font-family information. Returns null
if no information is
present
Implementation
String? get fontFamily {
NodeV2? k = this;
while (k != null) {
if (k.styleProperty != null) {
StyleProperty prop = k.styleProperty!;
dynamic fontFamily = prop.getProperty("font-family");
if (fontFamily != null) return fontFamily;
}
k = k.parent;
}
return null;
}