I have a simple Flutter app and I want to remove all previous routes but I want to do with GetX, How to do that?
Now it works with
Navigator.of(context).pushNamedAndRemoveUntil('/home', (Route<dynamic> route) => false);
But I want to know the correct way with Get.to
or similar