copyWith method

TerminalColors copyWith({
  1. int? background,
  2. int? foreground,
  3. int? selection,
  4. List<int>? ansi,
  5. int? searchMatchBg,
  6. int? searchMatchFg,
  7. int? searchFocusedBg,
  8. int? searchFocusedFg,
  9. int? hintStartFg,
  10. int? hintStartBg,
  11. int? cursorText,
  12. int? cursorBody,
})

Implementation

TerminalColors copyWith({
  int? background,
  int? foreground,
  int? selection,
  List<int>? ansi,
  int? searchMatchBg,
  int? searchMatchFg,
  int? searchFocusedBg,
  int? searchFocusedFg,
  int? hintStartFg,
  int? hintStartBg,
  int? cursorText,
  int? cursorBody,
}) =>
    TerminalColors(
      background: background ?? this.background,
      foreground: foreground ?? this.foreground,
      selection: selection ?? this.selection,
      ansi: ansi ?? this.ansi,
      searchMatchBg: searchMatchBg ?? this.searchMatchBg,
      searchMatchFg: searchMatchFg ?? this.searchMatchFg,
      searchFocusedBg: searchFocusedBg ?? this.searchFocusedBg,
      searchFocusedFg: searchFocusedFg ?? this.searchFocusedFg,
      hintStartFg: hintStartFg ?? this.hintStartFg,
      hintStartBg: hintStartBg ?? this.hintStartBg,
      cursorText: cursorText ?? this.cursorText,
      cursorBody: cursorBody ?? this.cursorBody,
    );