copyWith method

BanChatMember copyWith({
  1. int? chatId,
  2. MessageSender? memberId,
  3. int? bannedUntilDate,
  4. bool? revokeMessages,
})

Implementation

BanChatMember copyWith({
  int? chatId,
  MessageSender? memberId,
  int? bannedUntilDate,
  bool? revokeMessages,
}) =>
    BanChatMember(
      chatId: chatId ?? this.chatId,
      memberId: memberId ?? this.memberId,
      bannedUntilDate: bannedUntilDate ?? this.bannedUntilDate,
      revokeMessages: revokeMessages ?? this.revokeMessages,
    );