copyWith method

  1. @override
ThemeExtension<Style> copyWith({
  1. Palette? colors,
  2. Fonts? fonts,
  3. Color? barrierColor,
  4. double? cardBlur,
  5. Border? cardBorder,
  6. Color? cardColor,
  7. Color? cardHoveredColor,
  8. Border? cardHoveredBorder,
  9. BorderRadius? cardRadius,
  10. Border? cardSelectedBorder,
  11. Color? contextMenuBackgroundColor,
  12. Color? contextMenuHoveredColor,
  13. BorderRadius? contextMenuRadius,
  14. TextStyle? linkStyle,
  15. Color? messageColor,
  16. Border? primaryBorder,
  17. Color? readMessageColor,
  18. Border? secondaryBorder,
  19. Color? sidebarColor,
  20. Border? systemMessageBorder,
  21. Color? systemMessageColor,
  22. TextStyle? systemMessageStyle,
  23. TextStyle? systemMessagePrimary,
  24. 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,
  );
}