copyWith method

ChatTheme copyWith({
  1. ChatBubbleTheme? bubbleTheme,
  2. ChatTileTheme? tileTheme,
  3. ChatStyle? style,
  4. Duration? messageGroupDistance,
})

Implementation

ChatTheme copyWith({
  ChatBubbleTheme? bubbleTheme,
  ChatTileTheme? tileTheme,
  ChatStyle? style,
  Duration? messageGroupDistance,
}) {
  return ChatTheme(
    bubbleTheme: bubbleTheme ?? this.bubbleTheme,
    tileTheme: tileTheme ?? this.tileTheme,
    style: style ?? this.style,
    messageGroupDistance: messageGroupDistance ?? this.messageGroupDistance,
  );
}