JSStaticValueStruct constructor

JSStaticValueStruct({
  1. Pointer<Utf8>? name,
  2. Pointer<NativeFunction<JSObjectGetPropertyCallback>>? getProperty,
  3. Pointer<NativeFunction<JSObjectSetPropertyCallback>>? setProperty,
  4. 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;