copyWith method
CellStyle
copyWith({
- ExcelColor? fontColorHexVal,
- ExcelColor? backgroundColorHexVal,
- FillPatternType? fillPatternVal,
- ExcelColor? fillBackgroundColorHexVal,
- GradientFill? gradientFillVal,
- String? fontFamilyVal,
- FontScheme? fontSchemeVal,
- HorizontalAlign? horizontalAlignVal,
- VerticalAlign? verticalAlignVal,
- TextWrapping? textWrappingVal,
- bool? boldVal,
- bool? italicVal,
- Underline? underlineVal,
- int? fontSizeVal,
- int? rotationVal,
- int? indentVal,
- Border? leftBorderVal,
- Border? rightBorderVal,
- Border? topBorderVal,
- Border? bottomBorderVal,
- Border? diagonalBorderVal,
- bool? diagonalBorderUpVal,
- bool? diagonalBorderDownVal,
- NumFormat? numberFormat,
Returns a copy of this style with the specified properties replaced.
Implementation
CellStyle copyWith({
ExcelColor? fontColorHexVal,
ExcelColor? backgroundColorHexVal,
FillPatternType? fillPatternVal,
ExcelColor? fillBackgroundColorHexVal,
GradientFill? gradientFillVal,
String? fontFamilyVal,
FontScheme? fontSchemeVal,
HorizontalAlign? horizontalAlignVal,
VerticalAlign? verticalAlignVal,
TextWrapping? textWrappingVal,
bool? boldVal,
bool? italicVal,
Underline? underlineVal,
int? fontSizeVal,
int? rotationVal,
int? indentVal,
Border? leftBorderVal,
Border? rightBorderVal,
Border? topBorderVal,
Border? bottomBorderVal,
Border? diagonalBorderVal,
bool? diagonalBorderUpVal,
bool? diagonalBorderDownVal,
NumFormat? numberFormat,
}) {
return CellStyle(
fontColorHex: fontColorHexVal ?? _fontColor,
backgroundColorHex: backgroundColorHexVal ?? _backgroundColor,
fillPattern: fillPatternVal ?? _fillPattern,
fillBackgroundColorHex: fillBackgroundColorHexVal ?? _fillBackgroundColor,
gradientFill: gradientFillVal ?? _gradientFill,
fontFamily: fontFamilyVal ?? _fontFamily,
fontScheme: fontSchemeVal ?? _fontScheme,
horizontalAlign: horizontalAlignVal ?? _horizontalAlign,
verticalAlign: verticalAlignVal ?? _verticalAlign,
textWrapping: textWrappingVal ?? _textWrapping,
bold: boldVal ?? _bold,
italic: italicVal ?? _italic,
underline: underlineVal ?? _underline,
fontSize: fontSizeVal ?? _fontSize,
rotation: rotationVal ?? _rotation,
indent: indentVal ?? _indent,
leftBorder: leftBorderVal ?? _leftBorder,
rightBorder: rightBorderVal ?? _rightBorder,
topBorder: topBorderVal ?? _topBorder,
bottomBorder: bottomBorderVal ?? _bottomBorder,
diagonalBorder: diagonalBorderVal ?? _diagonalBorder,
diagonalBorderUp: diagonalBorderUpVal ?? _diagonalBorderUp,
diagonalBorderDown: diagonalBorderDownVal ?? _diagonalBorderDown,
numberFormat: numberFormat ?? this.numberFormat,
);
}