TrinaCell class

Constructors

TrinaCell.new({dynamic value, Key? key, TrinaCellRenderer? renderer, TrinaOnChangedEventCallback? onChanged})
Creates a cell with an optional initial value, key, renderer, and onChanged callback.

Properties

column TrinaColumn
no setter
hashCode int
The hash code for this object.
no setterinherited
hasRenderer bool
Returns true if this cell has a custom renderer.
no setter
initialized bool
no setter
isDirty bool
Returns true if the cell has uncommitted changes
no setter
key Key
no setter
oldValue → dynamic
Returns the old value before the change
no setter
onChanged TrinaOnChangedEventCallback?
Callback that is triggered when this specific cell's value is changed. This allows for cell-level control over value changes.
final
originalValue → dynamic
no setter
renderer TrinaCellRenderer?
Custom renderer for this specific cell. If provided, this will be used instead of the column renderer.
final
row TrinaRow
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ dynamic
getter/setter pair
valueForSorting → dynamic
no setter

Methods

commitChanges() → void
Commit changes by clearing the old value
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
revertChanges() → void
Revert changes by restoring the old value
setColumn(TrinaColumn column) → void
setRow(TrinaRow row) → void
toString() String
A string representation of this object.
inherited
trackChange() → void
Helper method to store the old value when change tracking is enabled

Operators

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