Genius class
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
Static Methods
-
lyrics({required String url})
→ Future<String?>
-
Uses beautiful_soup to scrape song lyrics off of a Genius song URL