JSFValueQJSImpl class

Inheritance

Constructors

JSFValueQJSImpl.new(JSValue jsValue)
JSFValueQJSImpl.makeBoolean(JSFContext ctx, bool v)
JSFValueQJSImpl.makeError(JSFContext ctx, String errorStr)
JSFValueQJSImpl.makeFromJSONString(JSFContext ctx, String jsonStr)
JSFValueQJSImpl.makeNull(JSFContext ctx)
JSFValueQJSImpl.makeNumber(JSFContext ctx, int number)
JSFValueQJSImpl.makeString(JSFContext ctx, String str)
JSFValueQJSImpl.makeUndefined(JSFContext ctx)

Properties

hashCode int
The hash code for this object.
no setterinherited
jsValue JSValue
实际 js value 对象
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

callAsConstructor({List<JSFValue>? arguments}) → JSFValue
此 js 对象是构造函数,将它作为构造函数调用 arguments 是构造函数参数
override
callAsFunction({JSFValue? thiz, List<JSFValue>? arguments}) → JSFValue
此 js 对象是函数,将它作为函数调用 {param} thiz 指定函数 this arguments 函数参数
override
dup() → JSFValue
override
getProperty(String name) → JSFValue
根据 name 获取 js 对象的属性值
override
getPropertyAtIndex(int index) → JSFValue
根据 index 获取 js 对象的属性值
override
hasProperty(String name) bool
override
isArray() bool
在 dart 侧判断 js value 是否是 Array
override
isBoolean() bool
在 dart 侧判断 js value 是否是 bool
override
isDate() bool
在 dart 侧判断 js value 是否是 Date
override
isEqual(JSFValue other) bool
在 dart 侧判断两个 js value 是否严格相等
override
isError() bool
在 dart 侧判断 js value 是否是 Error
override
isFunction() bool
在 dart 侧判断 js value 是否是 Function
override
isInstanceOfConstructor() bool
isNull() bool
在 dart 侧判断 js value 是否是 null
override
isNumber() bool
在 dart 侧判断 js value 是否是 number
override
isObject() bool
在 dart 侧判断 js value 是否是 Object
override
isPromise() bool
在 dart 侧判断 js value 是否是 Promise
override
isRegExp() bool
在 dart 侧判断 js value 是否是 RegExp
override
isString() bool
在 dart 侧判断 js value 是否是 String
override
isSymbol() bool
在 dart 侧判断 js value 是否是 Symbol
override
isUndefined() bool
在 dart 侧判断 js value 是否是 undefined
override
jsonString() String?
override
keys(JSFContext ctx) → JSFValue
获取 js 对象的所有 key, 等同于 Object.keys(v)
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setProperty(String name, JSFValue? v) → void
为 js 对象设置属性
override
toArray() List<JSFValue>?
js value 转为 js array
inherited
toBoolean() bool
转为 dart bool 值
override
toDart() → dynamic
js value 转为 dart
override
toJs() → dynamic
当前只支持 number、boolean、null、string 类型
override
toNumber() num
转为 dart num 值
override
toString() String
A string representation of this object.
override
toStringCopy() String?
底层复制一份
override
values(JSFContext ctx) → JSFValue
获取 js 对象的所有 value, 等同于 Object.values(v)
override

Operators

operator ==(Object other) bool
The equality operator.
inherited