copyWith method
TableStyle
copyWith({
- Color? borderColor,
- double? borderWidth,
- Radius? borderRadius,
- EdgeInsetsGeometry? cellPadding,
- Color? headerBackground,
- TextStyle? headerTextStyle,
- Color? rowStripeColor,
- TableColumnWidth? columnWidth,
A copy with the given fields replaced.
Implementation
TableStyle copyWith({
Color? borderColor,
double? borderWidth,
Radius? borderRadius,
EdgeInsetsGeometry? cellPadding,
Color? headerBackground,
TextStyle? headerTextStyle,
Color? rowStripeColor,
TableColumnWidth? columnWidth,
}) {
return TableStyle(
borderColor: borderColor ?? this.borderColor,
borderWidth: borderWidth ?? this.borderWidth,
borderRadius: borderRadius ?? this.borderRadius,
cellPadding: cellPadding ?? this.cellPadding,
headerBackground: headerBackground ?? this.headerBackground,
headerTextStyle: headerTextStyle ?? this.headerTextStyle,
rowStripeColor: rowStripeColor ?? this.rowStripeColor,
columnWidth: columnWidth ?? this.columnWidth,
);
}