when<TResult extends Object?> method
- @optionalTypeArgs
- 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(),
- 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,
inherited
Implementation
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(
Uri? artworkUrl,
String? caption,
bool commentable,
@JsonKey(defaultValue: 0) double commentCount,
DateTime createdAt,
String? description,
@JsonKey(defaultValue: 0) double downloadCount,
double duration,
double fullDuration,
String? genre,
int id,
String? labelName,
DateTime? lastModified,
String? license,
@JsonKey(defaultValue: 0) double likesCount,
Uri permalinkUrl,
@JsonKey(defaultValue: 0) double playbackCount,
String? purchaseTitle,
String? purchaseUrl,
@JsonKey(defaultValue: 0) double repostsCount,
String? tagList,
String title,
String waveformUrl,
String monetizationModel,
String policy,
MiniUser user)
track,
required TResult Function(
Uri? artworkUrl,
DateTime createdAt,
String? description,
double duration,
String? genre,
int id,
String? labelName,
DateTime? lastModified,
@JsonKey(defaultValue: 0) double likesCount,
Uri permalinkUrl,
@JsonKey(defaultValue: 0) double repostsCount,
String? tagList,
String title,
bool isAlbum,
MiniUser user,
@JsonKey(defaultValue: 0) double trackCount)
playlist,
required TResult Function(
Uri? avatarUrl,
@JsonKey(readValue: _readBannerLink) Uri? bannerLink,
@JsonKey(readValue: _readBannerUrl) Uri? bannerUrl,
String? city,
@JsonKey(defaultValue: 0) double commentsCount,
String? countryCode,
DateTime createdAt,
String? description,
double followersCount,
double followingsCount,
String? firstName,
String? fullName,
@JsonKey(defaultValue: 0) double groupsCount,
int id,
DateTime? lastModified,
String? lastName,
@JsonKey(defaultValue: 0) double likesCount,
@JsonKey(defaultValue: 0) double playlistLikesCount,
Uri permalinkUrl,
@JsonKey(defaultValue: 0) double playlistCount,
@JsonKey(defaultValue: 0) double repostsCount,
@JsonKey(defaultValue: 0) double trackCount,
String username,
@JsonKey(name: 'verified') bool isVerified)
user,
}) =>
throw _privateConstructorUsedError;