FlutterJsExecutor class

Default implementation using flutter_js

Implemented types

Constructors

FlutterJsExecutor({int maxScriptSize = 10 * 1024 * 1024, int maxResultSize = 10 * 1024 * 1024, bool truncateLargeScripts = false})

Properties

hashCode int
The hash code for this object.
no setterinherited
maxResultSize int
Maximum result size in bytes (default: 10MB)
final
maxScriptSize int
Maximum script size in bytes (default: 1MB)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
truncateLargeScripts bool
Whether to truncate large scripts instead of rejecting them
final

Methods

dispose() → void
Dispose the JavaScript runtime
execute(String script) Future
Execute JavaScript code and return the result
override
extractVariables(String script, {List<String>? variableNames}) Future<Map<String, dynamic>?>
Extract variables from JavaScript code (async)
override
extractVariablesSync(String script, List<String>? variableNames) → dynamic
Extract variables from JavaScript code (synchronous)
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Reset the runtime to start fresh (call once per QueryString.execute())
override
toString() String
A string representation of this object.
inherited

Operators

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