title: How to access the static list from one dart file to another in flutter?
body: <h2>Situation</h2>
  <p>static list in <code>firstScreen.dart</code> as below</p>
  <pre><code>static List&lt;Shoe&gt; shoeBank = [
      Shoe(b: &quot;Red Shoe&quot;, i: &quot;assets/nikeShoeProduct1.jpg&quot;, q: 0),
      Shoe(b: &quot;White Shoe&quot;, i: &quot;assets/nikeShoeProduct2.jpg&quot;, q: 0)
    ]; 
  </code></pre>
  <p>this is the shoe class in <code>shoe.dart</code> file</p>
  <pre><code>class Shoe {
    String brand;
    int quantity;
    String image;
    Shoe({String b, int q, String i}) {
      brand = b;
      quantity = q;
      image = i;
    }
  }
  </code></pre>
  <p>Now I want to use the <code>shoeBank</code> list in <code>secondScreen.dart</code> file.
  <em>How to do this?</em></p>
  <h2>And also</h2>
  <p>I want to use the values of shoeBank while passing a parameter to the component <code>CheckOutItems</code> below in the <code>secondScreen.dart</code></p>
  <pre><code>CheckoutItems(
  addedToCartNumber:use of shoeBank Over here ,
  checkOutScreenProductImage:use of shoeBank Over here,
  shoesName:use of shoeBank Over here; 
  </code></pre>
  <p><em>How to do this?</em></p>