offset

Creates a literal expression for a 2D Offset.


fun offset(x: Dp, y: Dp): DpOffsetLiteral(source)

Creates a literal expression for a 2D DpOffset.


fun offset(x: TextUnit, y: TextUnit): Expression<TextUnitOffsetValue>(source)

Creates a literal expression for a 2D TextUnit offset.

Both x and y must have the same TextUnitType.