TreeRow constructor
TreeRow({
- int level = 0,
- int maxLevel = 0,
- required Object uniqueKey,
- List<
int> pathIndexes = const [], - required List<
TreeRow> rows, - required ValueNotifier<
bool> isExpanded, - double height = 51,
- required List<
TreeColumn> columns, - TreeRowNode? sourceNode,
- ValueNotifier<
bool> ? childrenLoaded, - ValueNotifier<
bool> ? childrenLoading,
Creates a new instance of TreeRow
Implementation
TreeRow({
this.level = 0,
this.maxLevel = 0,
required this.uniqueKey,
this.pathIndexes = const [],
required this.rows,
required this.isExpanded,
this.height = 51,
required this.columns,
this.sourceNode,
ValueNotifier<bool>? childrenLoaded,
this.childrenLoading,
}) : childrenLoaded = childrenLoaded ?? ValueNotifier(true),
assert(columns.isNotEmpty, 'Columns must not be empty'),
assert(height > 0, 'height must be greater than zero');