when<TResult extends Object?> method
- @optionalTypeArgs
- required TResult video(),
- required TResult playlist(
- PlaylistId id,
- String title,
- int videoCount,
- List<
Thumbnail> thumbnails,
- required TResult channel(),
inherited
Implementation
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(
VideoId id,
String title,
String author,
String description,
String duration,
int viewCount,
List<Thumbnail> thumbnails,
String? uploadDate,
bool isLive,
String channelId)
video,
required TResult Function(PlaylistId id, String title, int videoCount,
List<Thumbnail> thumbnails)
playlist,
required TResult Function(ChannelId id, String name, String description,
int videoCount, List<Thumbnail> thumbnails)
channel,
}) =>
throw _privateConstructorUsedError;