letterSpacing property

  1. @override
CSSLengthValue? get letterSpacing
override

Implementation

@override
CSSLengthValue? get letterSpacing {
  // Get style from self or closest parent if specified style property is not set
  // due to style inheritance.
  if (_letterSpacing == null && parent != null) {
    return parent!.letterSpacing;
  }
  return _letterSpacing;
}
set letterSpacing (CSSLengthValue? value)

Implementation

set letterSpacing(CSSLengthValue? value) {
  if (_letterSpacing == value) return;
  _letterSpacing = value;
  // Update all the children text with specified style property not set due to style inheritance.
  _markChildrenTextNeedsLayout(renderBoxModel!, LETTER_SPACING);
}