Videos class Null safety

Returns a list of VideoItems that match the API request parameters.


Videos({required String token, required Dio dio})


accept String
final, inherited
contentType String
final, inherited
dio Dio
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
token String


buildParts(List<String> partList, String part) String
delete({required String id, String? onBehalfOfContentOwner}) Future<void>
Deletes a YouTube video.
getRating({required String id, String? onBehalfOfContentOwner}) Future<VideoGetRatingResponse>
Retrieves the ratings that the authorized user gave to a list of specified videos.
insert({required Map<String, dynamic> body, required File videoFile, String part = 'snippet,status,contentDetails', List<String> partList = const [], bool? notifySubscribers, String? onBehalfOfContentOwner, String? onBehalfOfContentOwnerChannel}) Future<VideoItem>
Uploads a video to YouTube and optionally sets the video's metadata.
list({String part = 'snippet,status,contentDetails', List<String> partList = const [], String? chart, String? id, String? myRating, bool? hl, int? maxHeight, int? maxResults, int? maxWidth, String? onBehalfOfContentOwner, String? pageToken, String? regionCode, String? videoCategoryId}) Future<VideoListResponse>
Uploads a VideoItem to YouTube and optionally sets the video's metadata.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
rate({required String id, required String rating}) Future<void>
Add a like or dislike rating to a VideoItem or remove a rating from a VideoItem.
reportAbuse({required ReportAbuse body, String? onBehalfOfContentOwner}) Future<void>
Report a video for containing abusive content.
toString() String
A string representation of this object. [...]
update({required Map<String, dynamic> body, String part = 'snippet,status,contentDetails', List<String> partList = const []}) Future<VideoItem>
Updates a VideoItem's metadata.


operator ==(Object other) bool
The equality operator. [...]