lineHeight property

double? get lineHeight

The line height of the text

Implementation

double? get lineHeight {
  final heightPx = style?.lineHeightPx;
  final size = style?.fontSize;
  if (heightPx == null || size == null || size == 0) return null;
  return heightPx / size;
}