I checked and the file is OK.
The error I am getting is:
Target of URI hasn’t been generated: ‘file.g.dart’
It may help to run “Synchronize” — bound by default to Ctrl-Q.
You can restart the analyzer on the dart analysis tab, in the top left is a button with arrows running in a circle, if you hover over it it says ‘Restart Dart Analysis Server’.
Answered By – David Morgan
Answer Checked By – Mildred Charles (FlutterFixes Admin)