JSStaticFunctionStruct constructor
JSStaticFunctionStruct({
- Pointer<
Utf8> ? name, - Pointer<
NativeFunction< ? callAsFunction,JSObjectCallAsFunctionCallback> > - 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;