I want to use check box in my project but facing this error

47 Views Asked by At

enter image description hereenter image description here

1: I want to use check box but facing this error again and again.. I'm new in flutter what do I do now. https://i.stack.imgur.com/m9PdK.jpg

1

There are 1 best solutions below

4
On

It seems that to believe the error message that is showing you have mutliple causes:

First the "error getter 'sortFilter' isn't defined means that you either didn't pass the argument or that simply the sortFilter isn't defined in your widget meaning that when you do widget.sortFilter, here sortFilter will be undefined.

Secondly, it appear that for the last error message selectedValue is just not initialized, you certainly put before, the keyword late to that variable and didn't put a value afterward. So try by default giving him true or false and at least you should have this solved.

Anyways, if those solution doesn't not work, please give a better overview or your code especially the widget CarInfoScreen.