How to update list variable inside App State

Hi,

I have this App State using an scheme to store "players" locally. User can create more players any time and this value "on_table" is changed if user is selecting them or no. But I'd like to know:

  • How to set every "player" on_table in this list to FALSE with a button or page load.

  • How to count how many on_table = TRUE I have in my list

1
1 reply