createInstance method

dynamic createInstance (
  1. String name,
  2. String library,
  3. 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