youtube_explode/lib/src/search/search_playlist.dart

25 lines
641 B
Dart
Raw Normal View History

2020-07-10 22:28:19 +02:00
import 'package:equatable/equatable.dart';
2020-06-13 22:54:53 +02:00
import '../playlists/playlist_id.dart';
/// Metadata related to a search query result (playlist)
2020-07-10 22:28:19 +02:00
class SearchPlaylist with EquatableMixin {
2020-06-13 22:54:53 +02:00
/// PlaylistId.
final PlaylistId playlistId;
/// Playlist title.
final String playlistTitle;
/// Playlist video count, cannot be greater than 50.
final int playlistVideoCount;
2020-06-14 12:14:21 +02:00
/// Initialize an instance of [SearchPlaylist]
2020-06-13 22:54:53 +02:00
SearchPlaylist(this.playlistId, this.playlistTitle, this.playlistVideoCount);
@override
String toString() => '(Playlist) $playlistTitle ($playlistId)';
2020-07-10 22:28:19 +02:00
@override
List<Object> get props => [playlistId];
2020-06-13 22:54:53 +02:00
}