Checking checkbox launches parent's Backend Query

Widgets & Design

Hi I have a component with list of names and checkboxes.

There is a backend query (API call) attached to parent element of listView:

Problem:

when i check/uncheck the box, the backend query in the parent is being called.

How can I prevent this, so that no extra api calls are being done? I am guessing that when box is clicked, the whole component is being redrawn thus running backend query.

What have you tried so far?

I have tried to add On Initialization action to component level, however it seems like builder is not able to correctly process data - it results in uncatched exception -

Did you check FlutterFlow's Documentation for this topic?
Yes
1