TreeRow constructor

TreeRow({
  1. int level = 0,
  2. int maxLevel = 0,
  3. required Object uniqueKey,
  4. List<int> pathIndexes = const [],
  5. required List<TreeRow> rows,
  6. required ValueNotifier<bool> isExpanded,
  7. double height = 51,
  8. required List<TreeColumn> columns,
  9. TreeRowNode? sourceNode,
  10. ValueNotifier<bool>? childrenLoaded,
  11. 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');