copyWith method

  1. @override
ChatMemberStatusAdministrator copyWith({
  1. String? customTitle,
  2. bool? canBeEdited,
  3. bool? canManageChat,
  4. bool? canChangeInfo,
  5. bool? canPostMessages,
  6. bool? canEditMessages,
  7. bool? canDeleteMessages,
  8. bool? canInviteUsers,
  9. bool? canRestrictMembers,
  10. bool? canPinMessages,
  11. bool? canPromoteMembers,
  12. bool? canManageVideoChats,
  13. bool? isAnonymous,
})
override

Implementation

@override
ChatMemberStatusAdministrator copyWith({
  String? customTitle,
  bool? canBeEdited,
  bool? canManageChat,
  bool? canChangeInfo,
  bool? canPostMessages,
  bool? canEditMessages,
  bool? canDeleteMessages,
  bool? canInviteUsers,
  bool? canRestrictMembers,
  bool? canPinMessages,
  bool? canPromoteMembers,
  bool? canManageVideoChats,
  bool? isAnonymous,
}) => ChatMemberStatusAdministrator(
  customTitle: customTitle ?? this.customTitle,
  canBeEdited: canBeEdited ?? this.canBeEdited,
  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,
  canPromoteMembers: canPromoteMembers ?? this.canPromoteMembers,
  canManageVideoChats: canManageVideoChats ?? this.canManageVideoChats,
  isAnonymous: isAnonymous ?? this.isAnonymous,
);