copyWith method

  1. @override
VMessageTheme copyWith({
  1. Color? senderBubbleColor,
  2. Color? receiverBubbleColor,
  3. VMessageItemTheme? vMessageItemTheme,
  4. VMsgStatusTheme? messageSendingStatus,
  5. BoxDecoration? scaffoldDecoration,
  6. CustomMessageItemTypeDef? customMessageItem,
  7. TextStyle? receiverTextStyle,
  8. TextStyle? senderTextStyle,
  9. BoxDecoration? messageItemHolderDecoration,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
VMessageTheme copyWith({
  Color? senderBubbleColor,
  Color? receiverBubbleColor,
  VMessageItemTheme? vMessageItemTheme,
  VMsgStatusTheme? messageSendingStatus,
  BoxDecoration? scaffoldDecoration,
  CustomMessageItemTypeDef? customMessageItem,
  TextStyle? receiverTextStyle,
  TextStyle? senderTextStyle,
  BoxDecoration? messageItemHolderDecoration,
}) {
  return VMessageTheme._(
    senderBubbleColor: senderBubbleColor ?? this.senderBubbleColor,
    vMessageItemTheme: vMessageItemTheme ?? this.vMessageItemTheme,
    receiverBubbleColor: receiverBubbleColor ?? this.receiverBubbleColor,
    messageSendingStatus: messageSendingStatus ?? this.messageSendingStatus,
    scaffoldDecoration: scaffoldDecoration ?? this.scaffoldDecoration,
    customMessageItem: customMessageItem ?? this.customMessageItem,
    receiverTextStyle: receiverTextStyle ?? this.receiverTextStyle,
    senderTextStyle: senderTextStyle ?? this.senderTextStyle,
    messageItemHolderDecoration:
        messageItemHolderDecoration ?? this.messageItemHolderDecoration,
  );
}