createInstance method

dynamic createInstance (String name, String library, List args)
  • Creates an instance of an object type specified by its name
    • and library where it is defined.
      • name an object type name.
      • library a library (module) where object type is defined.
      • args arguments for the object constructor.
    • Returns the created object instance.
    • See getType
    • See createInstanceByType