SpotifyTrack class

Annotations

Constructors

SpotifyTrack({required String id, required String name, required String artistName, String? albumName, required int durationMs, required int popularity, bool explicit = false, String? externalUrl, String? releaseDate, List<AlbumImage>? albumImages})
const

Properties

albumImages List<AlbumImage>?
final
albumName String?
final
artistName String
final
bestImageUrl String?
no setter
durationFormatted String
no setter
durationMs int
final
durationSeconds double
no setter
explicit bool
final
externalUrl String?
final
hashCode int
The hash code for this object.
no setteroverride
id String
final
largeImageUrl String?
no setter
mediumImageUrl String?
no setter
name String
final
popularity int
final
releaseDate String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
smallImageUrl String?
no setter

Methods

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

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) SpotifyTrack?