copyWith method

TerminalPaletteSnapshot copyWith({
  1. String? foregroundHex,
  2. String? backgroundHex,
  3. String? cursorHex,
  4. Map<int, String>? palette,
})

Implementation

TerminalPaletteSnapshot copyWith({
  String? foregroundHex,
  String? backgroundHex,
  String? cursorHex,
  Map<int, String>? palette,
}) {
  return TerminalPaletteSnapshot(
    foregroundHex: foregroundHex ?? this.foregroundHex,
    backgroundHex: backgroundHex ?? this.backgroundHex,
    cursorHex: cursorHex ?? this.cursorHex,
    palette: palette ?? this.palette,
  );
}