Closed
Description
Per dart-lang/language#32 many non-super-mixins will have to remain as classes indefinitely. Because the warnings from prefer_mixin
show up at mixin application sites, and not at mixin declaration sites, it is not practical for it to warn about them. Mixin declarations are rare. Flutter declares them and makes developers apply them, but few other libraries and frameworks do. Therefore, the user who is applying the mixin rarely has the ability to change the mixin declaration.
Instead prefer_mixin
should only warn about super-mixins, not regular mixins. Perhaps we should also use a different name for this lint. prefer_mixin_supermixin
?