maybeWhen<TResult extends Object?> method
- @optionalTypeArgs
- TResult video()?,
- TResult playlist(
- PlaylistId id,
- String title,
- int videoCount,
- List<
Thumbnail> thumbnails,
- TResult channel()?,
- required TResult orElse(),
inherited
Implementation
@optionalTypeArgs
TResult maybeWhen<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,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;