TrinaRow<T> class

Constructors

TrinaRow.new({required Map<String, TrinaCell> cells, TrinaRowType? type, int sortIdx = 0, T? data, bool checked = false, Key? key, TrinaRowFrozen? frozen})
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 setterinherited
initialized bool
no setter
isMain bool
Returns whether TrinaRow is the top position.
no setter
key Key
no setter
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 setterinherited
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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setChecked(bool? flag, {bool viaSelect = false}) → void
setData(T data) → void
setParent(TrinaRow? row) → void
setState(TrinaRowState state) → void
toJson({bool includeChildren = true, String childrenField = 'children'}) Map<String, dynamic>
Convert the row to json type.
toString() String
A string representation of this object.
inherited

Operators

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