updateRelease method

  1. @override
Future<Release> updateRelease(
  1. String id, {
  2. String? title,
  3. String? notes,
  4. String? tag,
  5. bool? draft,
  6. bool? yanked,
  7. String? yankedReason,
  8. Map<String, String>? metadata,
})
override

Updates a release's mutable metadata: notes, title, draft state, and yanking.

The version and its assets are not editable here; see Release.

Implementation

@override
Future<Release> updateRelease(
  String id, {
  String? title,
  String? notes,
  String? tag,
  bool? draft,
  bool? yanked,
  String? yankedReason,
  Map<String, String>? metadata,
}) async => Release.fromJson(
  await _result(StoreProtocol.releaseUpdate, {
    'id': id,
    'title': ?title,
    'notes': ?notes,
    'tag': ?tag,
    'draft': ?draft,
    'yanked': ?yanked,
    'yankedReason': ?yankedReason,
    'metadata': ?metadata,
  }),
);