copyWith method
VRoomTheme
copyWith({
- BoxDecoration? scaffoldDecoration,
- Widget getChatTitle(
- String title
- Color? selectedRoomColor,
- VChatImageBuilderWidget? getChatAvatar,
- VMsgStatusTheme? lastMessageStatus,
- Widget? muteIcon,
- TextStyle? seenLastMessageTextStyle,
- TextStyle? unSeenLastMessageTextStyle,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
VRoomTheme copyWith({
BoxDecoration? scaffoldDecoration,
Widget Function(String title)? getChatTitle,
Color? selectedRoomColor,
VChatImageBuilderWidget? getChatAvatar,
VMsgStatusTheme? lastMessageStatus,
Widget? muteIcon,
TextStyle? seenLastMessageTextStyle,
TextStyle? unSeenLastMessageTextStyle,
}) {
return VRoomTheme._(
scaffoldDecoration: scaffoldDecoration ?? this.scaffoldDecoration,
getChatTitle: getChatTitle ?? this.getChatTitle,
selectedRoomColor: selectedRoomColor ?? this.selectedRoomColor,
getChatAvatar: getChatAvatar ?? this.getChatAvatar,
lastMessageStatus: lastMessageStatus ?? this.lastMessageStatus,
muteIcon: muteIcon ?? this.muteIcon,
seenLastMessageTextStyle:
seenLastMessageTextStyle ?? this.seenLastMessageTextStyle,
unSeenLastMessageTextStyle:
unSeenLastMessageTextStyle ?? this.unSeenLastMessageTextStyle,
);
}