copyWith method
Implementation
ChatPermissions copyWith({
bool? canSendMessages,
bool? canSendMediaMessages,
bool? canSendPolls,
bool? canSendOtherMessages,
bool? canAddWebPagePreviews,
bool? canChangeInfo,
bool? canInviteUsers,
bool? canPinMessages,
}) => ChatPermissions(
canSendMessages: canSendMessages ?? this.canSendMessages,
canSendMediaMessages: canSendMediaMessages ?? this.canSendMediaMessages,
canSendPolls: canSendPolls ?? this.canSendPolls,
canSendOtherMessages: canSendOtherMessages ?? this.canSendOtherMessages,
canAddWebPagePreviews: canAddWebPagePreviews ?? this.canAddWebPagePreviews,
canChangeInfo: canChangeInfo ?? this.canChangeInfo,
canInviteUsers: canInviteUsers ?? this.canInviteUsers,
canPinMessages: canPinMessages ?? this.canPinMessages,
);