oday
06/03/2020, 12:31 PMit.items with a new object whose toggled variable is now changed?
it.items.map { item ->
item.copy(toggled = createSearchParams?.condition?.contains(item.itemValue)!!)
}Matias Reparaz
06/03/2020, 12:39 PM!! at the end by ?: false to avoid a NPEoday
06/03/2020, 12:40 PMphldavies
06/03/2020, 1:59 PMit.items in place though if that is what you were expecting.