Hello,
I'd like to know how to uncheck a CheckboxListTile through an action.
What I want to achieve is to have multiple options but with only one unique answer. When that unique answer is checked, the other options should automatically become unchecked. (just like checkbox group when you can uncheck all options)
I've attempted to update the value on the page state and remove the other options if the unique answer is checked. While it updates the page state correctly, it doesn't reflect the changes in the UI. For example, if I have options A, B, C, and D, with C being the unique answer, and I've already checked A, B, and D, when I check C, it correctly sends C as the selected option to the database, but the UI still shows A, B, and D as checked.
Is there a way to make sure the UI reflects the updated state after the action?
Thanks for the help