copyWith method

Style copyWith({
  1. Color? fg,
  2. Color? bg,
  3. bool? bold,
  4. bool? italic,
  5. bool? underline,
  6. bool? dim,
  7. bool? reverse,
  8. bool? strikethrough,
})

Implementation

Style copyWith({
  Color? fg,
  Color? bg,
  bool? bold,
  bool? italic,
  bool? underline,
  bool? dim,
  bool? reverse,
  bool? strikethrough,
}) =>
    Style(
      fg: fg ?? this.fg,
      bg: bg ?? this.bg,
      bold: bold ?? this.bold,
      italic: italic ?? this.italic,
      underline: underline ?? this.underline,
      dim: dim ?? this.dim,
      reverse: reverse ?? this.reverse,
      strikethrough: strikethrough ?? this.strikethrough,
    );