Home > Enterprise >  Method name is not showing
Method name is not showing

Time:05-19

Inside a statefulWidget if we typed the keyword "set" a list of possible match shows up. In the list there was a method named setState((){}) to trigger rebuild to update UI on user interaction. But recent Chipmunk version of android studio doesn't show the setState((){}) method in the possible match list. Any idea? [ If duplicate, let us know ]Screenshot

CodePudding user response:

Try this: File -> Invalidate Caches / Restart...

CodePudding user response:

Clean your cache of Android Studio

Go to File -> Invalidate Caches / Restart

CodePudding user response:

See, that error happens quite a few times, and the best way is to remember the syntax.

I'd suggest you complete the syntax yourself and see flutter recognize it. moreover, you can run flutter clean and flutter build in terminal, and invalidate caches from the files group.

Upvote if it helps.

  • Related