markAddressListItemSelected
fun markAddressListItemSelected(list: List<AddressListItem>, code: String? = null): List<AddressListItem>
Mark the item that matches the given code as selected in the given input list.
Return
List of AddressListItem with the item in the list having given code marked as selected.
Parameters
list
Input list of AddressListItem.
code
Country or state code to be marked as selected.