youtube_explode/lib/src/channels/channel.dart

31 lines
632 B
Dart

import 'package:equatable/equatable.dart';
import 'channel_id.dart';
/// YouTube channel metadata.
class Channel with EquatableMixin {
/// Channel ID.
final ChannelId id;
/// Channel URL.
String get url => 'https://www.youtube.com/channel/$id';
/// Channel title.
final String title;
/// Channel description
final String description;
/// URL of the channel's logo image.
final String logoUrl;
/// Initializes an instance of [Channel]
Channel(this.id, this.title, this.description, this.logoUrl);
@override
String toString() => 'Channel ($title)';
@override
List<Object> get props => [id];
}