copyWith method
RowModel<T>
copyWith({
- String? id,
- T? original,
- int? index,
- int? originalIndex,
- bool? isSelected,
- bool? isExpanded,
- bool? isPinnedTop,
- bool? isPinnedBottom,
- List<
RowModel< ? subRows,T> > - int? depth,
- RowModel<
T> ? parentRow, - bool? isGrouped,
- bool? isAggregated,
- String? groupingColumnId,
- dynamic groupingValue,
- 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,
);
}