copy

fun copy(selectedIconColor: Color = this.selectedIconColor, selectedTextColor: Color = this.selectedTextColor, selectedIndicatorColor: Color = this.selectedIndicatorColor, unselectedIconColor: Color = this.unselectedIconColor, unselectedTextColor: Color = this.unselectedTextColor, disabledIconColor: Color = this.disabledIconColor, disabledTextColor: Color = this.disabledTextColor): NavigationRailItemColors

Returns a copy of this NavigationRailItemColors, optionally overriding some of the values. This uses the Color.Unspecified to mean “use the value from the source”