create

fun create(layoutAnimationSpec: AnimationSpec<Float> = tween(), colorAnimationSpec: AnimationSpec<Color> = tween()): DonutConfig

The factory method for DonutConfig that simplifies the creation of new configuration instances where all layout animations or all color animations should behave similarly (Eg. all layout animations will use the same animation spec).

Return

the new instance of DonutConfig

Parameters

layoutAnimationSpec

animation builder for all layout animations

colorAnimationSpec

animation builder for all color change animations