Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The method 'toDouble' isn't defined for the type 'Object' #18

Open
karan316 opened this issue Jul 18, 2020 · 2 comments
Open

The method 'toDouble' isn't defined for the type 'Object' #18

karan316 opened this issue Jul 18, 2020 · 2 comments

Comments

@karan316
Copy link

value: (_currentStrength ?? userData.strength).toDouble()

This code is giving an error because of userData.strength.

@awais-git
Copy link

go to user widget, in which go to userData class and replace final String strength with final int strength

@AbdulQader496
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants