copyWith method
Implementation
AnsiStyle copyWith({
Color? foreground,
Color? background,
bool? bold,
bool? italic,
bool? underline,
bool? strikethrough,
bool? dim,
bool? inverse,
}) {
return AnsiStyle(
foreground: foreground ?? this.foreground,
background: background ?? this.background,
bold: bold ?? this.bold,
italic: italic ?? this.italic,
underline: underline ?? this.underline,
strikethrough: strikethrough ?? this.strikethrough,
dim: dim ?? this.dim,
inverse: inverse ?? this.inverse,
);
}