copyWith method

TableStyle copyWith({
  1. Color? borderColor,
  2. double? borderWidth,
  3. Radius? borderRadius,
  4. EdgeInsetsGeometry? cellPadding,
  5. Color? headerBackground,
  6. TextStyle? headerTextStyle,
  7. Color? rowStripeColor,
})

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