update method Null safety

Future<VideoItem> update(
  1. {required Map<String, dynamic> body,
  2. String part = 'snippet,status,contentDetails',
  3. List<String> partList = const []}
)

Updates a VideoItem's metadata.

Implementation

Future<VideoItem> update(
    {required Map<String, dynamic> body,
    String part = 'snippet,status,contentDetails',
    List<String> partList = const []}) async {
  return await _rest.update(
      _authHeader, accept, buildParts(partList, part), body);
}