fontStyle property

FontStyle get fontStyle

Searches the path to the root for the first occurance of a node with a font-style information. Returns FontStyle.normal if no information is present

Implementation

FontStyle get fontStyle {
  NodeV2? k = this;

  while (k != null) {
    FontStyle? localStyle = k._fontStyle;

    if (localStyle != null) return localStyle;

    k = k.parent;
  }

  return FontStyle.normal;
}