copyWith method
ShadTableTheme
copyWith({
- DiagonalDragBehavior? diagonalDragBehavior,
- DragStartBehavior? dragStartBehavior,
- ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
- Span? columnBuilder()?,
- Span? rowBuilder()?,
- Alignment? cellAlignment,
- double? cellHeight,
- EdgeInsetsGeometry? cellPadding,
- TextStyle? cellHeaderStyle,
- TextStyle? cellStyle,
inherited
Implementation
ShadTableTheme copyWith({
DiagonalDragBehavior? diagonalDragBehavior,
DragStartBehavior? dragStartBehavior,
ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
Span? Function(int)? columnBuilder,
Span? Function(int)? rowBuilder,
Alignment? cellAlignment,
double? cellHeight,
EdgeInsetsGeometry? cellPadding,
TextStyle? cellHeaderStyle,
TextStyle? cellStyle,
TextStyle? cellFooterStyle,
}) {
final _this = (this as ShadTableTheme);
return ShadTableTheme(
diagonalDragBehavior: diagonalDragBehavior ?? _this.diagonalDragBehavior,
dragStartBehavior: dragStartBehavior ?? _this.dragStartBehavior,
keyboardDismissBehavior:
keyboardDismissBehavior ?? _this.keyboardDismissBehavior,
columnBuilder: columnBuilder ?? _this.columnBuilder,
rowBuilder: rowBuilder ?? _this.rowBuilder,
cellAlignment: cellAlignment ?? _this.cellAlignment,
cellHeight: cellHeight ?? _this.cellHeight,
cellPadding: cellPadding ?? _this.cellPadding,
cellHeaderStyle: cellHeaderStyle ?? _this.cellHeaderStyle,
cellStyle: cellStyle ?? _this.cellStyle,
cellFooterStyle: cellFooterStyle ?? _this.cellFooterStyle,
);
}