[][src]Function dart_sys::Dart_InvokeConstructor

pub unsafe extern "C" fn Dart_InvokeConstructor(
    object: Dart_Handle,
    name: Dart_Handle,
    number_of_arguments: c_int,
    arguments: *mut Dart_Handle
) -> Dart_Handle

Invokes a Generative Constructor on an object that was previously allocated using Dart_Allocate/Dart_AllocateWithNativeFields.

The 'target' parameter must be an object.

This function ignores visibility (leading underscores in names).

May generate an unhandled exception error.

\param target An object. \param name The name of the constructor to invoke. Use Dart_Null() or Dart_EmptyString() to invoke the unnamed constructor. \param number_of_arguments Size of the arguments array. \param arguments An array of arguments to the function.

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