youtube_explode/lib/src/channels/channel.dart

23 lines
448 B
Dart
Raw Normal View History

2020-06-03 13:18:37 +02:00
import 'channel_id.dart';
/// YouTube channel metadata.
class Channel {
/// Channel ID.
final ChannelId id;
/// Channel URL.
String get url => 'https://www.youtube.com/channel/$id';
/// Channel title.
final String title;
/// URL of the channel's logo image.
final String logoUrl;
/// Initializes an instance of [Channel]
Channel(this.id, this.title, this.logoUrl);
@override
String toString() => 'Channel ($title)';
}