JavaScriptEvaluator class

Constructors

JavaScriptEvaluator()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Properties

isSupported → bool
Returns true if JavaScript evaluation is supported on this platform.
no setter
platform → String
Returns the platform type being used.
no setter

Static Methods

evaluate(String code, Map<String, dynamic> context, {int timeoutMs = 5000}) → dynamic
Evaluates JavaScript code with the given context.
validateCode(String code) → void
Validates that JavaScript code is safe to execute.