copyWith method

  1. @override
UpdateChatLastMessage copyWith({
  1. int? chatId,
  2. Message? lastMessage,
  3. List<ChatPosition>? positions,
  4. dynamic extra,
  5. int? clientId,
})
override

Implementation

@override
UpdateChatLastMessage copyWith({
  int? chatId,
  Message? lastMessage,
  List<ChatPosition>? positions,
  dynamic extra,
  int? clientId,
}) => UpdateChatLastMessage(
  chatId: chatId ?? this.chatId,
  lastMessage: lastMessage ?? this.lastMessage,
  positions: positions ?? this.positions,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);