copyWith method
User
copyWith({
- UserType? type,
- String? username,
- String? userKey,
- String? accountId,
- UserAccountType? accountType,
- String? email,
- String? publicName,
- Icon? profilePicture,
- String? displayName,
- String? timeZone,
- bool? isExternalCollaborator,
- bool? externalCollaborator,
- List<
OperationCheckResult> ? operations, - UserDetails? details,
- Space? personalSpace,
- UserExpandable? expandable,
- GenericLinks? links,
Implementation
User copyWith(
{UserType? type,
String? username,
String? userKey,
String? accountId,
UserAccountType? accountType,
String? email,
String? publicName,
Icon? profilePicture,
String? displayName,
String? timeZone,
bool? isExternalCollaborator,
bool? externalCollaborator,
List<OperationCheckResult>? operations,
UserDetails? details,
Space? personalSpace,
UserExpandable? expandable,
GenericLinks? links}) {
return User(
type: type ?? this.type,
username: username ?? this.username,
userKey: userKey ?? this.userKey,
accountId: accountId ?? this.accountId,
accountType: accountType ?? this.accountType,
email: email ?? this.email,
publicName: publicName ?? this.publicName,
profilePicture: profilePicture ?? this.profilePicture,
displayName: displayName ?? this.displayName,
timeZone: timeZone ?? this.timeZone,
isExternalCollaborator:
isExternalCollaborator ?? this.isExternalCollaborator,
externalCollaborator: externalCollaborator ?? this.externalCollaborator,
operations: operations ?? this.operations,
details: details ?? this.details,
personalSpace: personalSpace ?? this.personalSpace,
expandable: expandable ?? this.expandable,
links: links ?? this.links,
);
}