youtube_explode/lib/src/channels/channel_link.freezed.dart

195 lines
5.3 KiB
Dart

// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target
part of 'channel_link.dart';
// **************************************************************************
// FreezedGenerator
// **************************************************************************
T _$identity<T>(T value) => value;
final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
/// @nodoc
class _$ChannelLinkTearOff {
const _$ChannelLinkTearOff();
_ChannelLink call(String title, Uri url, Uri icon) {
return _ChannelLink(
title,
url,
icon,
);
}
}
/// @nodoc
const $ChannelLink = _$ChannelLinkTearOff();
/// @nodoc
mixin _$ChannelLink {
/// Link title.
String get title => throw _privateConstructorUsedError;
/// Link URL.
/// Already decoded with the YouTube shortener already taken out.
Uri get url => throw _privateConstructorUsedError;
/// Link Icon URL.
Uri get icon => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$ChannelLinkCopyWith<ChannelLink> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $ChannelLinkCopyWith<$Res> {
factory $ChannelLinkCopyWith(
ChannelLink value, $Res Function(ChannelLink) then) =
_$ChannelLinkCopyWithImpl<$Res>;
$Res call({String title, Uri url, Uri icon});
}
/// @nodoc
class _$ChannelLinkCopyWithImpl<$Res> implements $ChannelLinkCopyWith<$Res> {
_$ChannelLinkCopyWithImpl(this._value, this._then);
final ChannelLink _value;
// ignore: unused_field
final $Res Function(ChannelLink) _then;
@override
$Res call({
Object? title = freezed,
Object? url = freezed,
Object? icon = freezed,
}) {
return _then(_value.copyWith(
title: title == freezed
? _value.title
: title // ignore: cast_nullable_to_non_nullable
as String,
url: url == freezed
? _value.url
: url // ignore: cast_nullable_to_non_nullable
as Uri,
icon: icon == freezed
? _value.icon
: icon // ignore: cast_nullable_to_non_nullable
as Uri,
));
}
}
/// @nodoc
abstract class _$ChannelLinkCopyWith<$Res>
implements $ChannelLinkCopyWith<$Res> {
factory _$ChannelLinkCopyWith(
_ChannelLink value, $Res Function(_ChannelLink) then) =
__$ChannelLinkCopyWithImpl<$Res>;
@override
$Res call({String title, Uri url, Uri icon});
}
/// @nodoc
class __$ChannelLinkCopyWithImpl<$Res> extends _$ChannelLinkCopyWithImpl<$Res>
implements _$ChannelLinkCopyWith<$Res> {
__$ChannelLinkCopyWithImpl(
_ChannelLink _value, $Res Function(_ChannelLink) _then)
: super(_value, (v) => _then(v as _ChannelLink));
@override
_ChannelLink get _value => super._value as _ChannelLink;
@override
$Res call({
Object? title = freezed,
Object? url = freezed,
Object? icon = freezed,
}) {
return _then(_ChannelLink(
title == freezed
? _value.title
: title // ignore: cast_nullable_to_non_nullable
as String,
url == freezed
? _value.url
: url // ignore: cast_nullable_to_non_nullable
as Uri,
icon == freezed
? _value.icon
: icon // ignore: cast_nullable_to_non_nullable
as Uri,
));
}
}
/// @nodoc
class _$_ChannelLink implements _ChannelLink {
const _$_ChannelLink(this.title, this.url, this.icon);
@override
/// Link title.
final String title;
@override
/// Link URL.
/// Already decoded with the YouTube shortener already taken out.
final Uri url;
@override
/// Link Icon URL.
final Uri icon;
@override
String toString() {
return 'ChannelLink(title: $title, url: $url, icon: $icon)';
}
@override
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _ChannelLink &&
(identical(other.title, title) || other.title == title) &&
(identical(other.url, url) || other.url == url) &&
(identical(other.icon, icon) || other.icon == icon));
}
@override
int get hashCode => Object.hash(runtimeType, title, url, icon);
@JsonKey(ignore: true)
@override
_$ChannelLinkCopyWith<_ChannelLink> get copyWith =>
__$ChannelLinkCopyWithImpl<_ChannelLink>(this, _$identity);
}
abstract class _ChannelLink implements ChannelLink {
const factory _ChannelLink(String title, Uri url, Uri icon) = _$_ChannelLink;
@override
/// Link title.
String get title;
@override
/// Link URL.
/// Already decoded with the YouTube shortener already taken out.
Uri get url;
@override
/// Link Icon URL.
Uri get icon;
@override
@JsonKey(ignore: true)
_$ChannelLinkCopyWith<_ChannelLink> get copyWith =>
throw _privateConstructorUsedError;
}