title: Flutter Getx RxList Product List, Name-Price
body: <p>i wanna create a Basket with Getx , i defined a values as Name and Price, i wanna add  Basic a Product in to Shop Basket. How can i add a String as name or double as Price from Product into PriceModel2 -RxList ?</p>
  <p>Product Model-</p>
  <pre><code>class PriceModel2 {
    String name;
    double price;
  
    PriceModel2(String name, double price) {
      this.name = name;
      this.price = price;
    }
  }
  </code></pre>
  <p>Add Function</p>
  <pre><code>RxList&lt;PriceModel2&gt; basket = [].obs;
  
    urunEkle(String isim) {
      basket.add(isim);
      basket.add(isim&lt;basket&gt;[name]);
    }
  </code></pre>
  <p>UI</p>
  <pre><code> ElevatedButton(
                onPressed: () {
                  controller.urunEkle(
                      material[&quot;name&quot;] );
  </code></pre>
  <p>Thanks for all Help.</p>