copyWith method

BoardLocation copyWith({
  1. int? projectId,
  2. int? userId,
  3. String? userAccountId,
  4. String? displayName,
  5. String? projectName,
  6. String? projectKey,
  7. String? projectTypeKey,
  8. String? avatarUri,
  9. String? name,
})

Implementation

BoardLocation copyWith(
    {int? projectId,
    int? userId,
    String? userAccountId,
    String? displayName,
    String? projectName,
    String? projectKey,
    String? projectTypeKey,
    String? avatarUri,
    String? name}) {
  return BoardLocation(
    projectId: projectId ?? this.projectId,
    userId: userId ?? this.userId,
    userAccountId: userAccountId ?? this.userAccountId,
    displayName: displayName ?? this.displayName,
    projectName: projectName ?? this.projectName,
    projectKey: projectKey ?? this.projectKey,
    projectTypeKey: projectTypeKey ?? this.projectTypeKey,
    avatarUri: avatarUri ?? this.avatarUri,
    name: name ?? this.name,
  );
}