2021-08-31 18:06:34 +02:00
// coverage:ignore-file
2021-07-19 00:47:22 +02:00
// GENERATED CODE - DO NOT MODIFY BY HAND
2022-02-01 00:55:55 +01:00
// ignore_for_file: type=lint
2021-07-19 00:47:22 +02:00
// 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. \n Please 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 ) | |
2021-11-12 21:04:53 +01:00
( other . runtimeType = = runtimeType & &
other is _ChannelLink & &
2021-12-14 06:38:56 +01:00
const DeepCollectionEquality ( ) . equals ( other . title , title ) & &
const DeepCollectionEquality ( ) . equals ( other . url , url ) & &
const DeepCollectionEquality ( ) . equals ( other . icon , icon ) ) ;
2021-07-19 00:47:22 +02:00
}
@ override
2021-12-14 06:38:56 +01:00
int get hashCode = > Object . hash (
runtimeType ,
const DeepCollectionEquality ( ) . hash ( title ) ,
const DeepCollectionEquality ( ) . hash ( url ) ,
const DeepCollectionEquality ( ) . hash ( icon ) ) ;
2021-07-19 00:47:22 +02:00
@ 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.
2021-11-12 21:04:53 +01:00
String get title ;
2021-07-19 00:47:22 +02:00
@ override
/// Link URL.
/// Already decoded with the YouTube shortener already taken out.
2021-11-12 21:04:53 +01:00
Uri get url ;
2021-07-19 00:47:22 +02:00
@ override
/// Link Icon URL.
2021-11-12 21:04:53 +01:00
Uri get icon ;
2021-07-19 00:47:22 +02:00
@ override
@ JsonKey ( ignore: true )
_ $ChannelLinkCopyWith < _ChannelLink > get copyWith = >
throw _privateConstructorUsedError ;
}