Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular Dart Tutorial section 5 - 'self.injector$Injector'

In the Tour of Heroes tutorial, Section 5, main.dart contains the following line:

final InjectorFactory injector = self.injector$Injector;

Is this a typo? It's giving me a warning in VSCode.

like image 887
Old Brian Avatar asked Oct 16 '22 10:10

Old Brian


1 Answers

I was having the same problem, as it complete with no errors, I just added the following on analysis_options.yaml to ignore the error.

analyzer:
  errors:
    undefined_getter: ignore
like image 108
André Lúcio Avatar answered Oct 29 '22 21:10

André Lúcio