PlaylistsMixin mixin

Mixin for playlist functionalities.

Superclass constraints
Mixin applications

Properties

authType AuthType
Get the authentication type.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
headers Future<Map<String, String>>
Headers property for requests.
no setterinherited
parser Parser
Get the i18n parser.
no setterinherited
proxy Uri?
Get the proxy configuration.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addPlaylistItems(String playlistId, {List<String>? videoIds, String? sourcePlaylist, bool duplicates = false}) Future
Add songs to an existing playlist.
asMobile<T>(Future<T> callback()) Future<T>
Set client temporary as YouTube Music Mobile app for sending request.
inherited
checkAuth() → void
Check if client is authenticated.
inherited
createPlaylist(String title, String description, {String privacyStatus = 'PRIVATE', List<String>? videoIds, String? sourcePlaylist}) Future
Creates a new empty playlist and returns its id.
deletePlaylist(String playlistId) Future
Delete a playlist.
editPlaylist(String playlistId, {String? title, String? description, String? privacyStatus, dynamic moveItem, String? addPlaylistId, bool? addToTop}) Future
Edit title, description or privacyStatus of a playlist.
getLikedSongs({int limit = 100}) Future<JsonMap>
Gets playlist items for the 'Liked Songs' playlist.
getPlaylist(String playlistId, {int? limit = 100, bool related = false, int suggestionsLimit = 0}) Future<JsonMap>
Returns a list of playlist items.
getSavedEpisodes({int limit = 100}) Future<JsonMap>
Gets playlist items for the 'Liked Songs' playlist.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removePlaylistItems(String playlistId, List<JsonMap> videos) Future
Remove songs from an existing playlist.
sendGetRequest(String url, {JsonMap? params}) Future<Response>
Send a GET request to YouTube Music.
inherited
sendRequest(String endpoint, JsonMap body, {String additionalParams = ''}) Future<JsonMap>
Send a POST request to YouTube Music.
inherited
toString() String
A string representation of this object.
inherited

Operators

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