Learning flutter, and getting this error when I add @Override on top of the function. Not sure where to import it from. In Android Studio, I used to hit Alt+Enter to import, but I am using Visual Studio Code, not sure what to do in this case.
Undefined name @Override used as annotation. Try defining the name or importing it from another library.
Compiler message: lib/main.dart:17:4: Error: Getter not found: 'Override'. @Override ^^^^^^^^ lib/main.dart:17:4: Error: This can't be used as metadata; metadata should be a reference to a compile-time constant variable, or a call to a constant constructor.
@Override
@Override
Widget build(BuildContext context) {
...
}
@override
with a lowercase "o". – jamesdlin