0

i know there is a way to create objects in dart by the class names using dart:mirrors but i couldn't make it myself (I'm a beginner in dart), so please can anyone show me how to do it by an example ? the code i want to do is something like this process (if it's possible!):

var myClass = getClassbyClassname("className");
//myClass now is an object of the indicated className

and please how can i use the methods inside myClass dynamically? for example

myClass.doMethod("myMethod",argumentsHere);
//myClass will execute myMethod

thank you in advence!

Günter Zöchbauer
  • 558,509
  • 191
  • 1,911
  • 1,506
Saïd Tahali
  • 181
  • 9

0 Answers0