I have a getx Controller and I want to call a certain function and restart UI every time my Controller gets build... I use onStart function to do this
@override
get onStart {
getBalance().then((value) {
update([1]);
});
return super.onStart;
}
the code is fine if I use it in any other place it is ok but in onStart function, it wont rebuild my widgets Can I use update in OnStart Function at all? is there any better way to achieve this?