[][src]Function dart_sys::Dart_New

pub unsafe extern "C" fn Dart_New(
    type_: Dart_Handle,
    constructor_name: Dart_Handle,
    number_of_arguments: c_int,
    arguments: *mut Dart_Handle
) -> Dart_Handle

Invokes a constructor, creating a new object.

This function allows hidden constructors (constructors with leading underscores) to be called.

\param type Type of object to be constructed. \param constructor_name The name of the constructor to invoke. Use Dart_Null() or Dart_EmptyString() to invoke the unnamed constructor. This name should not include the name of the class. \param number_of_arguments Size of the arguments array. \param arguments An array of arguments to the constructor.

\return If the constructor is called and completes successfully, then the new object. If an error occurs during execution, then an error handle is returned.