copyWith method

ShadTableTheme copyWith({
  1. DiagonalDragBehavior? diagonalDragBehavior,
  2. DragStartBehavior? dragStartBehavior,
  3. ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
  4. Span? columnBuilder(
    1. int
    )?,
  5. Span? rowBuilder(
    1. int
    )?,
  6. Alignment? cellAlignment,
  7. double? cellHeight,
  8. EdgeInsetsGeometry? cellPadding,
  9. TextStyle? cellHeaderStyle,
  10. TextStyle? cellStyle,
  11. TextStyle? cellFooterStyle,
})
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,
  );
}