JSObject class
Constructors
-
JSObject(QuickJsContext context, Pointer<
QjsResult> _handle)
Properties
- context → QuickJsContext
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
callFunction(
List args) → dynamic - eval返回一个function的情况下,可以使用它来执行
-
defineProperty(
String name, Function callback) → void - 在 JS 对象上定义一个方法,该方法执行时会回调 Dart 函数
-
dispose(
) → void -
getProperty(
String name) → dynamic -
invoke(
String name, List args) → dynamic -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setProperty(
String name, dynamic value) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
Static Methods
-
clearContextState(
int contextAddress) → void - 清除特定 Context 的所有状态 (回调和异步解析器)