lineHeight property
double?
get
lineHeight
Returns the component's line height.
Implementation
double? get lineHeight {
if (this.node is! figma.Text) {
return null;
}
final node = this.node as figma.Text;
final heightPx = node.style?.lineHeightPx;
final size = node.style?.fontSize;
if (heightPx == null || size == null || size == 0) return null;
return heightPx / size;
}