copyWith method
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,
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?,
);
}