CustomSliverChildBuilderDelegate constructor

CustomSliverChildBuilderDelegate({
  1. required TreeDataTableProvider provider,
  2. required List<TreeRow> dataRows,
  3. int level = 0,
  4. List<int> parentIndexes = const [],
  5. int? childCount,
  6. bool selectRowsOnTap = false,
})

Implementation

factory CustomSliverChildBuilderDelegate({
  required TreeDataTableProvider provider,
  required List<TreeRow> dataRows,
  int level = 0,
  List<int> parentIndexes = const [],
  int? childCount,
  bool selectRowsOnTap = false,
}) {
  final visibleRows = TreeRowVisibility.visibleRows(provider, dataRows);
  return CustomSliverChildBuilderDelegate._(
    provider: provider,
    dataRows: dataRows,
    visibleRows: visibleRows,
    selectRowsOnTap: selectRowsOnTap,
  );
}