youtube_explode/lib/src/channels/channel_link.dart

21 lines
451 B
Dart
Raw Normal View History

import 'package:freezed_annotation/freezed_annotation.dart';
2020-10-01 16:55:32 +02:00
part 'channel_link.freezed.dart';
2020-10-01 16:55:32 +02:00
/// Represents a channel link.
@freezed
class ChannelLink with _$ChannelLink {
2020-10-01 16:55:32 +02:00
/// Initialize an instance of [ChannelLink]
const factory ChannelLink(
/// Link title.
String title,
2020-10-01 16:55:32 +02:00
/// Link URL.
/// Already decoded with the YouTube shortener already taken out.
Uri url,
2020-10-17 14:45:42 +02:00
/// Link Icon URL.
Uri icon,
) = _ChannelLink;
2020-10-01 16:55:32 +02:00
}