copyWith method
VMessageTheme
copyWith({
- Color? senderBubbleColor,
- Color? receiverBubbleColor,
- VMessageItemTheme? vMessageItemTheme,
- VMsgStatusTheme? messageSendingStatus,
- BoxDecoration? scaffoldDecoration,
- CustomMessageItemTypeDef? customMessageItem,
- TextStyle? receiverTextStyle,
- TextStyle? senderTextStyle,
- 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,
);
}