NiceTreeGrid<T> constructor

const NiceTreeGrid<T>({
  1. Key? key,
  2. required List<NiceTreeGridNode<T>> roots,
  3. required List<NiceTreeGridColumn<T>> columns,
  4. Set<String>? expandedKeys,
  5. void onExpandedChange(
    1. Set<String> keys
    )?,
  6. bool defaultExpandAll = false,
  7. double indentStep = 24,
  8. double rowHeight = 44,
  9. bool sortable = true,
  10. bool selectable = false,
  11. Set<String>? selectedKeys,
  12. void onSelectionChange(
    1. Set<String> keys
    )?,
  13. bool searchable = false,
  14. bool searchFilter(
    1. T item,
    2. String query
    )?,
  15. void onRowTap(
    1. NiceTreeGridNode<T> node
    )?,
  16. bool striped = false,
  17. bool compact = false,
  18. bool loading = false,
  19. String? emptyMessage,
  20. bool showHeader = true,
})

Implementation

const NiceTreeGrid({
  super.key,
  required this.roots,
  required this.columns,
  this.expandedKeys,
  this.onExpandedChange,
  this.defaultExpandAll = false,
  this.indentStep = 24,
  this.rowHeight = 44,
  this.sortable = true,
  this.selectable = false,
  this.selectedKeys,
  this.onSelectionChange,
  this.searchable = false,
  this.searchFilter,
  this.onRowTap,
  this.striped = false,
  this.compact = false,
  this.loading = false,
  this.emptyMessage,
  this.showHeader = true,
});