FdcFieldContext<T> class

Runtime field context passed to FdcCustomColumn.cellBuilder.

The context is intentionally field-bound: value and setValue operate on the column's own FdcCustomColumn.fieldName, while valueOf, tryValueOf, and setValueOf allow a custom widget to inspect or update other fields on the same row. Writes are routed through the grid/dataset edit pipeline, so validators, edit buffers, lifecycle events and field-change notifications keep the same behavior as built-in columns.

Constructors

FdcFieldContext({required FdcCustomColumn<T> column, required int rowIndex, required int columnIndex, required T? value, required bool fieldExists(String fieldName), required Object? fieldValueResolver(String fieldName), required bool fieldValueWriter(String fieldName, Object? value), required FdcFieldValueFormatter fieldValueFormatter})
Creates a FdcFieldContext.
const

Properties

column → FdcCustomColumn<T>
Custom column that owns this cell.
final
columnIndex → int
Visual column index in the current grid view.
final
hashCode → int
The hash code for this object.
no setterinherited
rowIndex → int
Visual row index in the current grid view.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → T?
Current field value for column.fieldName.
final

Methods

formatValue([T? value]) → String
Formats this column's current value using the grid formatter.
formatValueOf(String fieldName, [Object? value]) → String
Formats another field value from the same row using its dataset schema.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setValue(T? value) → bool
Writes this column's field value through the normal grid/dataset pipeline.
setValueOf<V>(String fieldName, V? value) → bool
Writes another field value on the same visual row through the normal grid/dataset pipeline.
toString() → String
A string representation of this object.
inherited
tryValueOf<V>(String fieldName) → V?
Reads another field value from the same visual row when it is assignable to V.
valueOf<V>(String fieldName) → V?
Reads another field value from the same visual row.

Operators

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