title: Does passing BuildContext inside a static method causes memory leak in Flutter?
body: <p>I am trying to display a dialog which will be reusable everywhere in my app. The dialog requires <code>BuildContext</code> so I created a class and added a static method to show the dialog and passed a <code>BuildContext</code> in the static method as parameters. Does this cause any memory leak?? As far as Native Android goes I know that passing activity context inside a static method causes method leak if the static method is returning an UI. </p>