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

一曲冷凌霜 提交于 2019-12-10 14:49:29

问题


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.


回答1:


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


来源:https://stackoverflow.com/questions/53236177/angular-dart-tutorial-section-5-self-injectorinjector

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!