copyWith method
StyleData
copyWith({
- bool? bold,
- bool? italic,
- bool? underline,
- UnderlineStyle? underlineStyle,
- bool? strikethrough,
- bool? dim,
- bool? inverse,
- bool? blink,
- Color? foreground,
- Color? background,
- Color? borderForeground,
- Color? borderBackground,
- Color? borderTopForeground,
- Color? borderRightForeground,
- Color? borderBottomForeground,
- Color? borderLeftForeground,
- Color? borderTopBackground,
- Color? borderRightBackground,
- Color? borderBottomBackground,
- Color? borderLeftBackground,
- List<
Color> ? borderForegroundBlend, - int? borderForegroundBlendOffset,
- int? width,
- int? height,
- int? maxWidth,
- int? maxHeight,
- Padding? padding,
- Margin? margin,
- HorizontalAlign? align,
- VerticalAlign? alignVertical,
- Border? border,
- BorderSides? borderSides,
- bool? inline,
- bool? wrapAnsi,
- String transform()?,
- String? paddingChar,
- String? marginChar,
- String? whitespaceChar,
- Color? whitespaceForeground,
- String? stringValue,
- int? tabWidth,
- bool? underlineSpaces,
- bool? strikethroughSpaces,
- bool? colorWhitespace,
- String? hyperlinkUrl,
- String? hyperlinkParams,
- Color? marginBackground,
- Color? underlineColor,
Implementation
StyleData copyWith({
bool? bold,
bool? italic,
bool? underline,
UnderlineStyle? underlineStyle,
bool? strikethrough,
bool? dim,
bool? inverse,
bool? blink,
Color? foreground,
Color? background,
Color? borderForeground,
Color? borderBackground,
Color? borderTopForeground,
Color? borderRightForeground,
Color? borderBottomForeground,
Color? borderLeftForeground,
Color? borderTopBackground,
Color? borderRightBackground,
Color? borderBottomBackground,
Color? borderLeftBackground,
List<Color>? borderForegroundBlend,
int? borderForegroundBlendOffset,
int? width,
int? height,
int? maxWidth,
int? maxHeight,
Padding? padding,
Margin? margin,
HorizontalAlign? align,
VerticalAlign? alignVertical,
Border? border,
BorderSides? borderSides,
bool? inline,
bool? wrapAnsi,
String Function(String)? transform,
String? paddingChar,
String? marginChar,
String? whitespaceChar,
Color? whitespaceForeground,
String? stringValue,
int? tabWidth,
bool? underlineSpaces,
bool? strikethroughSpaces,
bool? colorWhitespace,
String? hyperlinkUrl,
String? hyperlinkParams,
Color? marginBackground,
Color? underlineColor,
}) {
return StyleData(
bold: bold ?? this.bold,
italic: italic ?? this.italic,
underline: underline ?? this.underline,
underlineStyle: underlineStyle ?? this.underlineStyle,
strikethrough: strikethrough ?? this.strikethrough,
dim: dim ?? this.dim,
inverse: inverse ?? this.inverse,
blink: blink ?? this.blink,
foreground: foreground ?? this.foreground,
background: background ?? this.background,
borderForeground: borderForeground ?? this.borderForeground,
borderBackground: borderBackground ?? this.borderBackground,
borderTopForeground: borderTopForeground ?? this.borderTopForeground,
borderRightForeground:
borderRightForeground ?? this.borderRightForeground,
borderBottomForeground:
borderBottomForeground ?? this.borderBottomForeground,
borderLeftForeground: borderLeftForeground ?? this.borderLeftForeground,
borderTopBackground: borderTopBackground ?? this.borderTopBackground,
borderRightBackground:
borderRightBackground ?? this.borderRightBackground,
borderBottomBackground:
borderBottomBackground ?? this.borderBottomBackground,
borderLeftBackground: borderLeftBackground ?? this.borderLeftBackground,
borderForegroundBlend:
borderForegroundBlend ?? this.borderForegroundBlend,
borderForegroundBlendOffset:
borderForegroundBlendOffset ?? this.borderForegroundBlendOffset,
width: width ?? this.width,
height: height ?? this.height,
maxWidth: maxWidth ?? this.maxWidth,
maxHeight: maxHeight ?? this.maxHeight,
padding: padding ?? this.padding,
margin: margin ?? this.margin,
align: align ?? this.align,
alignVertical: alignVertical ?? this.alignVertical,
border: border ?? this.border,
borderSides: borderSides ?? this.borderSides,
inline: inline ?? this.inline,
wrapAnsi: wrapAnsi ?? this.wrapAnsi,
transform: transform ?? this.transform,
paddingChar: paddingChar ?? this.paddingChar,
marginChar: marginChar ?? this.marginChar,
whitespaceChar: whitespaceChar ?? this.whitespaceChar,
whitespaceForeground: whitespaceForeground ?? this.whitespaceForeground,
stringValue: stringValue ?? this.stringValue,
tabWidth: tabWidth ?? this.tabWidth,
underlineSpaces: underlineSpaces ?? this.underlineSpaces,
strikethroughSpaces: strikethroughSpaces ?? this.strikethroughSpaces,
colorWhitespace: colorWhitespace ?? this.colorWhitespace,
hyperlinkUrl: hyperlinkUrl ?? this.hyperlinkUrl,
hyperlinkParams: hyperlinkParams ?? this.hyperlinkParams,
marginBackground: marginBackground ?? this.marginBackground,
underlineColor: underlineColor ?? this.underlineColor,
);
}