Closed
Description
The prefer_mixin
lint points out uses of with
that mix in classes rather than mixins.
Unfortunately, sometimes a class is intended to be used as both a mixin and a class, and there's currently no way to indicate that a particular class is therefore ok for use with with
.
Examples in Flutter's framework include WidgetsBindingObserver
and ChangeNotifier
.