copyWith method

NotificationRecipients copyWith({
  1. bool? assignee,
  2. List<String>? groupIds,
  3. List<GroupName>? groups,
  4. bool? reporter,
  5. List<UserDetails>? users,
  6. bool? voters,
  7. bool? watchers,
})

Implementation

NotificationRecipients copyWith(
    {bool? assignee,
    List<String>? groupIds,
    List<GroupName>? groups,
    bool? reporter,
    List<UserDetails>? users,
    bool? voters,
    bool? watchers}) {
  return NotificationRecipients(
    assignee: assignee ?? this.assignee,
    groupIds: groupIds ?? this.groupIds,
    groups: groups ?? this.groups,
    reporter: reporter ?? this.reporter,
    users: users ?? this.users,
    voters: voters ?? this.voters,
    watchers: watchers ?? this.watchers,
  );
}