create method
Implementation
Pointer<JSObjectRef.JSStaticFunction> create() {
return JSObjectRef.JSStaticFunctionPointer.allocate(
JSObjectRef.JSStaticFunctionStruct(
name: name.toNativeUtf8(),
callAsFunction: callAsFunction ?? nullptr,
attributes: jSPropertyAttributesToCEnum(attributes),
));
}