JSClassDefinition constructor
JSClassDefinition({
- int version = 0,
- JSClassAttributes attributes = JSClassAttributes.kJSClassAttributeNone,
- required String className,
- JSClass? parentClass,
- List<
JSStaticValue> ? staticValues, - List<
JSStaticFunction> ? staticFunctions, - Pointer<
NativeFunction< ? initialize,JSObjectInitializeCallback> > - Pointer<
NativeFunction< ? finalize,JSObjectFinalizeCallback> > - Pointer<
NativeFunction< ? hasProperty,JSObjectHasPropertyCallback> > - Pointer<
NativeFunction< ? getProperty,JSObjectGetPropertyCallback> > - Pointer<
NativeFunction< ? setProperty,JSObjectSetPropertyCallback> > - Pointer<
NativeFunction< ? deleteProperty,JSObjectDeletePropertyCallback> > - Pointer<
NativeFunction< ? getPropertyNames,JSObjectGetPropertyNamesCallback> > - Pointer<
NativeFunction< ? callAsFunction,JSObjectCallAsFunctionCallback> > - Pointer<
NativeFunction< ? callAsConstructor,JSObjectCallAsConstructorCallback> > - Pointer<
NativeFunction< ? hasInstance,JSObjectHasInstanceCallback> > - Pointer<
NativeFunction< ? convertToType,JSObjectConvertToTypeCallback> >
Implementation
JSClassDefinition({
this.version = 0,
this.attributes = JSClassAttributes.kJSClassAttributeNone,
required this.className,
this.parentClass,
this.staticValues,
this.staticFunctions,
this.initialize,
this.finalize,
this.hasProperty,
this.getProperty,
this.setProperty,
this.deleteProperty,
this.getPropertyNames,
this.callAsFunction,
this.callAsConstructor,
this.hasInstance,
this.convertToType,
});