Flutter的scope_model使用mixin语法报错

在pubspec.yaml同级目录下创建analysis_options.yaml文件,内容:

  

# https://www.dartlang.org/guides/language/analysis-options
analyzer:
strong-mode: true
errors:
mixin_inherits_from_not_object: ignore

猜你喜欢

转载自www.cnblogs.com/ckAng/p/10457671.html