copyWith method

WatchUser copyWith({
  1. String? type,
  2. String? username,
  3. String? userKey,
  4. String? accountId,
  5. Icon? profilePicture,
  6. String? displayName,
  7. String? timeZone,
  8. List<OperationCheckResult>? operations,
  9. bool? isExternalCollaborator,
  10. UserDetails? details,
  11. String? accountType,
  12. String? email,
  13. String? publicName,
  14. Map<String, dynamic>? personalSpace,
  15. 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,
  );
}