create
fun create(isLayoutAnimationsEnabled: Boolean = true, isColorAnimationEnabled: Boolean = true, layoutAnimationBuilder: AnimationBuilder<Float> = getDefaultFloatAnimationBuilder(), colorAnimationBuilder: AnimationBuilder<Color> = getDefaultColorAnimationBuilder()): 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 be enabled and will use the same animation builder).
Return
the new instance of DonutConfig
Parameters
isLayoutAnimationsEnabled
enable or disable all layout animations
isColorAnimationEnabled
enable or disable all color change animations
layoutAnimationBuilder
animation builder for all layout animations
colorAnimationBuilder
animation builder for all color change animations