copyWith method
A copy with the given fields replaced.
Implementation
TableStyle copyWith({
Color? borderColor,
double? borderWidth,
Radius? borderRadius,
EdgeInsetsGeometry? cellPadding,
Color? headerBackground,
TextStyle? headerTextStyle,
Color? rowStripeColor,
}) {
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,
);
}