FdcColumnValueChangingContext<T> class

Grid-column context supplied before an edited value is written to the dataset.

Inheritance

Constructors

FdcColumnValueChangingContext({required Object? column, required FdcGridRowContext row, required int rowIndex, required int? columnIndex, required String fieldName, required T? oldValue, required T? newValue, required FdcDataSet dataSet})
Creates a column-aware value-changing context.

Properties

additionalValueSnapshot Map<String, Object?>
Immutable snapshot of related field updates staged with setValueOf.
no setterinherited
buildContext BuildContext?
Flutter context of the editor or grid surface that emitted the event.
finalinherited
column Object?
Host-specific column object when the event originated from a grid.
finalinherited
columnIndex int?
Zero-based column index in the current grid layout.
finalinherited
dataSet FdcDataSet
Dataset that owns the field and current edit state.
finalinherited
field FdcFieldDef?
Resolved field metadata when available.
finalinherited
fieldName String
Name of the dataset field involved in the event.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
host FdcFieldEventHost
UI surface that emitted the event.
finalinherited
newRawValue Object?
New unformatted source value.
finalinherited
newValue → T?
Proposed logical value before the change decision is applied.
finalinherited
oldRawValue Object?
Previous unformatted source value.
finalinherited
oldValue → T?
Logical field value before the proposed or completed change.
finalinherited
row Object?
Host-specific row object when the event originated from a grid.
finalinherited
rowIndex int
Zero-based row index in the current view.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

accept() FdcFieldValueChangeResult<T>
Accepts the proposed value without replacement.
inherited
cancel([String? message]) FdcFieldValueChangeResult<T>
Cancels the current operation or edit state.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replaceValue(T? value) FdcFieldValueChangeResult<T>
Accepts the change and commits value instead of the proposed value.
inherited
setValueOf<V>(String fieldName, V? value) → void
Adds or replaces the pending value for fieldName.
inherited
toString() String
A string representation of this object.
inherited
tryValueOf<V>(String fieldName) → V?
Returns the value of fieldName, or null when the field is unavailable.
inherited
valueOf<V>(String fieldName) → V?
Returns the typed value of fieldName, throwing if the field is unknown.
inherited

Operators

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