copyWith method
CellStyle
copyWith({
- ExcelColor? fontColorHexVal,
- ExcelColor? backgroundColorHexVal,
- String? fontFamilyVal,
- FontScheme? fontSchemeVal,
- HorizontalAlign? horizontalAlignVal,
- VerticalAlign? verticalAlignVal,
- TextWrapping? textWrappingVal,
- bool? boldVal,
- bool? italicVal,
- Underline? underlineVal,
- int? fontSizeVal,
- int? rotationVal,
- Border? leftBorderVal,
- Border? rightBorderVal,
- Border? topBorderVal,
- Border? bottomBorderVal,
- Border? diagonalBorderVal,
- bool? diagonalBorderUpVal,
- bool? diagonalBorderDownVal,
- NumFormat? numberFormat,
Implementation
CellStyle copyWith({
ExcelColor? fontColorHexVal,
ExcelColor? backgroundColorHexVal,
String? fontFamilyVal,
FontScheme? fontSchemeVal,
HorizontalAlign? horizontalAlignVal,
VerticalAlign? verticalAlignVal,
TextWrapping? textWrappingVal,
bool? boldVal,
bool? italicVal,
Underline? underlineVal,
int? fontSizeVal,
int? rotationVal,
Border? leftBorderVal,
Border? rightBorderVal,
Border? topBorderVal,
Border? bottomBorderVal,
Border? diagonalBorderVal,
bool? diagonalBorderUpVal,
bool? diagonalBorderDownVal,
NumFormat? numberFormat,
}) {
return CellStyle(
fontColorHex: fontColorHexVal ?? this._fontColorHex.excelColor,
backgroundColorHex:
backgroundColorHexVal ?? this._backgroundColorHex.excelColor,
fontFamily: fontFamilyVal ?? this._fontFamily,
fontScheme: fontSchemeVal ?? this._fontScheme,
horizontalAlign: horizontalAlignVal ?? this._horizontalAlign,
verticalAlign: verticalAlignVal ?? this._verticalAlign,
textWrapping: textWrappingVal ?? this._textWrapping,
bold: boldVal ?? this._bold,
italic: italicVal ?? this._italic,
underline: underlineVal ?? this._underline,
fontSize: fontSizeVal ?? this._fontSize,
rotation: rotationVal ?? this._rotation,
leftBorder: leftBorderVal ?? this._leftBorder,
rightBorder: rightBorderVal ?? this._rightBorder,
topBorder: topBorderVal ?? this._topBorder,
bottomBorder: bottomBorderVal ?? this._bottomBorder,
diagonalBorder: diagonalBorderVal ?? this._diagonalBorder,
diagonalBorderUp: diagonalBorderUpVal ?? this._diagonalBorderUp,
diagonalBorderDown: diagonalBorderDownVal ?? this._diagonalBorderDown,
numberFormat: numberFormat ?? this.numberFormat,
);
}