copy
fun copy(enableMaterial: Boolean = this.enableMaterial, backgroundColor: Color = this.backgroundColor, cornerSize: Dp = this.cornerSize, contentPadding: PaddingValues = this.contentPadding, itemGap: Dp = this.itemGap, minWidth: Dp = this.minWidth): ToolbarSegmentConfiguration
Copy the configuration with optional overrides.
Return
The new configuration.
Parameters
enableMaterial
Whether to render material background for the segment.
backgroundColor
The solid color overlay of the segment.
cornerSize
The new corner radius of the segment.
contentPadding
The new padding of the segment.
itemGap
The new gap between items of the segment.
minWidth
The new minimum width of the segment.