copyWith method

UserAnonymous copyWith({
  1. String? type,
  2. Icon? profilePicture,
  3. String? displayName,
  4. List<OperationCheckResult>? operations,
  5. bool? isExternalCollaborator,
  6. UserAnonymousExpandable? expandable,
  7. GenericLinks? links,
})

Implementation

UserAnonymous copyWith(
    {String? type,
    Icon? profilePicture,
    String? displayName,
    List<OperationCheckResult>? operations,
    bool? isExternalCollaborator,
    UserAnonymousExpandable? expandable,
    GenericLinks? links}) {
  return UserAnonymous(
    type: type ?? this.type,
    profilePicture: profilePicture ?? this.profilePicture,
    displayName: displayName ?? this.displayName,
    operations: operations ?? this.operations,
    isExternalCollaborator:
        isExternalCollaborator ?? this.isExternalCollaborator,
    expandable: expandable ?? this.expandable,
    links: links ?? this.links,
  );
}