SpotifyResult class

A search result (Track) from Spotify.

Note

Inheritance

Constructors

SpotifyResult.new({required List<String> artists, required String title, required String album, required int sDuration, required String srcUrl, required String artUrl, required Source source, required int diskNumber, required int trackNumber})
Creates a new SpotifyResult.

Properties

album → String
Album of the song.
final
artists → List<String>
Artist(s) of the song.
final
artUrl → String
The URL to the album art.
final
diskNumber → int
The disk number of the track. 1 unless from an multi-disk album.
final
dlUrl → String
URL to a downloadable stream from the given source.
final
hasAlbum → bool
Whether the song has an album.
no setterinherited
hasArtists → bool
Whether the song has any artists.
no setterinherited
hasArtUrl → bool
Whether the song has an album art.
no setterinherited
hasDiskNumber → bool
Track has disk number.
no setter
hasDlUrl → bool
Whether the song has a download URL.
no setterinherited
hasDuration → bool
Whether the song has a duration.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
hasTrackNumber → bool
Track has track number.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sDuration → int
Duration of the song in seconds.
final
source → Source
Source of the song.
final
srcUrl → String
URL of the song from the given source.
final
title → String
Title of the song.
final
trackNumber → int
The track number of the album disk.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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