copyWith method

CellStyle copyWith({
  1. String? fontColorHexVal,
  2. String? backgroundColorHexVal,
  3. String? fontFamilyVal,
  4. HorizontalAlign? horizontalAlignVal,
  5. VerticalAlign? verticalAlignVal,
  6. TextWrapping? textWrappingVal,
  7. bool? boldVal,
  8. bool? italicVal,
  9. Underline? underlineVal,
  10. int? fontSizeVal,
  11. int? rotationVal,
})

Implementation

CellStyle copyWith({
  String? fontColorHexVal,
  String? backgroundColorHexVal,
  String? fontFamilyVal,
  HorizontalAlign? horizontalAlignVal,
  VerticalAlign? verticalAlignVal,
  TextWrapping? textWrappingVal,
  bool? boldVal,
  bool? italicVal,
  Underline? underlineVal,
  int? fontSizeVal,
  int? rotationVal,
}) {
  return CellStyle(
    fontColorHex: fontColorHexVal ?? this._fontColorHex,
    backgroundColorHex: backgroundColorHexVal ?? this._backgroundColorHex,
    fontFamily: fontFamilyVal ?? this._fontFamily,
    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,
  );
}