title: How do you create a list of objects to pass to a widget in Flutter?
body: <p>I'm new to Flutter and I am trying to find out how to create a list of objects like below and pass it to a widget so I can use it like _imageList[0].label, _imageList[0].path and etc...</p>
  <pre><code>List&lt;Object&gt; _imageList = List(); &lt;-
  
  _imageList.add({
      'label': 'Image1',
      'path': 'lib/assets/image/image1.png',
      'active': '0xFFFFFFFF',
      'inactive': '0x32FFFFFF'
    });
  
  _imageList.add({
      'label': 'Image2',
      'path': 'lib/assets/image/image2.png',
      'active': '0xFFFFFFFF',
      'inactive': '0x32FFFFFF'
    });
  </code></pre>
  <p>Any help is much appreciated. Thanks in advance</p>