copyWith method

ProjectRole copyWith({
  1. List<RoleActor>? actors,
  2. bool? admin,
  3. bool? currentUserRole,
  4. bool? default$,
  5. String? description,
  6. int? id,
  7. String? name,
  8. bool? roleConfigurable,
  9. Scope? scope,
  10. String? self,
  11. String? translatedName,
})

Implementation

ProjectRole copyWith(
    {List<RoleActor>? actors,
    bool? admin,
    bool? currentUserRole,
    bool? default$,
    String? description,
    int? id,
    String? name,
    bool? roleConfigurable,
    Scope? scope,
    String? self,
    String? translatedName}) {
  return ProjectRole(
    actors: actors ?? this.actors,
    admin: admin ?? this.admin,
    currentUserRole: currentUserRole ?? this.currentUserRole,
    default$: default$ ?? this.default$,
    description: description ?? this.description,
    id: id ?? this.id,
    name: name ?? this.name,
    roleConfigurable: roleConfigurable ?? this.roleConfigurable,
    scope: scope ?? this.scope,
    self: self ?? this.self,
    translatedName: translatedName ?? this.translatedName,
  );
}