copyWith method
WatchUser
copyWith({
- String? type,
- String? username,
- String? userKey,
- String? accountId,
- Icon? profilePicture,
- String? displayName,
- String? timeZone,
- List<
OperationCheckResult> ? operations, - bool? isExternalCollaborator,
- UserDetails? details,
- String? accountType,
- String? email,
- String? publicName,
- Map<
String, dynamic> ? personalSpace, - bool? externalCollaborator,
Implementation
WatchUser copyWith(
{String? type,
String? username,
String? userKey,
String? accountId,
Icon? profilePicture,
String? displayName,
String? timeZone,
List<OperationCheckResult>? operations,
bool? isExternalCollaborator,
UserDetails? details,
String? accountType,
String? email,
String? publicName,
Map<String, dynamic>? personalSpace,
bool? externalCollaborator}) {
return WatchUser(
type: type ?? this.type,
username: username ?? this.username,
userKey: userKey ?? this.userKey,
accountId: accountId ?? this.accountId,
profilePicture: profilePicture ?? this.profilePicture,
displayName: displayName ?? this.displayName,
timeZone: timeZone ?? this.timeZone,
operations: operations ?? this.operations,
isExternalCollaborator:
isExternalCollaborator ?? this.isExternalCollaborator,
details: details ?? this.details,
accountType: accountType ?? this.accountType,
email: email ?? this.email,
publicName: publicName ?? this.publicName,
personalSpace: personalSpace ?? this.personalSpace,
externalCollaborator: externalCollaborator ?? this.externalCollaborator,
);
}