copyWith method

ChatAdministratorRights copyWith({
  1. bool? canManageChat,
  2. bool? canChangeInfo,
  3. bool? canPostMessages,
  4. bool? canEditMessages,
  5. bool? canDeleteMessages,
  6. bool? canInviteUsers,
  7. bool? canRestrictMembers,
  8. bool? canPinMessages,
  9. bool? canManageTopics,
  10. bool? canPromoteMembers,
  11. bool? canManageVideoChats,
  12. bool? isAnonymous,
})

Implementation

ChatAdministratorRights copyWith({
  bool? canManageChat,
  bool? canChangeInfo,
  bool? canPostMessages,
  bool? canEditMessages,
  bool? canDeleteMessages,
  bool? canInviteUsers,
  bool? canRestrictMembers,
  bool? canPinMessages,
  bool? canManageTopics,
  bool? canPromoteMembers,
  bool? canManageVideoChats,
  bool? isAnonymous,
}) =>
    ChatAdministratorRights(
      canManageChat: canManageChat ?? this.canManageChat,
      canChangeInfo: canChangeInfo ?? this.canChangeInfo,
      canPostMessages: canPostMessages ?? this.canPostMessages,
      canEditMessages: canEditMessages ?? this.canEditMessages,
      canDeleteMessages: canDeleteMessages ?? this.canDeleteMessages,
      canInviteUsers: canInviteUsers ?? this.canInviteUsers,
      canRestrictMembers: canRestrictMembers ?? this.canRestrictMembers,
      canPinMessages: canPinMessages ?? this.canPinMessages,
      canManageTopics: canManageTopics ?? this.canManageTopics,
      canPromoteMembers: canPromoteMembers ?? this.canPromoteMembers,
      canManageVideoChats: canManageVideoChats ?? this.canManageVideoChats,
      isAnonymous: isAnonymous ?? this.isAnonymous,
    );