copy method

  1. @override
SpotifyTrack copy()
override

Creates a copy of a track, largely so that the stream knows it's mutated

Implementation

@override
SpotifyTrack copy() => SpotifyTrack(
      id: this.id,
      title: this.title,
      album: this.album,
      image: this._imageUrl,
      artist: this.artist,
      duration: this.duration,
      position: this.position,
      state: this.state,
      source: this.source,
      createdAt: this.createdAt,
    );