2024-05-09 00:41:19 -04:00
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint
// 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, unnecessary_question_mark
part of ' library_item_extras.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 information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models ' ) ;
/// @nodoc
mixin _ $LibraryItemExtras {
BookMinified ? get book = > throw _privateConstructorUsedError ;
2024-05-09 23:23:50 -04:00
String get heroTagSuffix = > throw _privateConstructorUsedError ;
Uint8List ? get coverImage = > throw _privateConstructorUsedError ;
2024-05-09 00:41:19 -04:00
2024-09-06 15:10:00 -04:00
/// Create a copy of LibraryItemExtras
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-05-09 00:41:19 -04:00
$LibraryItemExtrasCopyWith < LibraryItemExtras > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $LibraryItemExtrasCopyWith < $Res > {
factory $LibraryItemExtrasCopyWith (
LibraryItemExtras value , $Res Function ( LibraryItemExtras ) then ) =
_ $LibraryItemExtrasCopyWithImpl < $Res , LibraryItemExtras > ;
@ useResult
2024-05-09 23:23:50 -04:00
$Res call ( { BookMinified ? book , String heroTagSuffix , Uint8List ? coverImage } ) ;
2024-05-09 00:41:19 -04:00
}
/// @nodoc
class _ $LibraryItemExtrasCopyWithImpl < $Res , $Val extends LibraryItemExtras >
implements $LibraryItemExtrasCopyWith < $Res > {
_ $LibraryItemExtrasCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2024-09-06 15:10:00 -04:00
/// Create a copy of LibraryItemExtras
/// with the given fields replaced by the non-null parameter values.
2024-05-09 00:41:19 -04:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? book = freezed ,
2024-05-09 23:23:50 -04:00
Object ? heroTagSuffix = null ,
Object ? coverImage = freezed ,
2024-05-09 00:41:19 -04:00
} ) {
return _then ( _value . copyWith (
book: freezed = = book
? _value . book
: book // ignore: cast_nullable_to_non_nullable
as BookMinified ? ,
2024-05-09 23:23:50 -04:00
heroTagSuffix: null = = heroTagSuffix
2024-05-09 00:41:19 -04:00
? _value . heroTagSuffix
: heroTagSuffix // ignore: cast_nullable_to_non_nullable
2024-05-09 23:23:50 -04:00
as String ,
coverImage: freezed = = coverImage
? _value . coverImage
: coverImage // ignore: cast_nullable_to_non_nullable
as Uint8List ? ,
2024-05-09 00:41:19 -04:00
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $LibraryItemExtrasImplCopyWith < $Res >
implements $LibraryItemExtrasCopyWith < $Res > {
factory _ $ $LibraryItemExtrasImplCopyWith ( _ $LibraryItemExtrasImpl value ,
$Res Function ( _ $LibraryItemExtrasImpl ) then ) =
__ $ $LibraryItemExtrasImplCopyWithImpl < $Res > ;
@ override
@ useResult
2024-05-09 23:23:50 -04:00
$Res call ( { BookMinified ? book , String heroTagSuffix , Uint8List ? coverImage } ) ;
2024-05-09 00:41:19 -04:00
}
/// @nodoc
class __ $ $LibraryItemExtrasImplCopyWithImpl < $Res >
extends _ $LibraryItemExtrasCopyWithImpl < $Res , _ $LibraryItemExtrasImpl >
implements _ $ $LibraryItemExtrasImplCopyWith < $Res > {
__ $ $LibraryItemExtrasImplCopyWithImpl ( _ $LibraryItemExtrasImpl _value ,
$Res Function ( _ $LibraryItemExtrasImpl ) _then )
: super ( _value , _then ) ;
2024-09-06 15:10:00 -04:00
/// Create a copy of LibraryItemExtras
/// with the given fields replaced by the non-null parameter values.
2024-05-09 00:41:19 -04:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? book = freezed ,
2024-05-09 23:23:50 -04:00
Object ? heroTagSuffix = null ,
Object ? coverImage = freezed ,
2024-05-09 00:41:19 -04:00
} ) {
return _then ( _ $LibraryItemExtrasImpl (
book: freezed = = book
? _value . book
: book // ignore: cast_nullable_to_non_nullable
as BookMinified ? ,
2024-05-09 23:23:50 -04:00
heroTagSuffix: null = = heroTagSuffix
2024-05-09 00:41:19 -04:00
? _value . heroTagSuffix
: heroTagSuffix // ignore: cast_nullable_to_non_nullable
2024-05-09 23:23:50 -04:00
as String ,
coverImage: freezed = = coverImage
? _value . coverImage
: coverImage // ignore: cast_nullable_to_non_nullable
as Uint8List ? ,
2024-05-09 00:41:19 -04:00
) ) ;
}
}
/// @nodoc
2024-05-09 23:23:50 -04:00
class _ $LibraryItemExtrasImpl implements _LibraryItemExtras {
const _ $LibraryItemExtrasImpl (
{ this . book , this . heroTagSuffix = ' ' , this . coverImage } ) ;
2024-05-09 00:41:19 -04:00
@ override
final BookMinified ? book ;
@ override
2024-05-09 23:23:50 -04:00
@ JsonKey ( )
final String heroTagSuffix ;
@ override
final Uint8List ? coverImage ;
2024-05-09 00:41:19 -04:00
@ override
String toString ( ) {
2024-05-09 23:23:50 -04:00
return ' LibraryItemExtras(book: $ book , heroTagSuffix: $ heroTagSuffix , coverImage: $ coverImage ) ' ;
2024-05-09 00:41:19 -04:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $LibraryItemExtrasImpl & &
( identical ( other . book , book ) | | other . book = = book ) & &
( identical ( other . heroTagSuffix , heroTagSuffix ) | |
2024-05-09 23:23:50 -04:00
other . heroTagSuffix = = heroTagSuffix ) & &
const DeepCollectionEquality ( )
. equals ( other . coverImage , coverImage ) ) ;
2024-05-09 00:41:19 -04:00
}
@ override
2024-05-09 23:23:50 -04:00
int get hashCode = > Object . hash ( runtimeType , book , heroTagSuffix ,
const DeepCollectionEquality ( ) . hash ( coverImage ) ) ;
2024-05-09 00:41:19 -04:00
2024-09-06 15:10:00 -04:00
/// Create a copy of LibraryItemExtras
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-05-09 00:41:19 -04:00
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $LibraryItemExtrasImplCopyWith < _ $LibraryItemExtrasImpl > get copyWith = >
__ $ $LibraryItemExtrasImplCopyWithImpl < _ $LibraryItemExtrasImpl > (
this , _ $identity ) ;
}
abstract class _LibraryItemExtras implements LibraryItemExtras {
const factory _LibraryItemExtras (
{ final BookMinified ? book ,
2024-05-09 23:23:50 -04:00
final String heroTagSuffix ,
final Uint8List ? coverImage } ) = _ $LibraryItemExtrasImpl ;
2024-05-09 00:41:19 -04:00
@ override
BookMinified ? get book ;
@ override
2024-05-09 23:23:50 -04:00
String get heroTagSuffix ;
@ override
Uint8List ? get coverImage ;
2024-09-06 15:10:00 -04:00
/// Create a copy of LibraryItemExtras
/// with the given fields replaced by the non-null parameter values.
2024-05-09 00:41:19 -04:00
@ override
2024-09-06 15:10:00 -04:00
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-05-09 00:41:19 -04:00
_ $ $LibraryItemExtrasImplCopyWith < _ $LibraryItemExtrasImpl > get copyWith = >
throw _privateConstructorUsedError ;
}