copyWith method
GhosttyTerminalStyle
copyWith({ - bool? bold,
- bool? faint,
- bool? italic,
- GhosttySgrUnderline? underline,
- bool clearUnderline = false,
- GhosttyTerminalColor? underlineColor,
- bool clearUnderlineColor = false,
- bool? overline,
- bool? blink,
- bool? inverse,
- bool? invisible,
- bool? strikethrough,
- GhosttyTerminalColor? foreground,
- bool clearForeground = false,
- GhosttyTerminalColor? background,
- bool clearBackground = false,
- String? hyperlink,
- bool clearHyperlink = false,
})
Implementation
GhosttyTerminalStyle copyWith({
bool? bold,
bool? faint,
bool? italic,
GhosttySgrUnderline? underline,
bool clearUnderline = false,
GhosttyTerminalColor? underlineColor,
bool clearUnderlineColor = false,
bool? overline,
bool? blink,
bool? inverse,
bool? invisible,
bool? strikethrough,
GhosttyTerminalColor? foreground,
bool clearForeground = false,
GhosttyTerminalColor? background,
bool clearBackground = false,
String? hyperlink,
bool clearHyperlink = false,
}) {
return GhosttyTerminalStyle(
bold: bold ?? this.bold,
faint: faint ?? this.faint,
italic: italic ?? this.italic,
underline: clearUnderline ? null : (underline ?? this.underline),
underlineColor: clearUnderlineColor
? null
: (underlineColor ?? this.underlineColor),
overline: overline ?? this.overline,
blink: blink ?? this.blink,
inverse: inverse ?? this.inverse,
invisible: invisible ?? this.invisible,
strikethrough: strikethrough ?? this.strikethrough,
foreground: clearForeground ? null : (foreground ?? this.foreground),
background: clearBackground ? null : (background ?? this.background),
hyperlink: clearHyperlink ? null : (hyperlink ?? this.hyperlink),
);
}