title: Flutter Provider for Cart page
body: <p>I need to make a cart page for an e-commerce app. where I am getting JSON data from API.
  I can fetch the data and show data. but when it's matter to cart I cannot add this data to my provider page.</p>
  <p>This is MY Provider Page For Album</p>
  <pre><code>import 'package:flutter/material.dart';
  import 'package:provider_test/albumModel.dart';
  import '../Service/service.dart';
  
  class MyStore extends ChangeNotifier {
    List&lt;Album&gt; _albums = [];
    List&lt;Album&gt; _busket = [];
    Album _activeAlbum = null;
  
    List&lt;Album&gt; get albums =&gt; _albums;
    List&lt;Album&gt; get buskets =&gt; _busket;
    Album get activeAlbum =&gt; _activeAlbum;
  }
  </code></pre>
  <p>And this is my Album Model Page:</p>
  <pre><code> import 'dart:convert';
  
  import 'package:flutter/cupertino.dart';
  
  List&lt;Album&gt; allalbumsFromJson(String str) {
    final jsonData = json.decode(str);
    return new List&lt;Album&gt;.from(jsonData.map((x) =&gt; Album.fromJson(x)));
  } //ef
  
  class AlbumList with ChangeNotifier {
    final List&lt;Album&gt; albums;
  
    AlbumList({
  this.albums,
    });
  
    factory AlbumList.fromJson(List&lt;dynamic&gt; parsedJson) {
  List&lt;Album&gt; albums = List&lt;Album&gt;();
  albums = parsedJson.map((i) =&gt; Album.fromJson(i)).toList();
  
  return AlbumList(albums: albums);
    }
    notifyListeners();
  } //ef
  
  class Album with ChangeNotifier {
    int userId;
    int id;
    String title;
  
    Album({this.userId, this.id, this.title});
  
    Album.fromJson(Map&lt;String, dynamic&gt; json) {
  userId = json['userId'];
  id = json['id'];
  title = json['title'];
    }
    notifyListeners();
  } //ef
  
  Album albumFromJson(String str) {
  final jsonData = json.decode(str);
  return Album.fromJson(jsonData);
      } //ef
  </code></pre>
  <p>Now I can fetch Data Using this Function:</p>
  <pre><code>import 'package:flutter/cupertino.dart';
  import 'package:provider_test/albumModel.dart';
  import 'package:http/http.dart' as HTTP;
  
  final url = ('https://jsonplaceholder.typicode.com/albums');
  
  Future&lt;List&lt;Album&gt;&gt; getAllAlbum() async {
    final response = await http.get(url);
    // print(response.body);
    return allalbumsFromJson(response.body);
  }
  
  Future&lt;Album&gt; getAlbum() async {
    final response = await http.get('$url/1');
   return albumFromJson(response.body);
  }
  </code></pre>
  <p>How Can I insert getAllAlbums() Data or you can say List Data into the _albums=[] which is situated in Mystore Page?</p>