JSStaticFunction constructor

const JSStaticFunction(
  1. String name, {
  2. Pointer<NativeFunction<JSObjectCallAsFunctionCallback>>? callAsFunction,
  3. JSPropertyAttributes attributes = JSPropertyAttributes.kJSPropertyAttributeNone,
})

Implementation

const JSStaticFunction(
  this.name, {
  this.callAsFunction,
  this.attributes = JSPropertyAttributes.kJSPropertyAttributeNone,
});