textIndent property

CSSLengthValue get textIndent

Implementation

CSSLengthValue get textIndent {
  if (_textIndent != null) return _textIndent!;

  _ensureLayoutPassInheritedTextCache();
  if (_layoutPassInheritedTextIndent != null) {
    return _layoutPassInheritedTextIndent!;
  }

  final CSSLengthValue resolved =
      (parent as CSSRenderStyle?)?.textIndent ?? CSSLengthValue.zero;
  if (_canUseLayoutPassInheritedTextCache) {
    _layoutPassInheritedTextIndent = resolved;
  }
  return resolved;
}
set textIndent (CSSLengthValue? value)

Implementation

set textIndent(CSSLengthValue? value) {
  if (_textIndent == value) return;
  _textIndent = value;
  _markChildrenTextNeedsLayout(this, TEXT_INDENT);
}