copyWith method
FdcGridStyle
copyWith({
- FdcGridLines? gridLines,
- Color? gridLineColor,
- double? pinnedSeparatorInset,
- FdcGridVerticalLines? verticalGridLines,
- Color? borderColor,
- Color? backgroundColor,
- Color? rowIndicatorBackgroundColor,
- TextStyle? cellTextStyle,
- Color? disabledCellBackgroundColor,
- Color? selectedCellBackgroundColor,
- 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,
);
}