IOJsScript class
Constructors
- IOJsScript({int maxArguments = MAX_ARGUMENTS, void onUncaughtError(String)?, dynamic fileSystems = const []})
Properties
-
fileSystems
→ List<
JsFileSystem> -
finalinherited
- global → JsValue
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxArguments → int
-
final
- onUncaughtError ↔ void Function(String)?
-
getter/setter pair
- 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.
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
-
newArray(
) → JsValue -
override
-
newBuffer(
int length) → JsBuffer -
override
-
newObject(
) → JsValue -
override
-
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited