copyWith method

FdcGridStyle copyWith({
  1. FdcGridLines? gridLines,
  2. Color? gridLineColor,
  3. double? pinnedSeparatorInset,
  4. FdcGridVerticalLines? verticalGridLines,
  5. Color? borderColor,
  6. Color? backgroundColor,
  7. Color? rowIndicatorBackgroundColor,
  8. TextStyle? cellTextStyle,
  9. Color? disabledCellBackgroundColor,
  10. Color? selectedCellBackgroundColor,
  11. Color? selectedRowColor,
})

Creates a copy with selected values replaced.

Implementation

FdcGridStyle copyWith({
  FdcGridLines? gridLines,
  Color? gridLineColor,
  double? pinnedSeparatorInset,
  FdcGridVerticalLines? verticalGridLines,
  Color? borderColor,
  Color? backgroundColor,
  Color? rowIndicatorBackgroundColor,
  TextStyle? cellTextStyle,
  Color? disabledCellBackgroundColor,
  Color? selectedCellBackgroundColor,
  Color? selectedRowColor,
}) {
  return FdcGridStyle(
    gridLines: gridLines ?? this.gridLines,
    gridLineColor: gridLineColor ?? this.gridLineColor,
    pinnedSeparatorInset: pinnedSeparatorInset ?? this.pinnedSeparatorInset,
    verticalGridLines: verticalGridLines ?? this.verticalGridLines,
    borderColor: borderColor ?? this.borderColor,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    rowIndicatorBackgroundColor:
        rowIndicatorBackgroundColor ?? this.rowIndicatorBackgroundColor,
    cellTextStyle: cellTextStyle ?? this.cellTextStyle,
    disabledCellBackgroundColor:
        disabledCellBackgroundColor ?? this.disabledCellBackgroundColor,
    selectedCellBackgroundColor:
        selectedCellBackgroundColor ?? this.selectedCellBackgroundColor,
    selectedRowColor: selectedRowColor ?? this.selectedRowColor,
  );
}