WebJsScript class Null safety

Inheritance

Constructors

WebJsScript({dynamic fileSystems = const []})

Properties

callFunction JsFunction
read-only
classes Map<ClassInfo, JsFunction>
read / write
classPrivateKey String
final
fileSystems List<JsFileSystem>
final, inherited
getPropertyNames JsFunction
read-only
global JsValue
read-only, override
hashCode int
The hash code for this object. [...]
read-only, inherited
privateKey String
final
resolve JsFunction
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 non-existent 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