DonutSection

data class DonutSection(amount: Float, color: Color)

Data class representing the single section of the donut containing amount and color.

Parameters

amount

value of this single section. Eg. when the DonutModel.cap is set to 10f and this is set to 2.5f then this section will take 25% of the whole donut.

color

color of this single section

Constructors

Link copied to clipboard
fun DonutSection(amount: Float, color: Color)

Properties

Link copied to clipboard
val amount: Float
Link copied to clipboard
val color: Color