Position.sticky constructor

const Position.sticky({
  1. Unit? top,
  2. Unit? left,
  3. Unit? bottom,
  4. Unit? right,
})

The element is positioned according to the normal flow of the document, and then offset relative to its nearest scrolling ancestor and containing block (nearest block-level ancestor), including table-related elements, based on the values of top, right, bottom, and left. The offset does not affect the position of any other elements.

Implementation

const factory Position.sticky({Unit? top, Unit? left, Unit? bottom, Unit? right}) = _Positioned.sticky;