Flutter update is giving me this error: The method '*' was called on null
问题 I have a flutter app using the flame library. I'm trying to make an object move in a flutter game. When I run the update function, I get the following error: The method '*' was called on null. Receiver: null Tried calling: *(0.0) Seems like something isn't initialized and the update function is ran before that something is initialized. When I comment out player.update(t) it works, but the update function doesn't get called. What am I doing wrong ad how can I fix it? Here's my code: Game