copyWith method

ChatPermissions copyWith({
  1. bool? canSendMessages,
  2. bool? canSendMediaMessages,
  3. bool? canSendPolls,
  4. bool? canSendOtherMessages,
  5. bool? canAddWebPagePreviews,
  6. bool? canChangeInfo,
  7. bool? canInviteUsers,
  8. bool? canPinMessages,
})

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,
);