copyWith method

NewChatPrivacySettings copyWith({
  1. bool? allowNewChatsFromUnknownUsers,
  2. int? incomingPaidMessageStarCount,
  3. dynamic extra,
  4. int? clientId,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

NewChatPrivacySettings copyWith({
  bool? allowNewChatsFromUnknownUsers,
  int? incomingPaidMessageStarCount,
  dynamic extra,
  int? clientId,
}) => NewChatPrivacySettings(
  allowNewChatsFromUnknownUsers:
      allowNewChatsFromUnknownUsers ?? this.allowNewChatsFromUnknownUsers,
  incomingPaidMessageStarCount:
      incomingPaidMessageStarCount ?? this.incomingPaidMessageStarCount,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);