Track constructor

Track({
  1. String? trackPath,
  2. Uint8List? dataBuffer,
  3. String? trackTitle,
  4. String? trackAuthor,
  5. String? albumArtUrl,
  6. String? albumArtAsset,
  7. String? albumArtFile,
  8. Codec codec = Codec.defaultCodec,
})

The constructor

Implementation

Track({
  this.trackPath,
  this.dataBuffer,
  this.trackTitle,
  this.trackAuthor,
  this.albumArtUrl,
  this.albumArtAsset,
  this.albumArtFile,
  this.codec = Codec.defaultCodec,
}) {
  assert((!(trackPath != null && dataBuffer != null)),
      'You cannot provide both a path and a buffer.');
}