copyWith method

SharePermission copyWith({
  1. GroupName? group,
  2. int? id,
  3. Project? project,
  4. ProjectRole? role,
  5. SharePermissionType? type,
  6. UserBean? user,
})

Implementation

SharePermission copyWith(
    {GroupName? group,
    int? id,
    Project? project,
    ProjectRole? role,
    SharePermissionType? type,
    UserBean? user}) {
  return SharePermission(
    group: group ?? this.group,
    id: id ?? this.id,
    project: project ?? this.project,
    role: role ?? this.role,
    type: type ?? this.type,
    user: user ?? this.user,
  );
}