jSValueMakeBoolean top-level property

Pointer<NativeType> Function(Pointer<NativeType> ctx, int boolean) jSValueMakeBoolean
final

Creates a JavaScript value of the boolean type. ctx (JSContextRef) The execution context to use. boolean (bool) The bool to assign to the newly created JSValue. @result (JSValueRef) A JSValue of the boolean type, representing the value of boolean.

Implementation

final Pointer Function(Pointer ctx, int boolean) jSValueMakeBoolean = jscLib
    .lookup<NativeFunction<Pointer Function(Pointer, Int8)>>(
        'JSValueMakeBoolean')
    .asFunction();