TrinaRow<T > class
Constructors
TrinaRow ({required Map <String , TrinaCell > cells , TrinaRowType ? type , int sortIdx = 0 , T? data , bool checked = false , Key ? key , TrinaRowFrozen ? frozen , double ? height , Map <String , dynamic > ? metadata })
TrinaRow.fromJson (Map <String , dynamic > json , {String ? childrenField })
Create TrinaRow in json type.
The key of the json you want to generate must match the key of TrinaColumn .
factory
Properties
cells
↔ Map <String , TrinaCell >
getter/setter pair
checked
→ bool ?
The state value that the checkbox is checked.
If the enableRowChecked value of the TrinaColumn property is set to true,
a check box appears in the cell of the corresponding column.
To manually change the values at runtime,
use the TrinaStateManager.setRowChecked
or TrinaStateManager.toggleAllRowChecked methods.
no setter
checkedViaSelect
→ bool
no setter
data
↔ T?
getter/setter pair
depth
→ int
Returns the depth if TrinaRow is a child of a group row.
no setter
frozen
→ TrinaRowFrozen
Indicates if the row should be frozen at the top or bottom of the grid
TrinaRowFrozen.none means the row is not frozen
TrinaRowFrozen.start means the row is frozen at the top
TrinaRowFrozen.end means the row is frozen at the bottom
final
hashCode
→ int
The hash code for this object.
no setter inherited
height
→ double ?
Custom height for this specific row
If null, uses the global rowHeight from configuration
final
initialized
→ bool
no setter
isMain
→ bool
Returns whether TrinaRow is the top position.
no setter
key
→ Key
no setter
metadata
↔ Map <String , dynamic > ?
Optional metadata to attach additional data to rows
getter/setter pair
parent
→ TrinaRow ?
If TrinaRow is included as a child of a group row,
parent is the parent's reference.
no setter
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
sortIdx
↔ int
Value to maintain the default sort order when sorting columns.
If there is no value, it is automatically set when loading the grid.
getter/setter pair
state
→ TrinaRowState
State when a new row is added or the cell value in the row is changed.
no setter
type
→ TrinaRowType
final
version
→ int
Get the current row version for cache invalidation.
no setter