copyWith method

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