hi i want to know how te reset all value of controller in getx packages ?
I already tried
Get.reset();
but that's not working
hi i want to know how te reset all value of controller in getx packages ?
I already tried
Get.reset();
but that's not working
Get.reset() is for removing all pages that you added them in stack navigator and it is not for resetting the values of GetXController parameters
if you want to reset controller values you must define your controller after build like this:
Widget build(BuildContext context) {final MessageController msController = Get.put(MessageController());
You have to use
force: true
: