paddingLeft property

  1. @override
CSSLengthValue get paddingLeft
override

Implementation

@override
CSSLengthValue get paddingLeft {
  final CSSLengthValue physical = _paddingLeft ?? CSSLengthValue.zero;
  // When both logical and physical properties target the same side (e.g.
  // padding-inline-start + padding-left in LTR), browsers allow the physical
  // side to override the logical one. We keep the logical value around so it
  // can remap when `direction` changes, but only use it as a fallback when
  // the physical side is not explicitly specified.
  final CSSLengthValue? logical = (direction == TextDirection.rtl) ? _paddingInlineEnd : _paddingInlineStart;
  if (_paddingLeft != null) return physical;
  return logical ?? physical;
}
set paddingLeft (CSSLengthValue? value)

Implementation

set paddingLeft(CSSLengthValue? value) {
  value = _normalizePaddingLength(value);
  if (_paddingLeft == value) return;
  _paddingLeft = value;
  _markSelfAndParentNeedsLayout();
}