withSelected

open fun withSelected(selected: Boolean): ToolbarItem

A copy of this item with ToolbarItemState.isSelected set to selected; this when unchanged.