Song class Null safety


Song({required String iOSSongID, 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})


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


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]

Static Methods

fromJson(Map<String, dynamic> map) Song