NoOpJsEvaluator class

A no-op JavaScript evaluator that always returns null.

Used as a fallback when no JavaScript engine is available. Useful for testing or when JavaScript features are not needed.

Implemented types

Constructors

NoOpJsEvaluator()
const

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

dispose() → void
Disposes resources used by this evaluator.
override
evaluate(String code, Map<String, dynamic> context) → dynamic
Evaluates JavaScript code with the given context.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validateCode(String code) → void
Validates that the JavaScript code is safe to execute.
override

Operators

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