jSStringRetain top-level property

Pointer<NativeType> Function(Pointer<NativeType> string) jSStringRetain
final

Retains a JavaScript string. string (JSStringRef) The JSString to retain. @result (JSStringRef) A JSString that is the same as string.

Implementation

final Pointer Function(Pointer string) jSStringRetain = jscLib
    .lookup<NativeFunction<Pointer Function(Pointer)>>('JSStringRetain')
    .asFunction();