copyWith method

NotificationRecipientsRestrictions copyWith({
  1. List<String>? groupIds,
  2. List<GroupName>? groups,
  3. List<RestrictedPermission>? permissions,
})

Implementation

NotificationRecipientsRestrictions copyWith(
    {List<String>? groupIds,
    List<GroupName>? groups,
    List<RestrictedPermission>? permissions}) {
  return NotificationRecipientsRestrictions(
    groupIds: groupIds ?? this.groupIds,
    groups: groups ?? this.groups,
    permissions: permissions ?? this.permissions,
  );
}