position property

  1. @override
CSSPositionType position
override

Implementation

@override
CSSPositionType get position => _position ?? DEFAULT_POSITION_TYPE;
void position=(CSSPositionType? value)

Implementation

set position(CSSPositionType? value) {
  if (_position == value) return;
  _position = value;

  // Position effect the stacking context.
  _markNeedsSort();
  _markParentNeedsLayout(force: true);
  // Position change may affect transformed display
  // https://www.w3.org/TR/css-display-3/#transformations

  // The position changes of the node may affect the whitespace of the nextSibling and previousSibling text node so prev and next node require layout.
  renderBoxModel?.markAdjacentRenderParagraphNeedsLayout();
}