Song class

Constructors

Song({required String songID, required String title, required String artistName, required String albumTitle, required int trackNumber, required int playCount, required int discNumber, required String genre, required DateTime releaseDate, required double duration, required bool isExplicit})

Properties

albumTitle String
The title of the album.
getter/setter pair
artistName String
The name of the song artist.
getter/setter pair
discNumber int
The disc number the song belongs to in an album.
getter/setter pair
duration double
The total duration of the song.
getter/setter pair
genre String
The genre of the song.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isExplicit bool
Shows if the song is explicit.
getter/setter pair
playCount int
The amount of times the song has been played.
getter/setter pair
releaseDate DateTime
The release date of the song.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
songID String
The Persistent Song ID of the song. Used to play or enqueue a song.
getter/setter pair
title String
The title of the song.
getter/setter pair
trackNumber int
The track number of the song in an album.
getter/setter pair

Methods

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

Operators

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

Static Methods

fromJson(Map<String, dynamic> map) Song