copyWith method
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,
})
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,
);
}