insert method Null safety

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

Uploads a video to YouTube and optionally sets the video's metadata.

Implementation

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