title: How to listen to changes if you are using dart only package(riverpod) or how to use Provider where there is no context?
body: <p>I am learning flutter and it would be easy to understand if i get an example of listening to changes in dart only package aka riverpod.
  I was using Provider in class where there is no stateless or stateful widget(basically no Buildcontext).</p>
  <p>So i was passing context from other class to this class like this although it works but i feel its not right way.</p>
  <pre><code>class SaveToLocal {
    final BuildContext context;
    SaveToLocal(this.context);
  
   foo(){
    //used context here
    var model = Provider.of&lt;MyList&gt;(context, listen: false);
    }
  }
  </code></pre>
  <p>then i came across riverpod where dart only package doesn't require context but i was confused as i was not able to find things like ProviderScope.I searched also examples but most of them are on flutter_riverpod not on riverpod.<br />
  <a href="https://pub.dev/packages/riverpod/example" rel="nofollow noreferrer">This example on pub.dev</a> is using FutureProvider what if i wanna just fetch from model</p>
  <p>By model i mean</p>
  <pre><code>class MyList extends ChangeNotifier {
    List&lt;String&gt; _myList = [];
    List&lt;String&gt; get myList =&gt; _myList;
    
    foo(){
      //some task here
      notifyListeners();
    }
  </code></pre>
  <p>So here are questions<br />
  1.Is this appropriate way of using context<br />
  2.Is there any other way that i can achieve this<br />
  3.Can i get a simple example like CounterApp where read and watch is shown?</p>