title: Which is better method to expose an object , by using Provider package or , creating an object
body: <p>We can expose an object of a class by two methods like:</p>
  <p><code>ClassName obj=Classname();</code> or <code>obj=Provider.of&lt;ClassName&gt;(context);</code></p>
  <p>is there any difference between them , or is there anyone of them better method.</p>