copyWith method

MessageThemeData copyWith({
  1. TextStyle? messageTextStyle,
  2. TextStyle? messageAuthorStyle,
  3. TextStyle? messageLinksStyle,
  4. TextStyle? createdAtStyle,
  5. TextStyle? repliesStyle,
  6. Color? messageBackgroundColor,
  7. Color? messageBorderColor,
  8. AvatarThemeData? avatarTheme,
  9. Color? reactionsBackgroundColor,
  10. Color? reactionsBorderColor,
  11. Color? reactionsMaskColor,
  12. Color? linkBackgroundColor,
})

Copy with a theme

Implementation

MessageThemeData copyWith({
  TextStyle? messageTextStyle,
  TextStyle? messageAuthorStyle,
  TextStyle? messageLinksStyle,
  TextStyle? createdAtStyle,
  TextStyle? repliesStyle,
  Color? messageBackgroundColor,
  Color? messageBorderColor,
  AvatarThemeData? avatarTheme,
  Color? reactionsBackgroundColor,
  Color? reactionsBorderColor,
  Color? reactionsMaskColor,
  Color? linkBackgroundColor,
}) =>
    MessageThemeData(
      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,
      linkBackgroundColor: linkBackgroundColor ?? this.linkBackgroundColor,
    );