create
fun create(layoutAnimationSpec: AnimationSpec<Float> = tween(), colorAnimationSpec: AnimationSpec<Color> = tween()): DonutConfig
Content copied to clipboard
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
layout Animation Spec
animation builder for all layout animations
color Animation Spec
animation builder for all color change animations