copyWith method
TermareStyle
copyWith({
- double fontSize = 12,
- Color? cursorColor,
- Color? backgroundColor,
- Color? defaultFontColor,
- Color? black,
- Color? lightBlack,
- Color? red,
- Color? lightRed,
- Color? green,
- Color? lightGreen,
- Color? yellow,
- Color? lightYellow,
- Color? blue,
- Color? lightBlue,
- Color? purplishRed,
- Color? lightPurplishRed,
- Color? cyan,
- Color? lightCyan,
- Color? white,
- Color? lightWhite,
Implementation
TermareStyle copyWith({
double fontSize = 12,
Color? cursorColor,
Color? backgroundColor,
Color? defaultFontColor,
Color? black,
Color? lightBlack,
Color? red,
Color? lightRed,
Color? green,
Color? lightGreen,
Color? yellow,
Color? lightYellow,
Color? blue,
Color? lightBlue,
Color? purplishRed,
Color? lightPurplishRed,
Color? cyan,
Color? lightCyan,
Color? white,
Color? lightWhite,
}) {
return TermareStyle(
fontSize: fontSize,
cursorColor: cursorColor ?? this.cursorColor,
backgroundColor: backgroundColor ?? this.backgroundColor,
defaultFontColor: defaultFontColor ?? this.defaultFontColor,
black: black ?? this.black,
lightBlack: lightBlack ?? this.lightBlack,
red: red ?? this.red,
lightRed: lightRed ?? this.lightRed,
green: green ?? this.green,
lightGreen: lightGreen ?? this.lightGreen,
yellow: yellow ?? this.yellow,
lightYellow: lightYellow ?? this.lightYellow,
blue: blue ?? this.blue,
lightBlue: lightBlue ?? this.lightBlue,
purplishRed: purplishRed ?? this.purplishRed,
lightPurplishRed: lightPurplishRed ?? this.lightPurplishRed,
cyan: cyan ?? this.cyan,
lightCyan: lightCyan ?? this.lightCyan,
white: white ?? this.white,
lightWhite: lightWhite ?? this.lightWhite,
);
}