DonutSection

fun DonutSection(amount: Float, color: 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