title: Get.to(MyPage()) - How to remove all previous routes - Flutter GetX
body: <p>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?</p>
  <p>Now it works with</p>
  <pre><code>Navigator.of(context).pushNamedAndRemoveUntil('/home', (Route&lt;dynamic&gt; route) =&gt; false);
  </code></pre>
  <p>But I want to know the correct way with <code>Get.to</code> or similar</p>