marginLeft property
Implementation
@override
CSSLengthValue get marginLeft {
final CSSLengthValue physical = _marginLeft ?? CSSLengthValue.zero;
// Keep logical values so they can remap when `direction` changes. When a
// physical side is explicitly specified, it should override the logical
// fallback (matches paddingInlineStart/end behavior).
final CSSLengthValue? logical =
(direction == TextDirection.rtl) ? _marginInlineEnd : _marginInlineStart;
if (_marginLeft != null) return physical;
return logical ?? physical;
}
set
marginLeft
(CSSLengthValue? value)
Implementation
set marginLeft(CSSLengthValue? value) {
if (_marginLeft == value) return;
_marginLeft = value;
markSelfAndParentBoxModelNeedsLayout();
}