insert method

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

Creates a video stream. The stream enables you to send your video to YouTube, which can then broadcast the video to your audience.

Implementation

Future<LiveStreamItem> insert({
  String part = 'snippet,status,contentDetails',
  List<String> partList = const [],
  required Map<String, dynamic> body,
  String? onBehalfOfContentOwner,
  String? onBehalfOfContentOwnerChannel,
}) {
  return _rest.insert(
    // _authHeader,
    accept,
    contentType,
    buildParts(partList, part),
    body,
  );
}