SpotifyTrack class
An extended NowPlayingTrack for Spotify API sourced tracks
- Inheritance
-
- Object
- NowPlayingTrack
- SpotifyTrack
Constructors
- SpotifyTrack.new({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})
- SpotifyTrack.from(PlaybackState playbackState)
-
factory
Properties
- album → String?
-
finalinherited
- artist → String?
-
finalinherited
- createdAt → DateTime
-
finalinherited
- duration → Duration
-
finalinherited
- essentialAlbum → String?
-
no setterinherited
- essentialTitle → String?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasIcon → bool
-
no setteroverride
- hasImage → bool
-
no setterinherited
- hasSpotifySource → bool
-
no setterinherited
-
icon
→ ImageProvider<
Object> -
An image representing the app playing the track
no setteroverride
- id → String
-
finalinherited
-
image
↔ ImageProvider<
Object> ? -
The image for the track, probably album art
getter/setter pairinherited-setteroverride-getter
- imageNeedsResolving → bool
-
true if the image is empty and a resolution hasn't been attempted, else false
no setterinherited
- isNotReported → bool
-
no setteroverride
- isPaused → bool
-
no setterinherited
- isPlaying → bool
-
no setterinherited
- isReported → bool
-
no setterinherited
- isResolvingImage → bool
-
true if the image is being resolved, else false
no setterinherited
- isSpotify → bool
-
final
- isStopped → bool
-
no setterinherited
- position → Duration
-
finalinherited
- progress → Duration
-
How long the track been has been playing, as a
Duration
no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → String?
-
finalinherited
- state → NowPlayingState
-
finalinherited
- title → String?
-
finalinherited
Methods
-
copy(
) → SpotifyTrack -
Creates a copy of a track, largely so that the stream knows it's mutated
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolveImage(
) → Future< void> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- notPlaying → SpotifyTrack
-
final