JSStaticFunctionStruct constructor

JSStaticFunctionStruct({
  1. Pointer<Utf8>? name,
  2. Pointer<NativeFunction<JSObjectCallAsFunctionCallback>>? callAsFunction,
  3. int attributes = JSPropertyAttributes.kJSPropertyAttributeNone,
})

Implementation

JSStaticFunctionStruct({
  Pointer<Utf8>? name,
  Pointer<NativeFunction<JSObjectCallAsFunctionCallback>>? callAsFunction,
  int attributes = JSPropertyAttributes.kJSPropertyAttributeNone,
})  : this.name = name ?? nullptr,
      this.callAsFunction = callAsFunction ?? nullptr,
      this.attributes = attributes;