copyWith method

PrintfStyle copyWith({
  1. Color? foreground,
  2. Color? background,
  3. bool? italic,
  4. bool? bold,
  5. bool? underline,
  6. bool? invert,
  7. bool? strike,
  8. bool? doubleUnderline,
  9. bool? framed,
})

Implementation

PrintfStyle copyWith({
  Color? foreground,
  Color? background,
  bool? italic,
  bool? bold,
  bool? underline,
  bool? invert,
  bool? strike,
  bool? doubleUnderline,
  bool? framed,
}) {
  return PrintfStyle(
    foreground: foreground ?? this.foreground,
    background: background ?? this.background,
    italic: italic ?? this.italic,
    bold: bold ?? this.bold,
    underline: underline ?? this.underline,
    invert: invert ?? this.invert,
    strike: strike ?? this.strike,
    doubleUnderline: doubleUnderline ?? this.doubleUnderline,
    framed: framed ?? this.framed,
  );
}