The method 'toDouble' isn't defined for the type 'Object'
Opened this issue · 2 comments
karan316 commented
value: (_currentStrength ?? userData.strength).toDouble()
This code is giving an error because of userData.strength.
awais-git commented
go to user widget, in which go to userData class and replace final String strength with final int strength
AbdulQader496 commented
go to user widget, in which go to userData class and replace final String strength with final int strength
thanks for pointing it out...
wasted 2 hour of my life and found out that i did not declare the variable as int...