updateRelease method
Future<Release>
updateRelease(
- String id, {
- String? title,
- String? notes,
- String? tag,
- bool? draft,
- bool? yanked,
- String? yankedReason,
- 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,
}),
);