iamshaunjp/flutter-firebase

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

Opened this issue · 2 comments

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

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

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

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