use a single variable of type object. assuming you have unique ids for each item in the list, when you toggle partially change the variable with the current id as path to true/false. to check the state of a toggle just check the value of yourvariable[id]