FlutterQjs class

Quickjs engine for flutter.

Constructors

FlutterQjs({_JsModuleHandler? moduleHandler, int? stackSize, int? timeout, int? memoryLimit, _JsHostPromiseRejectionHandler? hostPromiseRejectionHandler})

Properties

hashCode int
The hash code for this object.
no setterinherited
hostPromiseRejectionHandler → _JsHostPromiseRejectionHandler?
Handler function to manage js module.
final
memoryLimit int?
Max memory for quickjs.
final
moduleHandler → _JsModuleHandler?
Handler function to manage js module.
final
port ReceivePort
Message Port for event loop. Close it to stop dispatching event loop.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackSize int?
Max stack size for quickjs.
final
timeout int?
Max stack size for quickjs.
final

Methods

close() → dynamic
Free Runtime and Context which can be recreate when evaluate again.
dispatch() Future<void>
Dispatch JavaScript Event loop.
evaluate(String command, {String? name, int? evalFlags}) → dynamic
Evaluate js script.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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