I have a component that has a boolean variable (pressed) that indicates whether it is pressed or not. This component is repeated as shown in the image about 15 times and I need at a given moment to change the state variable of all of them (refresh)
And I've been trying for a long time and I can't find a way to do it.
What is the solution ?