update method

Future<Playlist> update(
  1. {String part = 'contentDetails,id,localizations,player,snippet,status',
  2. List<String> partList = const [],
  3. required Map<String, dynamic> body,
  4. String? onBehalfOfContentOwner,
  5. String? onBehalfOfContentOwnerChannel}
)

Modifies a playlist. For example, you could change a playlist's title, description, or privacy status.

Implementation

Future<Playlist> update({
  String part = 'contentDetails,id,localizations,player,snippet,status',
  List<String> partList = const [],
  required Map<String, dynamic> body,
  String? onBehalfOfContentOwner,
  String? onBehalfOfContentOwnerChannel,
}) async {
  return await _rest.update(
    accept,
    contentType,
    buildParts(partList, part),
    body,
  );
}