WebJsScript class

Inheritance

Constructors

WebJsScript.new({dynamic fileSystems = const []})

Properties

callFunction JsFunction
no setter
classes Map<ClassInfo, JsFunction>
getter/setter pair
classPrivateKey String
final
fileSystems List<JsFileSystem>
finalinherited
getPropertyNames JsFunction
no setter
global JsValue
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
privateKey String
final
resolve JsFunction
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addClass(ClassInfo classInfo) → void
Define a bound class in the JS context.
override
bind(dynamic object, {ClassInfo? classInfo, JsValue? classFunc}) JsValue
Establish a binding relationship between dart and js object
override
collectionWrap(JsValue value) JsValue
compile(String script, [String filepath = "<inline>"]) JsCompiled
override
dispose() → void
Shutdown this JS context.
override
eval(String script, [String filepath = "<inline>"]) → dynamic
override
function(dynamic func(List argv)) JsValue
Send a dart callback to JS context.
override
loadCompiled(JsCompiled compiled) → void
override
loadModule(String filepath, String filename) → dynamic
newArray() JsValue
override
newBuffer(int length) JsBuffer
override
newObject() JsValue
override
newPromise(JsObject handler) JsObject
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(String filepath) → dynamic
Run a JS script which would be find from fileSystems, and the script would be treat as a module.
override
runModule(String code, String filepath) → dynamic
toString() String
A string representation of this object.
inherited

Operators

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