JsScript class abstract
- 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
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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 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.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited