title: How to create a list of objects of certain class type in Dart?
body: <p>I have this code in Python 3.x:</p>
  
  <pre><code>_VectorOf = lambda ownerObj,classType,scope: [classType(ownerObj) for i in scope]
  </code></pre>
  
  <p>This code create a list of "classType" objects."classType" is any class passed by user.</p>
  
  <p>How would it be in Dart 2.7.x? I don't wish to use "dart:mirrors" if it is possible.</p>
  
  <p>Thanks in advance.</p>