copyWith method

  1. @override
VRoomTheme copyWith({
  1. BoxDecoration? scaffoldDecoration,
  2. Widget getChatTitle(
    1. String title
    )?,
  3. Color? selectedRoomColor,
  4. VChatImageBuilderWidget? getChatAvatar,
  5. VMsgStatusTheme? lastMessageStatus,
  6. Widget? muteIcon,
  7. TextStyle? seenLastMessageTextStyle,
  8. 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,
  );
}