JSValue class

Annotations

Constructors

JSValue(JSContext context, JSValueRef ref)
const
JSValue.makeBoolean(JSContext context, {required bool boolean})
factory
JSValue.makeFromJSONString(JSContext context, {required String jsonString})
factory
JSValue.makeNull(JSContext context)
factory
JSValue.makeNumber(JSContext context, {required double number})
factory
JSValue.makeString(JSContext context, {required String string})
factory
JSValue.makeSymbol(JSContext context, {required String description})
factory
JSValue.makeUndefined(JSContext context)
factory

Properties

boolean bool
no setter
hashCode int
The hash code for this object.
no setteroverride
isArray bool
no setter
isBoolean bool
no setter
isDate bool
no setter
isError bool
no setter
isNull bool
no setter
isNumber bool
no setter
isObject bool
no setter
isPromise bool
no setter
isRegExp bool
no setter
isString bool
no setter
isSymbol bool
no setter
isUndefined bool
no setter
jsonString String?
no setter
number double
no setter
object JSObject
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
string String?
no setter
stringCopy JSString
no setter
type JSType
no setter
typedArrayType JSTypedArrayType
no setter

Methods

createJSONString({int indent = 2}) JSString
isEqual(JSValue other) bool
isInstanceOfConstructor(JSObject constructor) bool
isObjectOfClass(JSClass clazz) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
protect() → void
toString() String
A string representation of this object.
override
unprotect() → void

Operators

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