Function dart_sys::Dart_NewListOfTypeFilled
source · pub unsafe extern "C" fn Dart_NewListOfTypeFilled(
element_type: Dart_Handle,
fill_object: Dart_Handle,
length: isize
) -> Dart_Handle
Expand description
Returns a List of the desired length with the desired element type, filled with the provided object.
\param element_type Handle to a type object. E.g., from Dart_GetType.
\param fill_object Handle to an object of type ‘element_type’ that will be used to populate the list. This parameter can only be Dart_Null() if the length of the list is 0 or ‘element_type’ is a nullable type.
\param length The length of the list.
\return The List object if no error occurs. Otherwise returns an error handle.