FdcFieldFocusContext<T> class

Context supplied when a dataset-bound field gains or loses focus.

The same context model is shared by standalone editors and grid cell editors. Grid-specific row and column coordinates are populated only when host is FdcFieldEventHost.grid.

Constructors

FdcFieldFocusContext({BuildContext? buildContext, required FdcDataSet dataSet, required FdcFieldEventHost host, required String? fieldName, FdcFieldDef? field, int? rowIndex, int? columnIndex, Object? row, Object? column, T? value, Object? rawValue, int? fromRowIndex, int? toRowIndex, int? fromColumnIndex, int? toColumnIndex, String? fromFieldName, String? toFieldName, FdcFieldFocusChangeReason reason = FdcFieldFocusChangeReason.programmatic, Object? valueOf(String fieldName)?})
Creates a FdcFieldFocusContext.
const

Properties

buildContext BuildContext?
Flutter context of the editor or grid surface that emitted the event.
final
column Object?
Host-specific column object when the event originated from a grid.
final
columnIndex int?
Zero-based column index in the current grid layout.
final
dataSet FdcDataSet
Dataset that owns the field and current edit state.
final
field FdcFieldDef?
Resolved field metadata when available.
final
fieldName String?
Name of the dataset field involved in the event.
final
fromColumnIndex int?
Previous grid column index when focus moved between cells.
final
fromFieldName String?
Dataset field name that previously owned focus.
final
fromRowIndex int?
Previous grid row index when focus moved between cells.
final
hashCode int
The hash code for this object.
no setterinherited
host FdcFieldEventHost
UI surface that emitted the event.
final
rawValue Object?
Unformatted source value before display conversion.
final
reason FdcFieldFocusChangeReason
Reason focus entered or left the field host.
final
row Object?
Host-specific row object when the event originated from a grid.
final
rowIndex int?
Zero-based row index in the current view.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toColumnIndex int?
Destination grid column index when focus moved between cells.
final
toFieldName String?
Dataset field name receiving focus.
final
toRowIndex int?
Destination grid row index when focus moved between cells.
final
value → T?
Accepted logical field value after the change.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
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.
valueOf<V>(String fieldName) → V?
Returns the value of fieldName, or throws when the field is unknown.

Operators

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