NiceTreeGrid<T> constructor
const
NiceTreeGrid<T>({ - Key? key,
- required List<NiceTreeGridNode<T>> roots,
- required List<NiceTreeGridColumn<T>> columns,
- Set<String>? expandedKeys,
- void onExpandedChange(
- Set<String> keys
)?,
- bool defaultExpandAll = false,
- double indentStep = 24,
- double rowHeight = 44,
- bool sortable = true,
- bool selectable = false,
- Set<String>? selectedKeys,
- void onSelectionChange(
- Set<String> keys
)?,
- bool searchable = false,
- bool searchFilter(
- T item,
- String query
)?,
- void onRowTap(
- NiceTreeGridNode<T> node
)?,
- bool striped = false,
- bool compact = false,
- bool loading = false,
- String? emptyMessage,
})
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,
});