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 ;
2024-09-04 20:50:23 +08:00
String get selectedChannel = > throw _privateConstructorUsedError ;
2024-03-10 16:26:04 +08:00
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 ;
2024-09-04 12:22:13 +08:00
/// Create a copy of LocalizationUIState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-03-10 16:26:04 +08:00
$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 ,
2024-09-04 20:50:23 +08:00
String selectedChannel ,
2024-03-10 16:26:04 +08:00
Map < String , ScLocalizationData > ? apiLocalizationData ,
String workingVersion ,
MapEntry < bool , String > ? patchStatus ,
2024-05-05 14:59:07 +08:00
bool ? isInstalledAdvanced ,
2024-05-05 20:58:58 +08:00
List < String > ? customizeList } ) ;
2024-03-10 16:26:04 +08:00
}
/// @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 ;
2024-09-04 12:22:13 +08:00
/// Create a copy of LocalizationUIState
/// with the given fields replaced by the non-null parameter values.
2024-03-10 16:26:04 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? selectedLanguage = freezed ,
2024-09-04 20:50:23 +08:00
Object ? selectedChannel = null ,
2024-03-10 16:26:04 +08:00
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 ,
} ) {
return _then ( _value . copyWith (
selectedLanguage: freezed = = selectedLanguage
? _value . selectedLanguage
: selectedLanguage // ignore: cast_nullable_to_non_nullable
as String ? ,
2024-09-04 20:50:23 +08:00
selectedChannel: null = = selectedChannel
? _value . selectedChannel
: selectedChannel // ignore: cast_nullable_to_non_nullable
as String ,
2024-03-10 16:26:04 +08:00
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 > ? ,
) 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 ,
2024-09-04 20:50:23 +08:00
String selectedChannel ,
2024-03-10 16:26:04 +08:00
Map < String , ScLocalizationData > ? apiLocalizationData ,
String workingVersion ,
MapEntry < bool , String > ? patchStatus ,
2024-05-05 14:59:07 +08:00
bool ? isInstalledAdvanced ,
2024-05-05 20:58:58 +08:00
List < String > ? customizeList } ) ;
2024-03-10 16:26:04 +08:00
}
/// @nodoc
class __ $ $LocalizationUIStateImplCopyWithImpl < $Res >
extends _ $LocalizationUIStateCopyWithImpl < $Res , _ $LocalizationUIStateImpl >
implements _ $ $LocalizationUIStateImplCopyWith < $Res > {
__ $ $LocalizationUIStateImplCopyWithImpl ( _ $LocalizationUIStateImpl _value ,
$Res Function ( _ $LocalizationUIStateImpl ) _then )
: super ( _value , _then ) ;
2024-09-04 12:22:13 +08:00
/// Create a copy of LocalizationUIState
/// with the given fields replaced by the non-null parameter values.
2024-03-10 16:26:04 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? selectedLanguage = freezed ,
2024-09-04 20:50:23 +08:00
Object ? selectedChannel = null ,
2024-03-10 16:26:04 +08:00
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 ,
} ) {
return _then ( _ $LocalizationUIStateImpl (
selectedLanguage: freezed = = selectedLanguage
? _value . selectedLanguage
: selectedLanguage // ignore: cast_nullable_to_non_nullable
as String ? ,
2024-09-04 20:50:23 +08:00
selectedChannel: null = = selectedChannel
? _value . selectedChannel
: selectedChannel // ignore: cast_nullable_to_non_nullable
as String ,
2024-03-10 16:26:04 +08:00
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 > ? ,
) ) ;
}
}
/// @nodoc
class _ $LocalizationUIStateImpl implements _LocalizationUIState {
2024-03-15 00:01:06 +08:00
_ $LocalizationUIStateImpl (
2024-03-10 16:26:04 +08:00
{ this . selectedLanguage ,
2024-09-04 20:50:23 +08:00
this . selectedChannel = " LIVE " ,
2024-03-10 16:26:04 +08:00
final Map < String , ScLocalizationData > ? apiLocalizationData ,
this . workingVersion = " " ,
this . patchStatus ,
2024-05-05 14:59:07 +08:00
this . isInstalledAdvanced ,
2024-05-05 20:58:58 +08:00
final List < String > ? customizeList } )
2024-03-10 16:26:04 +08:00
: _apiLocalizationData = apiLocalizationData ,
_customizeList = customizeList ;
@ override
final String ? selectedLanguage ;
2024-09-04 20:50:23 +08:00
@ override
@ JsonKey ( )
final String selectedChannel ;
2024-03-10 16:26:04 +08:00
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
String toString ( ) {
2024-09-04 20:50:23 +08:00
return ' LocalizationUIState(selectedLanguage: $ selectedLanguage , selectedChannel: $ selectedChannel , apiLocalizationData: $ apiLocalizationData , workingVersion: $ workingVersion , patchStatus: $ patchStatus , isInstalledAdvanced: $ isInstalledAdvanced , customizeList: $ customizeList ) ' ;
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 ) & &
2024-09-04 20:50:23 +08:00
( identical ( other . selectedChannel , selectedChannel ) | |
other . selectedChannel = = selectedChannel ) & &
2024-03-10 16:26:04 +08:00
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 ( )
2024-05-05 20:58:58 +08:00
. equals ( other . _customizeList , _customizeList ) ) ;
2024-03-10 16:26:04 +08:00
}
@ override
int get hashCode = > Object . hash (
runtimeType ,
selectedLanguage ,
2024-09-04 20:50:23 +08:00
selectedChannel ,
2024-03-10 16:26:04 +08:00
const DeepCollectionEquality ( ) . hash ( _apiLocalizationData ) ,
workingVersion ,
patchStatus ,
2024-05-05 14:59:07 +08:00
isInstalledAdvanced ,
2024-05-05 20:58:58 +08:00
const DeepCollectionEquality ( ) . hash ( _customizeList ) ) ;
2024-03-10 16:26:04 +08:00
2024-09-04 12:22:13 +08:00
/// Create a copy of LocalizationUIState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-03-10 16:26:04 +08:00
@ 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 ,
2024-09-04 20:50:23 +08:00
final String selectedChannel ,
2024-03-10 16:26:04 +08:00
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-05-05 20:58:58 +08:00
final List < String > ? customizeList } ) = _ $LocalizationUIStateImpl ;
2024-03-10 16:26:04 +08:00
@ override
String ? get selectedLanguage ;
@ override
2024-09-04 20:50:23 +08:00
String get selectedChannel ;
@ override
2024-03-10 16:26:04 +08:00
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 ;
2024-09-04 12:22:13 +08:00
/// Create a copy of LocalizationUIState
/// with the given fields replaced by the non-null parameter values.
2024-03-10 16:26:04 +08:00
@ override
2024-09-04 12:22:13 +08:00
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-03-10 16:26:04 +08:00
_ $ $LocalizationUIStateImplCopyWith < _ $LocalizationUIStateImpl > get copyWith = >
throw _privateConstructorUsedError ;
}