copyWith method

CellStyle copyWith({
  1. ExcelColor? fontColorHexVal,
  2. ExcelColor? backgroundColorHexVal,
  3. String? fontFamilyVal,
  4. FontScheme? fontSchemeVal,
  5. HorizontalAlign? horizontalAlignVal,
  6. VerticalAlign? verticalAlignVal,
  7. TextWrapping? textWrappingVal,
  8. bool? boldVal,
  9. bool? italicVal,
  10. Underline? underlineVal,
  11. int? fontSizeVal,
  12. int? rotationVal,
  13. Border? leftBorderVal,
  14. Border? rightBorderVal,
  15. Border? topBorderVal,
  16. Border? bottomBorderVal,
  17. Border? diagonalBorderVal,
  18. bool? diagonalBorderUpVal,
  19. bool? diagonalBorderDownVal,
  20. 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,
  );
}