We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Null check operator used on a null value in trackball

I'm trying to use future builder to load the information, but the trackball doesn't appear.

Attachment: main_b0690bf9.zip

1 Reply

YG Yuvaraj Gajaraj Syncfusion Team January 16, 2023 01:04 PM UTC

Hi Felipe,

Greetings from Syncfusion.

We have checked your code snippet and found that you have called the setState() inside the future builder and it is updating the whole chart again and the properties of the chart will get reset each time. That is why it is throw a null check exception. We have modified your code snippet like storing the data by parsing the JSON at the initState and assigned it to the data source now the trackball working fine. We have shared the sample below for your reference.




Attachment: f180007_30ae562b.zip

Live Chat Icon For mobile
Up arrow icon