FormioScriptContext class

Context provided to a script evaluator during execution.

Annotations

Constructors

FormioScriptContext({required Map<String, dynamic> data, required Map<String, dynamic> row, dynamic value, Map<String, dynamic> component = const {}, int? rowIndex, Map<String, dynamic> extra = const {}})
const

Properties

component → Map<String, dynamic>
Schema definition of the component.
final
data → Map<String, dynamic>
Root submission data map.
final
extra → Map<String, dynamic>
Additional environment parameters or variables.
final
hashCode → int
The hash code for this object.
no setterinherited
row → Map<String, dynamic>
Row-level data if inside a DataGrid/EditGrid, or same as data at root.
final
rowIndex → int?
Row index if inside a DataGrid or EditGrid, otherwise null.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → dynamic
Current component value before evaluation.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
Converts context to a map suitable for JS engines or sandboxed interpreters.
toString() → String
A string representation of this object.
inherited

Operators

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