TrackSearchResult class abstract

Implemented types

Constructors

TrackSearchResult({required Uri? artworkUrl, required String? caption, required bool commentable, @JsonKey(defaultValue: 0) required double commentCount, required DateTime createdAt, required String? description, @JsonKey(defaultValue: 0) required double downloadCount, required double duration, required double fullDuration, required String? genre, required int id, required String? labelName, required DateTime? lastModified, required String? license, @JsonKey(defaultValue: 0) required double likesCount, required Uri permalinkUrl, @JsonKey(defaultValue: 0) required double playbackCount, required String? purchaseTitle, required String? purchaseUrl, @JsonKey(defaultValue: 0) required double repostsCount, required String? tagList, required String title, required String waveformUrl, required String monetizationModel, required String policy, required MiniUser user})
const
factory
TrackSearchResult.fromJson(Map<String, dynamic> json)
factory

Properties

artworkUrl Uri?
The URL of this track's thumbnail.
no setteroverride
caption String?
The caption displayed under this track.
no setteroverride
commentable bool
Whether or not this track has comments enabled.
no setteroverride
commentCount double
The number of comments on this track.
no setteroverride
copyWith → _$$TrackSearchResultImplCopyWith<_$TrackSearchResultImpl>
no setter
createdAt DateTime
no setter
description String?
no setter
downloadCount double
The number of times this track has been downloaded through SoundCloud.
no setteroverride
duration double
The duration of this track that is playable.
no setteroverride
fullDuration double
The full duration of this track.
no setteroverride
genre String?
The genre of music this track belongs to.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
id int
no setter
labelName String?
The record label associated with this track.
no setteroverride
lastModified DateTime?
no setter
license String?
The license attributed to this track.
no setteroverride
likesCount double
no setter
monetizationModel String
The monetization model for this track.
no setteroverride
permalinkUrl Uri
no setter
playbackCount double
The number of times this track has been played.
no setteroverride
policy String
The streaming policy for this track.
no setteroverride
purchaseTitle String?
The title of the website that this track can be purchased from.
no setteroverride
purchaseUrl String?
The URL of the website that this track can be purchased from.
no setteroverride
repostsCount double
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tagList String?
A comma-separated list of tags applied to this track.
no setteroverride
title String
The title of this track.
no setteroverride
user → MiniUser
The user that uploaded this track.
no setteroverride
waveformUrl String
The URL to the manifest that can be used to build this track's waveform.
no setteroverride

Methods

map<TResult extends Object?>({required TResult track(TrackSearchResult value), required TResult playlist(PlaylistSearchResult value), required TResult user(UserSearchResult value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? track(TrackSearchResult value)?, TResult? playlist(PlaylistSearchResult value)?, TResult? user(UserSearchResult value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult track(TrackSearchResult value)?, TResult playlist(PlaylistSearchResult value)?, TResult user(UserSearchResult value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult track(Uri? artworkUrl, String? caption, bool commentable, double commentCount, DateTime createdAt, String? description, double downloadCount, double duration, double fullDuration, String? genre, int id, String? labelName, DateTime? lastModified, String? license, double likesCount, Uri permalinkUrl, double playbackCount, String? purchaseTitle, String? purchaseUrl, double repostsCount, String? tagList, String title, String waveformUrl, String monetizationModel, String policy, MiniUser user)?, TResult playlist(Uri? artworkUrl, DateTime createdAt, String? description, double duration, String? genre, int id, String? labelName, DateTime? lastModified, double likesCount, Uri permalinkUrl, double repostsCount, String? tagList, String title, bool isAlbum, MiniUser user, double trackCount)?, TResult user(Uri? avatarUrl, Uri? bannerLink, Uri? bannerUrl, String? city, double commentsCount, String? countryCode, DateTime createdAt, String? description, double followersCount, double followingsCount, String? firstName, String? fullName, double groupsCount, int id, DateTime? lastModified, String? lastName, double likesCount, double playlistLikesCount, Uri permalinkUrl, double playlistCount, double repostsCount, double trackCount, String username, bool isVerified)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult track(Uri? artworkUrl, String? caption, bool commentable, double commentCount, DateTime createdAt, String? description, double downloadCount, double duration, double fullDuration, String? genre, int id, String? labelName, DateTime? lastModified, String? license, double likesCount, Uri permalinkUrl, double playbackCount, String? purchaseTitle, String? purchaseUrl, double repostsCount, String? tagList, String title, String waveformUrl, String monetizationModel, String policy, MiniUser user), required TResult playlist(Uri? artworkUrl, DateTime createdAt, String? description, double duration, String? genre, int id, String? labelName, DateTime? lastModified, double likesCount, Uri permalinkUrl, double repostsCount, String? tagList, String title, bool isAlbum, MiniUser user, double trackCount), required TResult user(Uri? avatarUrl, Uri? bannerLink, Uri? bannerUrl, String? city, double commentsCount, String? countryCode, DateTime createdAt, String? description, double followersCount, double followingsCount, String? firstName, String? fullName, double groupsCount, int id, DateTime? lastModified, String? lastName, double likesCount, double playlistLikesCount, Uri permalinkUrl, double playlistCount, double repostsCount, double trackCount, String username, bool isVerified)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? track(Uri? artworkUrl, String? caption, bool commentable, double commentCount, DateTime createdAt, String? description, double downloadCount, double duration, double fullDuration, String? genre, int id, String? labelName, DateTime? lastModified, String? license, double likesCount, Uri permalinkUrl, double playbackCount, String? purchaseTitle, String? purchaseUrl, double repostsCount, String? tagList, String title, String waveformUrl, String monetizationModel, String policy, MiniUser user)?, TResult? playlist(Uri? artworkUrl, DateTime createdAt, String? description, double duration, String? genre, int id, String? labelName, DateTime? lastModified, double likesCount, Uri permalinkUrl, double repostsCount, String? tagList, String title, bool isAlbum, MiniUser user, double trackCount)?, TResult? user(Uri? avatarUrl, Uri? bannerLink, Uri? bannerUrl, String? city, double commentsCount, String? countryCode, DateTime createdAt, String? description, double followersCount, double followingsCount, String? firstName, String? fullName, double groupsCount, int id, DateTime? lastModified, String? lastName, double likesCount, double playlistLikesCount, Uri permalinkUrl, double playlistCount, double repostsCount, double trackCount, String username, bool isVerified)?}) → TResult?
inherited

Operators

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