copyWith method

SetCommunityNotificationSettings copyWith({
  1. int? communityId,
  2. ChatNotificationSettings? notificationSettings,
})

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

Implementation

SetCommunityNotificationSettings copyWith({
  int? communityId,
  ChatNotificationSettings? notificationSettings,
}) => SetCommunityNotificationSettings(
  communityId: communityId ?? this.communityId,
  notificationSettings: notificationSettings ?? this.notificationSettings,
);