2024-03-10 16:26:04 +08: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 ' localization_ui_model.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 _ $LocalizationUIState {
String ? get selectedLanguage = > throw _privateConstructorUsedError ;
Map < String , ScLocalizationData > ? get apiLocalizationData = >
throw _privateConstructorUsedError ;
String get workingVersion = > throw _privateConstructorUsedError ;
MapEntry < bool , String > ? get patchStatus = > throw _privateConstructorUsedError ;
2024-05-05 14:59:07 +08:00
bool ? get isInstalledAdvanced = > throw _privateConstructorUsedError ;
2024-03-10 16:26:04 +08:00
List < String > ? get customizeList = > throw _privateConstructorUsedError ;
bool get enableCustomize = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$LocalizationUIStateCopyWith < LocalizationUIState > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $LocalizationUIStateCopyWith < $Res > {
factory $LocalizationUIStateCopyWith (
LocalizationUIState value , $Res Function ( LocalizationUIState ) then ) =
_ $LocalizationUIStateCopyWithImpl < $Res , LocalizationUIState > ;
@ useResult
$Res call (
{ String ? selectedLanguage ,
Map < String , ScLocalizationData > ? apiLocalizationData ,
String workingVersion ,
MapEntry < bool , String > ? patchStatus ,
2024-05-05 14:59:07 +08:00
bool ? isInstalledAdvanced ,
2024-03-10 16:26:04 +08:00
List < String > ? customizeList ,
bool enableCustomize } ) ;
}
/// @nodoc
class _ $LocalizationUIStateCopyWithImpl < $Res , $Val extends LocalizationUIState >
implements $LocalizationUIStateCopyWith < $Res > {
_ $LocalizationUIStateCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? selectedLanguage = freezed ,
Object ? apiLocalizationData = freezed ,
Object ? workingVersion = null ,
Object ? patchStatus = freezed ,
2024-05-05 14:59:07 +08:00
Object ? isInstalledAdvanced = freezed ,
2024-03-10 16:26:04 +08:00
Object ? customizeList = freezed ,
Object ? enableCustomize = null ,
} ) {
return _then ( _value . copyWith (
selectedLanguage: freezed = = selectedLanguage
? _value . selectedLanguage
: selectedLanguage // ignore: cast_nullable_to_non_nullable
as String ? ,
apiLocalizationData: freezed = = apiLocalizationData
? _value . apiLocalizationData
: apiLocalizationData // ignore: cast_nullable_to_non_nullable
as Map < String , ScLocalizationData > ? ,
workingVersion: null = = workingVersion
? _value . workingVersion
: workingVersion // ignore: cast_nullable_to_non_nullable
as String ,
patchStatus: freezed = = patchStatus
? _value . patchStatus
: patchStatus // ignore: cast_nullable_to_non_nullable
as MapEntry < bool , String > ? ,
2024-05-05 14:59:07 +08:00
isInstalledAdvanced: freezed = = isInstalledAdvanced
? _value . isInstalledAdvanced
: isInstalledAdvanced // ignore: cast_nullable_to_non_nullable
as bool ? ,
2024-03-10 16:26:04 +08:00
customizeList: freezed = = customizeList
? _value . customizeList
: customizeList // ignore: cast_nullable_to_non_nullable
as List < String > ? ,
enableCustomize: null = = enableCustomize
? _value . enableCustomize
: enableCustomize // ignore: cast_nullable_to_non_nullable
as bool ,
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $LocalizationUIStateImplCopyWith < $Res >
implements $LocalizationUIStateCopyWith < $Res > {
factory _ $ $LocalizationUIStateImplCopyWith ( _ $LocalizationUIStateImpl value ,
$Res Function ( _ $LocalizationUIStateImpl ) then ) =
__ $ $LocalizationUIStateImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call (
{ String ? selectedLanguage ,
Map < String , ScLocalizationData > ? apiLocalizationData ,
String workingVersion ,
MapEntry < bool , String > ? patchStatus ,
2024-05-05 14:59:07 +08:00
bool ? isInstalledAdvanced ,
2024-03-10 16:26:04 +08:00
List < String > ? customizeList ,
bool enableCustomize } ) ;
}
/// @nodoc
class __ $ $LocalizationUIStateImplCopyWithImpl < $Res >
extends _ $LocalizationUIStateCopyWithImpl < $Res , _ $LocalizationUIStateImpl >
implements _ $ $LocalizationUIStateImplCopyWith < $Res > {
__ $ $LocalizationUIStateImplCopyWithImpl ( _ $LocalizationUIStateImpl _value ,
$Res Function ( _ $LocalizationUIStateImpl ) _then )
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? selectedLanguage = freezed ,
Object ? apiLocalizationData = freezed ,
Object ? workingVersion = null ,
Object ? patchStatus = freezed ,
2024-05-05 14:59:07 +08:00
Object ? isInstalledAdvanced = freezed ,
2024-03-10 16:26:04 +08:00
Object ? customizeList = freezed ,
Object ? enableCustomize = null ,
} ) {
return _then ( _ $LocalizationUIStateImpl (
selectedLanguage: freezed = = selectedLanguage
? _value . selectedLanguage
: selectedLanguage // ignore: cast_nullable_to_non_nullable
as String ? ,
apiLocalizationData: freezed = = apiLocalizationData
? _value . _apiLocalizationData
: apiLocalizationData // ignore: cast_nullable_to_non_nullable
as Map < String , ScLocalizationData > ? ,
workingVersion: null = = workingVersion
? _value . workingVersion
: workingVersion // ignore: cast_nullable_to_non_nullable
as String ,
patchStatus: freezed = = patchStatus
? _value . patchStatus
: patchStatus // ignore: cast_nullable_to_non_nullable
as MapEntry < bool , String > ? ,
2024-05-05 14:59:07 +08:00
isInstalledAdvanced: freezed = = isInstalledAdvanced
? _value . isInstalledAdvanced
: isInstalledAdvanced // ignore: cast_nullable_to_non_nullable
as bool ? ,
2024-03-10 16:26:04 +08:00
customizeList: freezed = = customizeList
? _value . _customizeList
: customizeList // ignore: cast_nullable_to_non_nullable
as List < String > ? ,
enableCustomize: null = = enableCustomize
? _value . enableCustomize
: enableCustomize // ignore: cast_nullable_to_non_nullable
as bool ,
) ) ;
}
}
/// @nodoc
class _ $LocalizationUIStateImpl implements _LocalizationUIState {
2024-03-15 00:01:06 +08:00
_ $LocalizationUIStateImpl (
2024-03-10 16:26:04 +08:00
{ this . selectedLanguage ,
final Map < String , ScLocalizationData > ? apiLocalizationData ,
this . workingVersion = " " ,
this . patchStatus ,
2024-05-05 14:59:07 +08:00
this . isInstalledAdvanced ,
2024-03-10 16:26:04 +08:00
final List < String > ? customizeList ,
this . enableCustomize = false } )
: _apiLocalizationData = apiLocalizationData ,
_customizeList = customizeList ;
@ override
final String ? selectedLanguage ;
final Map < String , ScLocalizationData > ? _apiLocalizationData ;
@ override
Map < String , ScLocalizationData > ? get apiLocalizationData {
final value = _apiLocalizationData ;
if ( value = = null ) return null ;
if ( _apiLocalizationData is EqualUnmodifiableMapView )
return _apiLocalizationData ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView ( value ) ;
}
@ override
@ JsonKey ( )
final String workingVersion ;
@ override
final MapEntry < bool , String > ? patchStatus ;
2024-05-05 14:59:07 +08:00
@ override
final bool ? isInstalledAdvanced ;
2024-03-10 16:26:04 +08:00
final List < String > ? _customizeList ;
@ override
List < String > ? get customizeList {
final value = _customizeList ;
if ( value = = null ) return null ;
if ( _customizeList is EqualUnmodifiableListView ) return _customizeList ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( value ) ;
}
@ override
@ JsonKey ( )
final bool enableCustomize ;
@ override
String toString ( ) {
2024-05-05 14:59:07 +08:00
return ' LocalizationUIState(selectedLanguage: $ selectedLanguage , apiLocalizationData: $ apiLocalizationData , workingVersion: $ workingVersion , patchStatus: $ patchStatus , isInstalledAdvanced: $ isInstalledAdvanced , customizeList: $ customizeList , enableCustomize: $ enableCustomize ) ' ;
2024-03-10 16:26:04 +08:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $LocalizationUIStateImpl & &
( identical ( other . selectedLanguage , selectedLanguage ) | |
other . selectedLanguage = = selectedLanguage ) & &
const DeepCollectionEquality ( )
. equals ( other . _apiLocalizationData , _apiLocalizationData ) & &
( identical ( other . workingVersion , workingVersion ) | |
other . workingVersion = = workingVersion ) & &
( identical ( other . patchStatus , patchStatus ) | |
other . patchStatus = = patchStatus ) & &
2024-05-05 14:59:07 +08:00
( identical ( other . isInstalledAdvanced , isInstalledAdvanced ) | |
other . isInstalledAdvanced = = isInstalledAdvanced ) & &
2024-03-10 16:26:04 +08:00
const DeepCollectionEquality ( )
. equals ( other . _customizeList , _customizeList ) & &
( identical ( other . enableCustomize , enableCustomize ) | |
other . enableCustomize = = enableCustomize ) ) ;
}
@ override
int get hashCode = > Object . hash (
runtimeType ,
selectedLanguage ,
const DeepCollectionEquality ( ) . hash ( _apiLocalizationData ) ,
workingVersion ,
patchStatus ,
2024-05-05 14:59:07 +08:00
isInstalledAdvanced ,
2024-03-10 16:26:04 +08:00
const DeepCollectionEquality ( ) . hash ( _customizeList ) ,
enableCustomize ) ;
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $LocalizationUIStateImplCopyWith < _ $LocalizationUIStateImpl > get copyWith = >
__ $ $LocalizationUIStateImplCopyWithImpl < _ $LocalizationUIStateImpl > (
this , _ $identity ) ;
}
abstract class _LocalizationUIState implements LocalizationUIState {
2024-03-15 00:01:06 +08:00
factory _LocalizationUIState (
2024-03-10 16:26:04 +08:00
{ final String ? selectedLanguage ,
final Map < String , ScLocalizationData > ? apiLocalizationData ,
final String workingVersion ,
final MapEntry < bool , String > ? patchStatus ,
2024-05-05 14:59:07 +08:00
final bool ? isInstalledAdvanced ,
2024-03-10 16:26:04 +08:00
final List < String > ? customizeList ,
final bool enableCustomize } ) = _ $LocalizationUIStateImpl ;
@ override
String ? get selectedLanguage ;
@ override
Map < String , ScLocalizationData > ? get apiLocalizationData ;
@ override
String get workingVersion ;
@ override
MapEntry < bool , String > ? get patchStatus ;
@ override
2024-05-05 14:59:07 +08:00
bool ? get isInstalledAdvanced ;
@ override
2024-03-10 16:26:04 +08:00
List < String > ? get customizeList ;
@ override
bool get enableCustomize ;
@ override
@ JsonKey ( ignore: true )
_ $ $LocalizationUIStateImplCopyWith < _ $LocalizationUIStateImpl > get copyWith = >
throw _privateConstructorUsedError ;
}