title: Flutter getx controller get the current page context
body: <p>I would like to use context to show a custom dialog from cool alert in getxcontroller method.
  I have created the following controller</p>
  <pre><code>class HomePageController extends GetxController {
   
     @override
     void onInit() {
       super.onInit();
       getData();
     }
  
     void getData(){
      //perform http request here 
       //show cool alert 
  
       CoolAlert.show(
        context: context,  //here needs the build context
        type: CoolAlertType.success
        );
     }
  
  }
  </code></pre>
  <p>Am using this controller in my stateless widget like</p>
  <pre><code>class HomePage extends StatelessWidget {
     HomePage({ Key? key }) : super(key: key);
  
     final _c = Get.find&lt;HomePageController&gt;();
  
  
      @override
      Widget build(BuildContext context) {
          return Container(
    
            );
      }
   }
  </code></pre>
  <p>How can i get the current homepage BuildContext in the controller inorder to show the cool alert.</p>