JSStaticValueStruct constructor
JSStaticValueStruct({
- Pointer<
Utf8> ? name, - Pointer<
NativeFunction< ? getProperty,JSObjectGetPropertyCallback> > - Pointer<
NativeFunction< ? setProperty,JSObjectSetPropertyCallback> > - int attributes = JSPropertyAttributes.kJSPropertyAttributeNone,
Implementation
JSStaticValueStruct({
Pointer<Utf8>? name,
Pointer<NativeFunction<JSObjectGetPropertyCallback>>? getProperty,
Pointer<NativeFunction<JSObjectSetPropertyCallback>>? setProperty,
int attributes = JSPropertyAttributes.kJSPropertyAttributeNone,
}) : this.name = name ?? nullptr,
this.getProperty = getProperty ?? nullptr,
this.setProperty = setProperty ?? nullptr,
this.attributes = attributes;