YoutubeApi class

Constructors

YoutubeApi(String key, {int maxResults = 10})

Properties

getPage int
no setter
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
final
key String
getter/setter pair
nextPageToken String?
getter/setter pair
page int
getter/setter pair
prevPageToken String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchOptions SearchOptions
getter/setter pair

Methods

channel(String channelId, {Order? order}) Future<List<ApiResult>>
getTrends({required String regionCode, Set<VideoPart> parts = const {VideoPart.snippet}}) Future<List<ApiResult>>
nextPage({bool isTrendingVideos = false}) Future<List<ApiResult>?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prevPage({bool isTrendingVideos = false}) Future<List<ApiResult>?>
searchChannelsById(List<String> ids, {Set<ChannelPart> parts = ChannelPart.implementedParts}) Future<List<YoutubeChannel>>
Get channel results by ID
searchPlaylistsById(List<String> ids, {Set<PlaylistPart> parts = PlaylistPart.implementedParts}) Future<List<YoutubePlaylist>>
Get channel results by ID
searchVideosById(List<String> ids, {Set<VideoPart> parts = VideoPart.implementedParts}) Future<List<YoutubeVideo>>
Get video results by ID
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

baseURL → const String
searchUnencodedPath → const String