Home > Software engineering >  How to fix it? (Getting errors). location pluggin
How to fix it? (Getting errors). location pluggin

Time:01-24

https://i.stack.imgur.com/s2B30.png It shows me errors and I got the dependency and imports. Using location plugin flutter.

CodePudding user response:

Run flutter clean and Flutter pub get again

CodePudding user response:

You haven't defined a function. But you are trying to return something in just class code. You can only return from a function.

Wrap the lines 32 to 41 inside a function and make that function async since you are using await.

  •  Tags:  
  • Related