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
  • 623,577
  • 216
  • 2,003
  • 1,567
Saïd Tahali
  • 189
  • 10

0 Answers0