copyWith method
- Palette? colors,
- Fonts? fonts,
- Color? barrierColor,
- double? cardBlur,
- Border? cardBorder,
- Color? cardColor,
- Color? cardHoveredColor,
- Border? cardHoveredBorder,
- BorderRadius? cardRadius,
- Border? cardSelectedBorder,
- Color? contextMenuBackgroundColor,
- Color? contextMenuHoveredColor,
- BorderRadius? contextMenuRadius,
- TextStyle? linkStyle,
- Color? messageColor,
- Border? primaryBorder,
- Color? readMessageColor,
- Border? secondaryBorder,
- Color? sidebarColor,
- Border? systemMessageBorder,
- Color? systemMessageColor,
- TextStyle? systemMessageStyle,
- TextStyle? systemMessagePrimary,
- Color? unreadMessageColor,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
ThemeExtension<Style> copyWith({
Palette? colors,
Fonts? fonts,
Color? barrierColor,
double? cardBlur,
Border? cardBorder,
Color? cardColor,
Color? cardHoveredColor,
Border? cardHoveredBorder,
BorderRadius? cardRadius,
Border? cardSelectedBorder,
Color? contextMenuBackgroundColor,
Color? contextMenuHoveredColor,
BorderRadius? contextMenuRadius,
TextStyle? linkStyle,
Color? messageColor,
Border? primaryBorder,
Color? readMessageColor,
Border? secondaryBorder,
Color? sidebarColor,
Border? systemMessageBorder,
Color? systemMessageColor,
TextStyle? systemMessageStyle,
TextStyle? systemMessagePrimary,
Color? unreadMessageColor,
}) {
return Style(
colors: colors ?? this.colors,
fonts: fonts ?? this.fonts,
barrierColor: barrierColor ?? this.barrierColor,
cardBlur: cardBlur ?? this.cardBlur,
cardBorder: cardBorder ?? this.cardBorder,
cardColor: cardColor ?? this.cardColor,
cardHoveredColor: cardHoveredColor ?? this.cardHoveredColor,
cardHoveredBorder: cardHoveredBorder ?? this.cardHoveredBorder,
cardRadius: cardRadius ?? this.cardRadius,
cardSelectedBorder: cardSelectedBorder ?? this.cardSelectedBorder,
contextMenuBackgroundColor:
contextMenuBackgroundColor ?? this.contextMenuBackgroundColor,
contextMenuHoveredColor:
contextMenuHoveredColor ?? this.contextMenuHoveredColor,
contextMenuRadius: contextMenuRadius ?? this.contextMenuRadius,
linkStyle: linkStyle ?? this.linkStyle,
messageColor: messageColor ?? this.messageColor,
primaryBorder: primaryBorder ?? this.primaryBorder,
readMessageColor: readMessageColor ?? this.readMessageColor,
secondaryBorder: secondaryBorder ?? this.secondaryBorder,
sidebarColor: sidebarColor ?? this.sidebarColor,
systemMessageBorder: systemMessageBorder ?? this.systemMessageBorder,
systemMessageColor: systemMessageColor ?? this.systemMessageColor,
systemMessageStyle: systemMessageStyle ?? this.systemMessageStyle,
systemMessagePrimary: systemMessagePrimary ?? this.systemMessagePrimary,
unreadMessageColor: unreadMessageColor ?? this.unreadMessageColor,
);
}