createInstanceByType method

dynamic createInstanceByType (Type type, List args)
  • Creates an instance of an object type.
      • type an object type (factory function) to create.
      • args arguments for the object constructor.
    • Returns the created object instance.