我无法在我的 flutter 应用程序中使用 mixins,它说:
The class 'UserModel' can't be used as a mixin because it extends a class other than Object
最佳答案
很长一段时间以来,官方都不可能将 mixins 与 extends 的东西混在一起。
最近启用了它,但使用了另一种语法:
mixin UserModel on Model {
// do some stuff
}
关于dart - 在 flutter 中使用 Mixins,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53541880/