SpotifyTrack constructor

SpotifyTrack({
  1. String? id,
  2. String? title,
  3. String? album,
  4. String? artist,
  5. String? image,
  6. String? source,
  7. DateTime? createdAt,
  8. Duration duration = Duration.zero,
  9. Duration position = Duration.zero,
  10. NowPlayingState state = NowPlayingState.stopped,
})

Implementation

SpotifyTrack({
  String? id,
  String? title,
  String? album,
  String? artist,
  String? image,
  String? source,
  DateTime? createdAt,
  Duration duration = Duration.zero,
  Duration position = Duration.zero,
  NowPlayingState state = NowPlayingState.stopped,
})  : this._imageUrl = image,
      super(
        id: id,
        title: title,
        album: album,
        artist: artist,
        duration: duration,
        position: position,
        state: state,
        source: source,
        createdAt: createdAt,
      );