setDeprecated method

Future<StatusResponse> setDeprecated(
  1. String kref,
  2. bool deprecated
)
inherited

Sets the deprecated status of an item.

Deprecated items are hidden from searches but not deleted. Set deprecated to false to restore an item.

Implementation

Future<StatusResponse> setDeprecated(String kref, bool deprecated) async {
  final request =
      SetDeprecatedRequest()
        ..kref = Kref(uri: kref)
        ..deprecated = deprecated;
  return stub.setDeprecated(request, options: callOptions);
}