@override
void initState() {
_portfoliosTabController = TabController(
vsync: this,
length: Provider.of<MyRents>(context, listen: false).list.length,
);
}
That length changes dynamically depending on many factors and functions and it is given by Provider. How can I update it without moving it inside the build() (that creates other issues)