copyWith method

TermareStyle copyWith({
  1. double fontSize = 12,
  2. Color? cursorColor,
  3. Color? backgroundColor,
  4. Color? defaultFontColor,
  5. Color? black,
  6. Color? lightBlack,
  7. Color? red,
  8. Color? lightRed,
  9. Color? green,
  10. Color? lightGreen,
  11. Color? yellow,
  12. Color? lightYellow,
  13. Color? blue,
  14. Color? lightBlue,
  15. Color? purplishRed,
  16. Color? lightPurplishRed,
  17. Color? cyan,
  18. Color? lightCyan,
  19. Color? white,
  20. Color? lightWhite,
})

Implementation

TermareStyle copyWith({
  double fontSize = 12,
  Color? cursorColor,
  Color? backgroundColor,
  Color? defaultFontColor,
  Color? black,
  Color? lightBlack,
  Color? red,
  Color? lightRed,
  Color? green,
  Color? lightGreen,
  Color? yellow,
  Color? lightYellow,
  Color? blue,
  Color? lightBlue,
  Color? purplishRed,
  Color? lightPurplishRed,
  Color? cyan,
  Color? lightCyan,
  Color? white,
  Color? lightWhite,
}) {
  return TermareStyle(
    fontSize: fontSize,
    cursorColor: cursorColor ?? this.cursorColor,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    defaultFontColor: defaultFontColor ?? this.defaultFontColor,
    black: black ?? this.black,
    lightBlack: lightBlack ?? this.lightBlack,
    red: red ?? this.red,
    lightRed: lightRed ?? this.lightRed,
    green: green ?? this.green,
    lightGreen: lightGreen ?? this.lightGreen,
    yellow: yellow ?? this.yellow,
    lightYellow: lightYellow ?? this.lightYellow,
    blue: blue ?? this.blue,
    lightBlue: lightBlue ?? this.lightBlue,
    purplishRed: purplishRed ?? this.purplishRed,
    lightPurplishRed: lightPurplishRed ?? this.lightPurplishRed,
    cyan: cyan ?? this.cyan,
    lightCyan: lightCyan ?? this.lightCyan,
    white: white ?? this.white,
    lightWhite: lightWhite ?? this.lightWhite,
  );
}