Skip to content

Size

@Immutable



@Serializable



data class Size(val width: Int = 0, val height: Int = 0)

An integer width/height pair. Unlike IntSize, this is a regular data class (not an inline value class), which makes it convenient where a boxed, nullable, or default-constructed size is needed, e.g. component configuration.

Constructors

Size

constructor(width: Int = 0, height: Int = 0)

Properties

height

val height: Int

width

val width: Int