copyWith method

StreamMessageThemeData copyWith({
  1. TextStyle? messageTextStyle,
  2. TextStyle? messageAuthorStyle,
  3. TextStyle? messageLinksStyle,
  4. TextStyle? createdAtStyle,
  5. TextStyle? repliesStyle,
  6. Color? messageBackgroundColor,
  7. Color? messageBorderColor,
  8. StreamAvatarThemeData? avatarTheme,
  9. Color? reactionsBackgroundColor,
  10. Color? reactionsBorderColor,
  11. Color? reactionsMaskColor,
  12. Color? urlAttachmentBackgroundColor,
  13. TextStyle? urlAttachmentHostStyle,
  14. TextStyle? urlAttachmentTitleStyle,
  15. TextStyle? urlAttachmentTextStyle,
  16. int? urlAttachmentTitleMaxLine,
  17. int? urlAttachmentTextMaxLine,
})

Copy with a theme

Implementation

StreamMessageThemeData copyWith({
  TextStyle? messageTextStyle,
  TextStyle? messageAuthorStyle,
  TextStyle? messageLinksStyle,
  TextStyle? createdAtStyle,
  TextStyle? repliesStyle,
  Color? messageBackgroundColor,
  Color? messageBorderColor,
  StreamAvatarThemeData? avatarTheme,
  Color? reactionsBackgroundColor,
  Color? reactionsBorderColor,
  Color? reactionsMaskColor,
  Color? urlAttachmentBackgroundColor,
  TextStyle? urlAttachmentHostStyle,
  TextStyle? urlAttachmentTitleStyle,
  TextStyle? urlAttachmentTextStyle,
  int? urlAttachmentTitleMaxLine,
  int? urlAttachmentTextMaxLine,
}) {
  return StreamMessageThemeData(
    messageTextStyle: messageTextStyle ?? this.messageTextStyle,
    messageAuthorStyle: messageAuthorStyle ?? this.messageAuthorStyle,
    messageLinksStyle: messageLinksStyle ?? this.messageLinksStyle,
    createdAtStyle: createdAtStyle ?? this.createdAtStyle,
    messageBackgroundColor:
        messageBackgroundColor ?? this.messageBackgroundColor,
    messageBorderColor: messageBorderColor ?? this.messageBorderColor,
    avatarTheme: avatarTheme ?? this.avatarTheme,
    repliesStyle: repliesStyle ?? this.repliesStyle,
    reactionsBackgroundColor:
        reactionsBackgroundColor ?? this.reactionsBackgroundColor,
    reactionsBorderColor: reactionsBorderColor ?? this.reactionsBorderColor,
    reactionsMaskColor: reactionsMaskColor ?? this.reactionsMaskColor,
    urlAttachmentBackgroundColor:
        urlAttachmentBackgroundColor ?? this.urlAttachmentBackgroundColor,
    urlAttachmentHostStyle:
        urlAttachmentHostStyle ?? this.urlAttachmentHostStyle,
    urlAttachmentTitleStyle:
        urlAttachmentTitleStyle ?? this.urlAttachmentTitleStyle,
    urlAttachmentTextStyle:
        urlAttachmentTextStyle ?? this.urlAttachmentTextStyle,
    urlAttachmentTitleMaxLine:
        urlAttachmentTitleMaxLine ?? this.urlAttachmentTitleMaxLine,
    urlAttachmentTextMaxLine:
        urlAttachmentTextMaxLine ?? this.urlAttachmentTextMaxLine,
  );
}