new_persistent_handle

Function new_persistent_handle 

Source
pub unsafe fn new_persistent_handle(
    object: Dart_Handle,
) -> Dart_PersistentHandle
Expand description

Allocates a Dart_PersistentHandle for provided Dart_Handle.

Dart_PersistentHandles have the lifetime of the current isolate unless they are explicitly deallocated.

ยงSafety

initialize_api must be called before this function.