Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flutter 使用 scoped_model 合并 Model 时 发现mixin_inherits_from_not_object error #13

Open
domliang opened this issue Mar 2, 2019 · 0 comments

Comments

@domliang
Copy link
Owner

domliang commented Mar 2, 2019

错误内容

[Flutter/Dart] The class can’t be used as a mixin because it extends a class other than Object. Error [mixin_inherits_from_not_object]

解决方案:

# pubspec.yaml
analyzer:
  strong-mod: true
  language:
    enableSuperMixins: true
# analysis_options.yaml
analyzer:
  errors:
    mixin_inherits_from_not_object: ignore

参考资料

https://medium.com/@amandeepkochhar/flutter-dart-the-class-cant-be-used-as-a-mixin-because-it-extends-a-class-other-than-object-a53eb5f214b0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant