title: How to put Flutter GetXController permanently in memory?
body: <p>I am using <a href="https://pub.dev/packages/get" rel="nofollow noreferrer">get</a> package.</p>
  <p>Here's what my code looks like,</p>
  <pre><code>class MyController extends GetXController{
  //code to fetch data from firebase
  }
  
  class SecondScreen extends GetView&lt;MyController&gt;{
    @override
    Widget build(BuildContext context) {
      return GetBuilder(
        init: MyController(),
        builder: (controller) {
          return Scaffold(
          //code...
          );
        },
      );
  }
  }
  </code></pre>
  <p><strong>Doubt:</strong>
  I have a button, using which I am navigating to the <code>secondScreen</code> from <code>homePage</code>, and everytime I tap on the button the controller <code>MyController</code> is initialized again and so the <code>data is fetched</code> again. But I want to do something that will keep that controller that is initizlized the first time in memory permanently. How can I do that?</p>
  <p>I know that, we can do something like this,
  <code>Get.put(Controller(), permanent: true);</code>
  But, in my code, I haven't used Get.put method anywhere as when the class extending GetView is called the controller is initialized automatically.</p>