copyWith method

UpdateDeleteMessages copyWith({
  1. int? chatId,
  2. List<int>? messageIds,
  3. bool? isPermanent,
  4. bool? fromCache,
})

Implementation

UpdateDeleteMessages copyWith({
  int? chatId,
  List<int>? messageIds,
  bool? isPermanent,
  bool? fromCache,
}) =>
    UpdateDeleteMessages(
      chatId: chatId ?? this.chatId,
      messageIds: messageIds ?? this.messageIds,
      isPermanent: isPermanent ?? this.isPermanent,
      fromCache: fromCache ?? this.fromCache,
    );