Position.relative constructor

const Position.relative({
  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 itself based on the values of top, right, bottom, and left. The offset does not affect the position of any other elements; thus, the space given for the element in the page layout is the same as if position were static.

Implementation

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