How to use 2 mixins in State in Flutter?
For anyone coming here using SingleTickerProviderStateMixin
, simply remove the Single
from the name.
class ListScreenState extends State<ListScreen> with AutomaticKeepAliveClientMixin, TickerProviderStateMixin {
// TODO: implement wantKeepAlive
@override
bool get wantKeepAlive => null;
}