youtube_explode/lib/src/channels/video_sorting.dart

18 lines
479 B
Dart
Raw Normal View History

2020-07-12 18:24:22 +02:00
/// Metadata about video are sorted with [ChannelClient.getUploadsFromPage]
class VideoSorting {
/// Code used to fetch the video.
/// Used internally.
final String code;
/// Sort from the newest video
static const VideoSorting newest = VideoSorting._('dd');
/// Sort from the oldest video.
static const oldest = VideoSorting._('da');
/// Sort from the most popular video.
static const popularity = VideoSorting._('p');
const VideoSorting._(this.code);
}