add
Item
fun addItem(supportList: SnapshotStateList<Pair<String, String>>, index: Int, key: String, value: String)
Function to add an item to the support list, this process to keep refreshed the item (so when the user typing the characters sequence of the key for example), remove the current one and replace at the same index the new item
Parameters
support List
: the support list where add the item
index
: the index where first remove then insert the item
key
: the key of the item
value
: the value of the item