copyWith method

  1. @override
UpdateBusinessMessagesDeleted copyWith({
  1. String? connectionId,
  2. int? chatId,
  3. List<int>? messageIds,
  4. dynamic extra,
  5. int? clientId,
})
override

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

@override
UpdateBusinessMessagesDeleted copyWith({
  String? connectionId,
  int? chatId,
  List<int>? messageIds,
  dynamic extra,
  int? clientId,
}) => UpdateBusinessMessagesDeleted(
  connectionId: connectionId ?? this.connectionId,
  chatId: chatId ?? this.chatId,
  messageIds: messageIds ?? this.messageIds,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);