Help with toggling all toggles in a list

Hello, I am trying to deisgn a mock Wi-Fi control screen, and in doing so I am wanting to allow for users to toggle on and off certain devices. At the same time, I am wanting the ability for users to toggle on and off all devices at once:

I have a database labeled “Devices” that contains a name and a on/off property. The screen contains a list of all devices in said database, with an icon on the right that toggles their on/off property.
My problem is making the top toggle button change the property for all devices. It’s only allowing me to alter an insignificant property for the user:

If anyone knows how I could go about accomplishing this goal, it would be greatly appreciated. Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.