setDeprecated method
- bool status
Sets the deprecated status of this artifact.
Deprecated artifacts are hidden from default queries but remain accessible for historical reference.
await artifact.setDeprecated(true); // Hide from queries
await artifact.setDeprecated(false); // Restore visibility
Implementation
Future<void> setDeprecated(bool status) async {
await client.setDeprecated(kref.uri, status);
deprecated = status;
}