Genius class

Constructors

Genius({required String accessToken, bool verbose = true, bool skipNonSongs = true})

Properties

accessToken String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skipNonSongs bool
getter/setter pair
verbose bool
getter/setter pair

Methods

album({required int albumId}) Future<Map<String, dynamic>?>
Gets data for a specific album given is id (albumId).
albumTracks({required int albumId, required int perPage, required int page}) Future<List?>
Gets album's tracks.
artist({required int artistId}) Future<Map<String, dynamic>?>
Gets data for a specific artist given is id (artistId).
artistSongs({required int artistId, required int perPage, required int page, SongsSorting sort = SongsSorting.title}) Future<List?>
Gets artist's songs.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
searchAlbum({String? name, int? albumId, String artist = '', bool getFullInfo = true}) Future<Album?>
Searches for a specific album and gets its songs.
searchArtist({required String artistName, int? maxSongs, SongsSorting sort = SongsSorting.popularity, int perPage = 20, bool getFullInfo = true, int? artistId, bool includeFeatures = false}) Future<Artist?>
Searches for a specific artist and gets their songs.
searchSong({String? artist, String? title, int? songId, bool getFullInfo = true}) Future<Song?>
Searches for a specific song and gets its lyrics returning Song in case it's successful and null otherwise .
song({required int songId}) Future<Map<String, dynamic>?>
Gets data for a specific song given is id (songId).
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

lyrics({required String url}) Future<String?>
Uses beautiful_soup to scrape song lyrics off of a Genius song URL