title: Flutter - how to make an array of objects
body: <p><strong>Edit:</strong></p>
  <pre><code>class Transactions {
    final String id;
  
    final double amount;
    final String date;
    
  
    const Transactions({
      @required this.id,
      @required this.amount,
      @required this.date,
     
    });}
  </code></pre>
  <p>I am trying to ad a transaction to the current month . When the user adds a transaction based on the current moth is I would like to add that transaction to the array,e</p>
  <p>so I want to make a list of list of <code>Transactions</code></p>
  <p>this is what i have tried :</p>
  <pre><code>  List&lt;List&gt; _userTransactions = [
              List&lt;Transactions&gt; jan= [];
              List&lt;Transactions&gt; feb= [];
              List&lt;Transactions&gt; mar= [];
              List&lt;Transactions&gt; apr= [];
              List&lt;Transactions&gt; may= [];
              .....
              ];
  </code></pre>