title: valuelistenablebuilder for ValueNotifier<Map<dynamic, dynamic>>
body: <p>I came to know that we cannot <strong>refresh the state</strong> of the class using <strong>valuestatebuilder</strong>. This is very unfortunate for me. Because after weeks of hardwork  i am finally on the verge to complete my first flutter app/</p>
  <p>The problem: I want to update the state of the mainclass. Map is stored in another. I have tried both: <strong>setstate and valuenotifier</strong> but all in vain. Can someone please tell me how to overcome this problem and how to use listenablebuilder to update the main class? thanks.</p>
  <p>Example Code:</p>
  <pre><code>// class where the map&lt;&gt; is located.
  // totalBill is the variable i want to use the value of in the next class
      var totalBill = ValueNotifier({});
      Map billl = {};
      int temp = 0;
      
      class ReusableCard extends StatefulWidget {
        ReusableCard({
          required this.itemName .....
  ...
  ...
  // down in the class:
  return GestureDetector(
        onTap: () {
  
          setState(() {
            totalBill.value[widget.itemName] = temp;
          });
        },
  </code></pre>
  <p>then in the next class:</p>
  <pre><code>ValueListenableBuilder&lt;Map&gt;(
  // totalBill is being borrowed from the above example / class 
                      valueListenable: totalBill,
                      builder: (context, val, _) {
                        //print(val);
                        //print(itemsInList);
  
                        return Column(
                          children: [
                            Text(val.toString()),
  .... 
  ...
  </code></pre>
  <p>I will appreciate any help.</p>