copyWith method

RoleActor copyWith({
  1. ProjectRoleGroup? actorGroup,
  2. ProjectRoleUser? actorUser,
  3. String? avatarUrl,
  4. String? displayName,
  5. int? id,
  6. String? name,
  7. RoleActorType? type,
})

Implementation

RoleActor copyWith(
    {ProjectRoleGroup? actorGroup,
    ProjectRoleUser? actorUser,
    String? avatarUrl,
    String? displayName,
    int? id,
    String? name,
    RoleActorType? type}) {
  return RoleActor(
    actorGroup: actorGroup ?? this.actorGroup,
    actorUser: actorUser ?? this.actorUser,
    avatarUrl: avatarUrl ?? this.avatarUrl,
    displayName: displayName ?? this.displayName,
    id: id ?? this.id,
    name: name ?? this.name,
    type: type ?? this.type,
  );
}