copyWith method

SummerDataTableThemeData copyWith({
  1. Color? headerBackgroundColor,
  2. TextStyle? headerTextStyle,
  3. Color? cellBackgroundColor,
  4. Object? altRowBackgroundColor = _sentinel,
  5. Object? hoverColor = _sentinel,
  6. Object? selectedColor = _sentinel,
  7. Color? sortActiveColor,
  8. TextStyle? cellTextStyle,
  9. double? rowHeight,
  10. double? headerHeight,
  11. Color? borderColor,
  12. double? borderWidth,
  13. Color? resizeHandleColor,
  14. double? resizeHandleWidth,
  15. Widget? sortAscendingIcon,
  16. Widget? sortDescendingIcon,
  17. Widget? expandIcon,
  18. Color? iconInactiveColor,
  19. Color? controlBorderColor,
  20. Object? sortInactiveIcon = _sentinel,
  21. Color? paginationActiveColor,
  22. double? paginationHeight,
  23. double? pageButtonSize,
  24. Object? fixedColumnShadow = _sentinel,
  25. Object? pinnedColumnBackgroundColor = _sentinel,
  26. String? filterResetLabel,
  27. String? filterConfirmLabel,
  28. Object? loadingWidget = _sentinel,
  29. Object? emptyWidget = _sentinel,
})

Creates a copy with optional overrides.

Implementation

SummerDataTableThemeData copyWith({
  Color? headerBackgroundColor,
  TextStyle? headerTextStyle,
  Color? cellBackgroundColor,
  Object? altRowBackgroundColor = _sentinel,
  Object? hoverColor = _sentinel,
  Object? selectedColor = _sentinel,
  Color? sortActiveColor,
  TextStyle? cellTextStyle,
  double? rowHeight,
  double? headerHeight,
  Color? borderColor,
  double? borderWidth,
  Color? resizeHandleColor,
  double? resizeHandleWidth,
  Widget? sortAscendingIcon,
  Widget? sortDescendingIcon,
  Widget? expandIcon,
  Color? iconInactiveColor,
  Color? controlBorderColor,
  Object? sortInactiveIcon = _sentinel,
  Color? paginationActiveColor,
  double? paginationHeight,
  double? pageButtonSize,
  Object? fixedColumnShadow = _sentinel,
  Object? pinnedColumnBackgroundColor = _sentinel,
  String? filterResetLabel,
  String? filterConfirmLabel,
  Object? loadingWidget = _sentinel,
  Object? emptyWidget = _sentinel,
}) {
  return SummerDataTableThemeData(
    headerBackgroundColor: headerBackgroundColor ?? this.headerBackgroundColor,
    headerTextStyle: headerTextStyle ?? this.headerTextStyle,
    cellBackgroundColor: cellBackgroundColor ?? this.cellBackgroundColor,
    altRowBackgroundColor: identical(altRowBackgroundColor, _sentinel)
        ? this.altRowBackgroundColor
        : altRowBackgroundColor as Color?,
    hoverColor: identical(hoverColor, _sentinel)
        ? this.hoverColor
        : hoverColor as Color?,
    selectedColor: identical(selectedColor, _sentinel)
        ? this.selectedColor
        : selectedColor as Color?,
    sortActiveColor: sortActiveColor ?? this.sortActiveColor,
    cellTextStyle: cellTextStyle ?? this.cellTextStyle,
    rowHeight: rowHeight ?? this.rowHeight,
    headerHeight: headerHeight ?? this.headerHeight,
    borderColor: borderColor ?? this.borderColor,
    borderWidth: borderWidth ?? this.borderWidth,
    resizeHandleColor: resizeHandleColor ?? this.resizeHandleColor,
    resizeHandleWidth: resizeHandleWidth ?? this.resizeHandleWidth,
    sortAscendingIcon: sortAscendingIcon ?? this.sortAscendingIcon,
    sortDescendingIcon: sortDescendingIcon ?? this.sortDescendingIcon,
    expandIcon: expandIcon ?? this.expandIcon,
    iconInactiveColor: iconInactiveColor ?? this.iconInactiveColor,
    controlBorderColor: controlBorderColor ?? this.controlBorderColor,
    sortInactiveIcon: identical(sortInactiveIcon, _sentinel)
        ? this.sortInactiveIcon
        : sortInactiveIcon as Widget?,
    paginationActiveColor: paginationActiveColor ?? this.paginationActiveColor,
    paginationHeight: paginationHeight ?? this.paginationHeight,
    pageButtonSize: pageButtonSize ?? this.pageButtonSize,
    fixedColumnShadow: identical(fixedColumnShadow, _sentinel)
        ? this.fixedColumnShadow
        : fixedColumnShadow as BoxShadow?,
    pinnedColumnBackgroundColor: identical(pinnedColumnBackgroundColor, _sentinel)
        ? this.pinnedColumnBackgroundColor
        : pinnedColumnBackgroundColor as Color?,
    filterResetLabel: filterResetLabel ?? this.filterResetLabel,
    filterConfirmLabel: filterConfirmLabel ?? this.filterConfirmLabel,
    loadingWidget: identical(loadingWidget, _sentinel)
        ? this.loadingWidget
        : loadingWidget as Widget?,
    emptyWidget: identical(emptyWidget, _sentinel)
        ? this.emptyWidget
        : emptyWidget as Widget?,
  );
}