TrinaCell class

Constructors

TrinaCell({dynamic value, Key? key, TrinaCellRenderer? renderer, TrinaOnChangedEventCallback? onChanged, TrinaOnKeyPressedEventCallback? onKeyPressed, EdgeInsets? padding})
Creates a cell with an optional initial value, key, renderer, onChanged callback, and onKeyPressed 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
onKeyPressed TrinaOnKeyPressedEventCallback?
Callback that is triggered when a key is pressed in this specific cell. This allows for capturing keyboard events like Enter, Tab, Escape, etc.
final
originalValue → dynamic
no setter
padding EdgeInsets?
Custom padding for this specific cell. If provided, this will override the column padding and default padding.
final
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 accepting the new value and stopping tracking.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
revertChanges() → void
Revert changes by restoring the old value and stopping tracking.
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