TrackInfo class

Information about a Track.

Annotations
  • @JsonSerializable()

Constructors

TrackInfo({required String identifier, required bool isSeekable, required String author, required Duration length, required bool isStream, required Duration position, required String title, required Uri? uri, required Uri? artworkUrl, required String? isrc, required String sourceName})
Create a new TrackInfo.
TrackInfo.fromJson(Map<String, Object?> json)
factory

Properties

artworkUrl Uri?
A URL to the track's artwork or cover image.
final
author String
The track's author.
final
hashCode int
The hash code for this object.
no setterinherited
identifier String
The track's identifier.
final
isrc String?
The track's ISRC.
final
isSeekable bool
Whether the track is seekable.
final
isStream bool
Whether the track is a stream.
final
length Duration
The length of the track.
final
position Duration
The track's current playback position.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceName String
The name of the source providing the track.
final
title String
The track's title.
final
uri Uri?
The track's URI.
final

Methods

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

Operators

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