copyWith method

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

Returns a copy of this style with the given fields overridden.

Implementation

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