delete method Null safety

Future<void> delete(
  1. {required String id,
  2. String? onBehalfOfContentOwner}
)

Deletes a YouTube video.

Implementation

Future<void> delete(
    {required String id, String? onBehalfOfContentOwner}) async {
  await _rest.delete(_authHeader, accept, id,
      onBehalfOfContentOwner: onBehalfOfContentOwner);
}