maybeWhen<TResult extends Object?> method
- @optionalTypeArgs
- 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()?,
- 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(),
inherited
Implementation
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
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,
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,
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,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;