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