copyWith method

StyleData copyWith({
  1. bool? bold,
  2. bool? italic,
  3. bool? underline,
  4. UnderlineStyle? underlineStyle,
  5. bool? strikethrough,
  6. bool? dim,
  7. bool? inverse,
  8. bool? blink,
  9. Color? foreground,
  10. Color? background,
  11. Color? borderForeground,
  12. Color? borderBackground,
  13. Color? borderTopForeground,
  14. Color? borderRightForeground,
  15. Color? borderBottomForeground,
  16. Color? borderLeftForeground,
  17. Color? borderTopBackground,
  18. Color? borderRightBackground,
  19. Color? borderBottomBackground,
  20. Color? borderLeftBackground,
  21. List<Color>? borderForegroundBlend,
  22. int? borderForegroundBlendOffset,
  23. int? width,
  24. int? height,
  25. int? maxWidth,
  26. int? maxHeight,
  27. Padding? padding,
  28. Margin? margin,
  29. HorizontalAlign? align,
  30. VerticalAlign? alignVertical,
  31. Border? border,
  32. BorderSides? borderSides,
  33. bool? inline,
  34. bool? wrapAnsi,
  35. String transform(
    1. String
    )?,
  36. String? paddingChar,
  37. String? marginChar,
  38. String? whitespaceChar,
  39. Color? whitespaceForeground,
  40. String? stringValue,
  41. int? tabWidth,
  42. bool? underlineSpaces,
  43. bool? strikethroughSpaces,
  44. bool? colorWhitespace,
  45. String? hyperlinkUrl,
  46. String? hyperlinkParams,
  47. Color? marginBackground,
  48. Color? underlineColor,
})

Implementation

StyleData copyWith({
  bool? bold,
  bool? italic,
  bool? underline,
  UnderlineStyle? underlineStyle,
  bool? strikethrough,
  bool? dim,
  bool? inverse,
  bool? blink,
  Color? foreground,
  Color? background,
  Color? borderForeground,
  Color? borderBackground,
  Color? borderTopForeground,
  Color? borderRightForeground,
  Color? borderBottomForeground,
  Color? borderLeftForeground,
  Color? borderTopBackground,
  Color? borderRightBackground,
  Color? borderBottomBackground,
  Color? borderLeftBackground,
  List<Color>? borderForegroundBlend,
  int? borderForegroundBlendOffset,
  int? width,
  int? height,
  int? maxWidth,
  int? maxHeight,
  Padding? padding,
  Margin? margin,
  HorizontalAlign? align,
  VerticalAlign? alignVertical,
  Border? border,
  BorderSides? borderSides,
  bool? inline,
  bool? wrapAnsi,
  String Function(String)? transform,
  String? paddingChar,
  String? marginChar,
  String? whitespaceChar,
  Color? whitespaceForeground,
  String? stringValue,
  int? tabWidth,
  bool? underlineSpaces,
  bool? strikethroughSpaces,
  bool? colorWhitespace,
  String? hyperlinkUrl,
  String? hyperlinkParams,
  Color? marginBackground,
  Color? underlineColor,
}) {
  return StyleData(
    bold: bold ?? this.bold,
    italic: italic ?? this.italic,
    underline: underline ?? this.underline,
    underlineStyle: underlineStyle ?? this.underlineStyle,
    strikethrough: strikethrough ?? this.strikethrough,
    dim: dim ?? this.dim,
    inverse: inverse ?? this.inverse,
    blink: blink ?? this.blink,
    foreground: foreground ?? this.foreground,
    background: background ?? this.background,
    borderForeground: borderForeground ?? this.borderForeground,
    borderBackground: borderBackground ?? this.borderBackground,
    borderTopForeground: borderTopForeground ?? this.borderTopForeground,
    borderRightForeground:
        borderRightForeground ?? this.borderRightForeground,
    borderBottomForeground:
        borderBottomForeground ?? this.borderBottomForeground,
    borderLeftForeground: borderLeftForeground ?? this.borderLeftForeground,
    borderTopBackground: borderTopBackground ?? this.borderTopBackground,
    borderRightBackground:
        borderRightBackground ?? this.borderRightBackground,
    borderBottomBackground:
        borderBottomBackground ?? this.borderBottomBackground,
    borderLeftBackground: borderLeftBackground ?? this.borderLeftBackground,
    borderForegroundBlend:
        borderForegroundBlend ?? this.borderForegroundBlend,
    borderForegroundBlendOffset:
        borderForegroundBlendOffset ?? this.borderForegroundBlendOffset,
    width: width ?? this.width,
    height: height ?? this.height,
    maxWidth: maxWidth ?? this.maxWidth,
    maxHeight: maxHeight ?? this.maxHeight,
    padding: padding ?? this.padding,
    margin: margin ?? this.margin,
    align: align ?? this.align,
    alignVertical: alignVertical ?? this.alignVertical,
    border: border ?? this.border,
    borderSides: borderSides ?? this.borderSides,
    inline: inline ?? this.inline,
    wrapAnsi: wrapAnsi ?? this.wrapAnsi,
    transform: transform ?? this.transform,
    paddingChar: paddingChar ?? this.paddingChar,
    marginChar: marginChar ?? this.marginChar,
    whitespaceChar: whitespaceChar ?? this.whitespaceChar,
    whitespaceForeground: whitespaceForeground ?? this.whitespaceForeground,
    stringValue: stringValue ?? this.stringValue,
    tabWidth: tabWidth ?? this.tabWidth,
    underlineSpaces: underlineSpaces ?? this.underlineSpaces,
    strikethroughSpaces: strikethroughSpaces ?? this.strikethroughSpaces,
    colorWhitespace: colorWhitespace ?? this.colorWhitespace,
    hyperlinkUrl: hyperlinkUrl ?? this.hyperlinkUrl,
    hyperlinkParams: hyperlinkParams ?? this.hyperlinkParams,
    marginBackground: marginBackground ?? this.marginBackground,
    underlineColor: underlineColor ?? this.underlineColor,
  );
}