copyWith method

RowModel<T> copyWith({
  1. String? id,
  2. T? original,
  3. int? index,
  4. int? originalIndex,
  5. bool? isSelected,
  6. bool? isExpanded,
  7. bool? isPinnedTop,
  8. bool? isPinnedBottom,
  9. List<RowModel<T>>? subRows,
  10. int? depth,
  11. RowModel<T>? parentRow,
  12. bool? isGrouped,
  13. bool? isAggregated,
  14. String? groupingColumnId,
  15. dynamic groupingValue,
  16. dynamic controller,
})

Implementation

RowModel<T> copyWith({
  String? id,
  T? original,
  int? index,
  int? originalIndex,
  bool? isSelected,
  bool? isExpanded,
  bool? isPinnedTop,
  bool? isPinnedBottom,
  List<RowModel<T>>? subRows,
  int? depth,
  RowModel<T>? parentRow,
  bool? isGrouped,
  bool? isAggregated,
  String? groupingColumnId,
  dynamic groupingValue,
  dynamic controller,
}) {
  return RowModel<T>(
    id: id ?? this.id,
    original: original ?? this.original,
    index: index ?? this.index,
    originalIndex: originalIndex ?? this.originalIndex,
    isSelected: isSelected ?? this.isSelected,
    isExpanded: isExpanded ?? this.isExpanded,
    isPinnedTop: isPinnedTop ?? this.isPinnedTop,
    isPinnedBottom: isPinnedBottom ?? this.isPinnedBottom,
    subRows: subRows ?? this.subRows,
    depth: depth ?? this.depth,
    parentRow: parentRow ?? this.parentRow,
    isGrouped: isGrouped ?? this.isGrouped,
    isAggregated: isAggregated ?? this.isAggregated,
    groupingColumnId: groupingColumnId ?? this.groupingColumnId,
    groupingValue: groupingValue ?? this.groupingValue,
    controller: controller ?? _controller,
  );
}