JsScript class Null safety

Implementers

Constructors

JsScript({int maxArguments = MAX_ARGUMENTS, dynamic onUncaughtError(String)?, List<JsFileSystem> fileSystems = const []})
factory
JsScript.init({required List<JsFileSystem> fileSystems})

Properties

fileSystems List<JsFileSystem>
final
global JsValue
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addClass(ClassInfo clazz) → void
Define a bound class in the JS context.
bind(dynamic object, {ClassInfo? classInfo, JsValue? classFunc}) JsValue
Establish a binding relationship between dart and js object
compile(String script, [String filepath = "<inline>"]) JsCompiled
dispose() → void
Shutdown this JS context.
eval(String script, [String filepath = "<inline>"]) → dynamic
function(dynamic func(List argv)) JsValue
Send a dart callback to JS context.
loadCompiled(JsCompiled compiled) → void
newArray() JsValue
newBuffer(int length) JsBuffer
newObject() JsValue
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. [...]
toString() String
A string representation of this object. [...]
inherited

Operators

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