position property

PositionUnit get position

Converts a double value to a fixed PositionUnit.

Creates a position unit with an absolute pixel value. This is useful for positioning elements at fixed offsets from container edges.

Implementation

PositionUnit get position => PositionUnit.fixed(this);