copyWith method

DaviThemeData copyWith({
  1. bool? columnDividerFillHeight,
  2. double? columnDividerThickness,
  3. Color? columnDividerColor,
  4. BoxDecoration? decoration,
  5. CellThemeData? cell,
  6. HeaderThemeData? header,
  7. HeaderCellThemeData? headerCell,
  8. RowThemeData? row,
  9. TableScrollbarThemeData? scrollbar,
  10. Color? topCornerBorderColor,
  11. Color? topCornerColor,
  12. Color? bottomCornerBorderColor,
  13. Color? bottomCornerColor,
})

Creates a copy of this theme but with the given fields replaced with the new values.

Implementation

DaviThemeData copyWith(
    {bool? columnDividerFillHeight,
    double? columnDividerThickness,
    Color? columnDividerColor,
    BoxDecoration? decoration,
    CellThemeData? cell,
    HeaderThemeData? header,
    HeaderCellThemeData? headerCell,
    RowThemeData? row,
    TableScrollbarThemeData? scrollbar,
    Color? topCornerBorderColor,
    Color? topCornerColor,
    Color? bottomCornerBorderColor,
    Color? bottomCornerColor}) {
  return DaviThemeData(
      columnDividerFillHeight:
          columnDividerFillHeight ?? this.columnDividerFillHeight,
      columnDividerThickness:
          columnDividerThickness ?? this.columnDividerThickness,
      columnDividerColor: columnDividerColor ?? this.columnDividerColor,
      decoration: decoration ?? this.decoration,
      cell: cell ?? this.cell,
      header: header ?? this.header,
      headerCell: headerCell ?? this.headerCell,
      row: row ?? this.row,
      scrollbar: scrollbar ?? this.scrollbar,
      topCornerBorderColor: topCornerBorderColor ?? this.topCornerBorderColor,
      topCornerColor: topCornerColor ?? this.topCornerColor,
      bottomCornerBorderColor:
          bottomCornerBorderColor ?? this.bottomCornerBorderColor,
      bottomCornerColor: bottomCornerColor ?? this.bottomCornerColor);
}