JSClass class
- Implemented types
- Mixed-in types
-
- AutoDisposeFinalizer
Constructors
-
JSClass.new(JSContext ctx, {required JSClassDef classDef, List<
JSCFunctionListEntry> ? funcs, JSValue? constructor, bool autoDispose = true}) -
JSClass.subclass(JSContext ctx, {required JSClassDef classDef, required List<
JSCFunctionListEntry> ? funcs, required JSValue parentProto, required JSValue constructor, bool autoDispose = true})
Properties
- classDef ↔ JSClassDef
-
getter/setter pair
- classID ↔ int?
-
getter/setter pair
- ctx ↔ JSContext
-
getter/setter pair
-
funcs
↔ List<
JSCFunctionListEntry> ? -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- nativeFinalizer ↔ NativeFinalizer?
-
dart 对象回收器
getter/setter pairinherited
- proto ↔ JSValue?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
attach(
Pointer< NativeFinalizerFunction> callback, Pointer<Void> token, {bool autoDispose = true, Object? detach, int? externalSize}) → dynamic -
将引擎持有的指针和 dart 对象回收器绑定。确保 dart 对象销毁的时候,释放引擎持有的指针和资源
inherited
-
detach(
) → dynamic -
将引擎持有的指针和资源释放
inherited
-
free(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
createClassConstructor(
JSContext ctx, JSValue fun, JSValue ns, String name) → void -
newClassID(
Pointer< JSClassID> pclassId) → int