2024-04-30 23:38:49 +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 ' ../selector.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 ' ) ;
2025-03-09 01:58:46 +08:00
/// @nodoc
mixin _ $VM2 < A , B > {
A get a = > throw _privateConstructorUsedError ;
B get b = > throw _privateConstructorUsedError ;
/// Create a copy of VM2
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$VM2CopyWith < A , B , VM2 < A , B > > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $VM2CopyWith < A , B , $Res > {
factory $VM2CopyWith ( VM2 < A , B > value , $Res Function ( VM2 < A , B > ) then ) =
_ $VM2CopyWithImpl < A , B , $Res , VM2 < A , B > > ;
@ useResult
$Res call ( { A a , B b } ) ;
}
/// @nodoc
class _ $VM2CopyWithImpl < A , B , $Res , $Val extends VM2 < A , B > >
implements $VM2CopyWith < A , B , $Res > {
_ $VM2CopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of VM2
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? a = freezed ,
Object ? b = freezed ,
} ) {
return _then ( _value . copyWith (
a: freezed = = a
? _value . a
: a // ignore: cast_nullable_to_non_nullable
as A ,
b: freezed = = b
? _value . b
: b // ignore: cast_nullable_to_non_nullable
as B ,
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $VM2ImplCopyWith < A , B , $Res >
implements $VM2CopyWith < A , B , $Res > {
factory _ $ $VM2ImplCopyWith (
_ $VM2Impl < A , B > value , $Res Function ( _ $VM2Impl < A , B > ) then ) =
__ $ $VM2ImplCopyWithImpl < A , B , $Res > ;
@ override
@ useResult
$Res call ( { A a , B b } ) ;
}
/// @nodoc
class __ $ $VM2ImplCopyWithImpl < A , B , $Res >
extends _ $VM2CopyWithImpl < A , B , $Res , _ $VM2Impl < A , B > >
implements _ $ $VM2ImplCopyWith < A , B , $Res > {
__ $ $VM2ImplCopyWithImpl (
_ $VM2Impl < A , B > _value , $Res Function ( _ $VM2Impl < A , B > ) _then )
: super ( _value , _then ) ;
/// Create a copy of VM2
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? a = freezed ,
Object ? b = freezed ,
} ) {
return _then ( _ $VM2Impl < A , B > (
a: freezed = = a
? _value . a
: a // ignore: cast_nullable_to_non_nullable
as A ,
b: freezed = = b
? _value . b
: b // ignore: cast_nullable_to_non_nullable
as B ,
) ) ;
}
}
/// @nodoc
class _ $VM2Impl < A , B > implements _VM2 < A , B > {
const _ $VM2Impl ( { required this . a , required this . b } ) ;
@ override
final A a ;
@ override
final B b ;
@ override
String toString ( ) {
return ' VM2< $ A , $ B >(a: $ a , b: $ b ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $VM2Impl < A , B > & &
const DeepCollectionEquality ( ) . equals ( other . a , a ) & &
const DeepCollectionEquality ( ) . equals ( other . b , b ) ) ;
}
@ override
int get hashCode = > Object . hash (
runtimeType ,
const DeepCollectionEquality ( ) . hash ( a ) ,
const DeepCollectionEquality ( ) . hash ( b ) ) ;
/// Create a copy of VM2
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $VM2ImplCopyWith < A , B , _ $VM2Impl < A , B > > get copyWith = >
__ $ $VM2ImplCopyWithImpl < A , B , _ $VM2Impl < A , B > > ( this , _ $identity ) ;
}
abstract class _VM2 < A , B > implements VM2 < A , B > {
const factory _VM2 ( { required final A a , required final B b } ) =
_ $VM2Impl < A , B > ;
@ override
A get a ;
@ override
B get b ;
/// Create a copy of VM2
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $VM2ImplCopyWith < A , B , _ $VM2Impl < A , B > > get copyWith = >
throw _privateConstructorUsedError ;
}
2025-03-12 17:15:31 +08:00
/// @nodoc
mixin _ $VM3 < A , B , C > {
A get a = > throw _privateConstructorUsedError ;
B get b = > throw _privateConstructorUsedError ;
C get c = > throw _privateConstructorUsedError ;
/// Create a copy of VM3
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$VM3CopyWith < A , B , C , VM3 < A , B , C > > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $VM3CopyWith < A , B , C , $Res > {
factory $VM3CopyWith ( VM3 < A , B , C > value , $Res Function ( VM3 < A , B , C > ) then ) =
_ $VM3CopyWithImpl < A , B , C , $Res , VM3 < A , B , C > > ;
@ useResult
$Res call ( { A a , B b , C c } ) ;
}
/// @nodoc
class _ $VM3CopyWithImpl < A , B , C , $Res , $Val extends VM3 < A , B , C > >
implements $VM3CopyWith < A , B , C , $Res > {
_ $VM3CopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of VM3
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? a = freezed ,
Object ? b = freezed ,
Object ? c = freezed ,
} ) {
return _then ( _value . copyWith (
a: freezed = = a
? _value . a
: a // ignore: cast_nullable_to_non_nullable
as A ,
b: freezed = = b
? _value . b
: b // ignore: cast_nullable_to_non_nullable
as B ,
c: freezed = = c
? _value . c
: c // ignore: cast_nullable_to_non_nullable
as C ,
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $VM3ImplCopyWith < A , B , C , $Res >
implements $VM3CopyWith < A , B , C , $Res > {
factory _ $ $VM3ImplCopyWith (
_ $VM3Impl < A , B , C > value , $Res Function ( _ $VM3Impl < A , B , C > ) then ) =
__ $ $VM3ImplCopyWithImpl < A , B , C , $Res > ;
@ override
@ useResult
$Res call ( { A a , B b , C c } ) ;
}
/// @nodoc
class __ $ $VM3ImplCopyWithImpl < A , B , C , $Res >
extends _ $VM3CopyWithImpl < A , B , C , $Res , _ $VM3Impl < A , B , C > >
implements _ $ $VM3ImplCopyWith < A , B , C , $Res > {
__ $ $VM3ImplCopyWithImpl (
_ $VM3Impl < A , B , C > _value , $Res Function ( _ $VM3Impl < A , B , C > ) _then )
: super ( _value , _then ) ;
/// Create a copy of VM3
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? a = freezed ,
Object ? b = freezed ,
Object ? c = freezed ,
} ) {
return _then ( _ $VM3Impl < A , B , C > (
a: freezed = = a
? _value . a
: a // ignore: cast_nullable_to_non_nullable
as A ,
b: freezed = = b
? _value . b
: b // ignore: cast_nullable_to_non_nullable
as B ,
c: freezed = = c
? _value . c
: c // ignore: cast_nullable_to_non_nullable
as C ,
) ) ;
}
}
/// @nodoc
class _ $VM3Impl < A , B , C > implements _VM3 < A , B , C > {
const _ $VM3Impl ( { required this . a , required this . b , required this . c } ) ;
@ override
final A a ;
@ override
final B b ;
@ override
final C c ;
@ override
String toString ( ) {
return ' VM3< $ A , $ B , $ C >(a: $ a , b: $ b , c: $ c ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $VM3Impl < A , B , C > & &
const DeepCollectionEquality ( ) . equals ( other . a , a ) & &
const DeepCollectionEquality ( ) . equals ( other . b , b ) & &
const DeepCollectionEquality ( ) . equals ( other . c , c ) ) ;
}
@ override
int get hashCode = > Object . hash (
runtimeType ,
const DeepCollectionEquality ( ) . hash ( a ) ,
const DeepCollectionEquality ( ) . hash ( b ) ,
const DeepCollectionEquality ( ) . hash ( c ) ) ;
/// Create a copy of VM3
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $VM3ImplCopyWith < A , B , C , _ $VM3Impl < A , B , C > > get copyWith = >
__ $ $VM3ImplCopyWithImpl < A , B , C , _ $VM3Impl < A , B , C > > ( this , _ $identity ) ;
}
abstract class _VM3 < A , B , C > implements VM3 < A , B , C > {
const factory _VM3 (
{ required final A a ,
required final B b ,
required final C c } ) = _ $VM3Impl < A , B , C > ;
@ override
A get a ;
@ override
B get b ;
@ override
C get c ;
/// Create a copy of VM3
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $VM3ImplCopyWith < A , B , C , _ $VM3Impl < A , B , C > > get copyWith = >
throw _privateConstructorUsedError ;
}
2024-04-30 23:38:49 +08:00
/// @nodoc
mixin _ $StartButtonSelectorState {
bool get isInit = > throw _privateConstructorUsedError ;
bool get hasProfile = > throw _privateConstructorUsedError ;
2024-11-09 20:17:57 +08:00
/// Create a copy of StartButtonSelectorState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-04-30 23:38:49 +08:00
$StartButtonSelectorStateCopyWith < StartButtonSelectorState > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $StartButtonSelectorStateCopyWith < $Res > {
factory $StartButtonSelectorStateCopyWith ( StartButtonSelectorState value ,
$Res Function ( StartButtonSelectorState ) then ) =
_ $StartButtonSelectorStateCopyWithImpl < $Res , StartButtonSelectorState > ;
@ useResult
$Res call ( { bool isInit , bool hasProfile } ) ;
}
/// @nodoc
class _ $StartButtonSelectorStateCopyWithImpl < $Res ,
$Val extends StartButtonSelectorState >
implements $StartButtonSelectorStateCopyWith < $Res > {
_ $StartButtonSelectorStateCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2024-11-09 20:17:57 +08:00
/// Create a copy of StartButtonSelectorState
/// with the given fields replaced by the non-null parameter values.
2024-04-30 23:38:49 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? isInit = null ,
Object ? hasProfile = null ,
} ) {
return _then ( _value . copyWith (
isInit: null = = isInit
? _value . isInit
: isInit // ignore: cast_nullable_to_non_nullable
as bool ,
hasProfile: null = = hasProfile
? _value . hasProfile
: hasProfile // ignore: cast_nullable_to_non_nullable
as bool ,
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $StartButtonSelectorStateImplCopyWith < $Res >
implements $StartButtonSelectorStateCopyWith < $Res > {
factory _ $ $StartButtonSelectorStateImplCopyWith (
_ $StartButtonSelectorStateImpl value ,
$Res Function ( _ $StartButtonSelectorStateImpl ) then ) =
__ $ $StartButtonSelectorStateImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call ( { bool isInit , bool hasProfile } ) ;
}
/// @nodoc
class __ $ $StartButtonSelectorStateImplCopyWithImpl < $Res >
extends _ $StartButtonSelectorStateCopyWithImpl < $Res ,
_ $StartButtonSelectorStateImpl >
implements _ $ $StartButtonSelectorStateImplCopyWith < $Res > {
__ $ $StartButtonSelectorStateImplCopyWithImpl (
_ $StartButtonSelectorStateImpl _value ,
$Res Function ( _ $StartButtonSelectorStateImpl ) _then )
: super ( _value , _then ) ;
2024-11-09 20:17:57 +08:00
/// Create a copy of StartButtonSelectorState
/// with the given fields replaced by the non-null parameter values.
2024-04-30 23:38:49 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? isInit = null ,
Object ? hasProfile = null ,
} ) {
return _then ( _ $StartButtonSelectorStateImpl (
isInit: null = = isInit
? _value . isInit
: isInit // ignore: cast_nullable_to_non_nullable
as bool ,
hasProfile: null = = hasProfile
? _value . hasProfile
: hasProfile // ignore: cast_nullable_to_non_nullable
as bool ,
) ) ;
}
}
/// @nodoc
class _ $StartButtonSelectorStateImpl implements _StartButtonSelectorState {
const _ $StartButtonSelectorStateImpl (
{ required this . isInit , required this . hasProfile } ) ;
@ override
final bool isInit ;
@ override
final bool hasProfile ;
@ override
String toString ( ) {
return ' StartButtonSelectorState(isInit: $ isInit , hasProfile: $ hasProfile ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $StartButtonSelectorStateImpl & &
( identical ( other . isInit , isInit ) | | other . isInit = = isInit ) & &
( identical ( other . hasProfile , hasProfile ) | |
other . hasProfile = = hasProfile ) ) ;
}
@ override
int get hashCode = > Object . hash ( runtimeType , isInit , hasProfile ) ;
2024-11-09 20:17:57 +08:00
/// Create a copy of StartButtonSelectorState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-04-30 23:38:49 +08:00
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $StartButtonSelectorStateImplCopyWith < _ $StartButtonSelectorStateImpl >
get copyWith = > __ $ $StartButtonSelectorStateImplCopyWithImpl <
_ $StartButtonSelectorStateImpl > ( this , _ $identity ) ;
}
abstract class _StartButtonSelectorState implements StartButtonSelectorState {
const factory _StartButtonSelectorState (
{ required final bool isInit ,
required final bool hasProfile } ) = _ $StartButtonSelectorStateImpl ;
@ override
bool get isInit ;
@ override
bool get hasProfile ;
2024-11-09 20:17:57 +08:00
/// Create a copy of StartButtonSelectorState
/// with the given fields replaced by the non-null parameter values.
2024-04-30 23:38:49 +08:00
@ override
2024-11-09 20:17:57 +08:00
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-04-30 23:38:49 +08:00
_ $ $StartButtonSelectorStateImplCopyWith < _ $StartButtonSelectorStateImpl >
get copyWith = > throw _privateConstructorUsedError ;
}
/// @nodoc
mixin _ $ProfilesSelectorState {
List < Profile > get profiles = > throw _privateConstructorUsedError ;
String ? get currentProfileId = > throw _privateConstructorUsedError ;
2024-08-13 21:42:23 +08:00
int get columns = > throw _privateConstructorUsedError ;
2024-04-30 23:38:49 +08:00
2024-11-09 20:17:57 +08:00
/// Create a copy of ProfilesSelectorState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-04-30 23:38:49 +08:00
$ProfilesSelectorStateCopyWith < ProfilesSelectorState > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $ProfilesSelectorStateCopyWith < $Res > {
factory $ProfilesSelectorStateCopyWith ( ProfilesSelectorState value ,
$Res Function ( ProfilesSelectorState ) then ) =
_ $ProfilesSelectorStateCopyWithImpl < $Res , ProfilesSelectorState > ;
@ useResult
2024-08-13 21:42:23 +08:00
$Res call ( { List < Profile > profiles , String ? currentProfileId , int columns } ) ;
2024-04-30 23:38:49 +08:00
}
/// @nodoc
class _ $ProfilesSelectorStateCopyWithImpl < $Res ,
$Val extends ProfilesSelectorState >
implements $ProfilesSelectorStateCopyWith < $Res > {
_ $ProfilesSelectorStateCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ProfilesSelectorState
/// with the given fields replaced by the non-null parameter values.
2024-04-30 23:38:49 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? profiles = null ,
Object ? currentProfileId = freezed ,
2024-08-13 21:42:23 +08:00
Object ? columns = null ,
2024-04-30 23:38:49 +08:00
} ) {
return _then ( _value . copyWith (
profiles: null = = profiles
? _value . profiles
: profiles // ignore: cast_nullable_to_non_nullable
as List < Profile > ,
currentProfileId: freezed = = currentProfileId
? _value . currentProfileId
: currentProfileId // ignore: cast_nullable_to_non_nullable
as String ? ,
2024-08-13 21:42:23 +08:00
columns: null = = columns
? _value . columns
: columns // ignore: cast_nullable_to_non_nullable
as int ,
2024-04-30 23:38:49 +08:00
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $ProfilesSelectorStateImplCopyWith < $Res >
implements $ProfilesSelectorStateCopyWith < $Res > {
factory _ $ $ProfilesSelectorStateImplCopyWith (
_ $ProfilesSelectorStateImpl value ,
$Res Function ( _ $ProfilesSelectorStateImpl ) then ) =
__ $ $ProfilesSelectorStateImplCopyWithImpl < $Res > ;
@ override
@ useResult
2024-08-13 21:42:23 +08:00
$Res call ( { List < Profile > profiles , String ? currentProfileId , int columns } ) ;
2024-04-30 23:38:49 +08:00
}
/// @nodoc
class __ $ $ProfilesSelectorStateImplCopyWithImpl < $Res >
extends _ $ProfilesSelectorStateCopyWithImpl < $Res ,
_ $ProfilesSelectorStateImpl >
implements _ $ $ProfilesSelectorStateImplCopyWith < $Res > {
__ $ $ProfilesSelectorStateImplCopyWithImpl ( _ $ProfilesSelectorStateImpl _value ,
$Res Function ( _ $ProfilesSelectorStateImpl ) _then )
: super ( _value , _then ) ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ProfilesSelectorState
/// with the given fields replaced by the non-null parameter values.
2024-04-30 23:38:49 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? profiles = null ,
Object ? currentProfileId = freezed ,
2024-08-13 21:42:23 +08:00
Object ? columns = null ,
2024-04-30 23:38:49 +08:00
} ) {
return _then ( _ $ProfilesSelectorStateImpl (
profiles: null = = profiles
? _value . _profiles
: profiles // ignore: cast_nullable_to_non_nullable
as List < Profile > ,
currentProfileId: freezed = = currentProfileId
? _value . currentProfileId
: currentProfileId // ignore: cast_nullable_to_non_nullable
as String ? ,
2024-08-13 21:42:23 +08:00
columns: null = = columns
? _value . columns
: columns // ignore: cast_nullable_to_non_nullable
as int ,
2024-04-30 23:38:49 +08:00
) ) ;
}
}
/// @nodoc
class _ $ProfilesSelectorStateImpl implements _ProfilesSelectorState {
const _ $ProfilesSelectorStateImpl (
2024-05-20 15:15:09 +08:00
{ required final List < Profile > profiles ,
required this . currentProfileId ,
2024-08-13 21:42:23 +08:00
required this . columns } )
2024-04-30 23:38:49 +08:00
: _profiles = profiles ;
final List < Profile > _profiles ;
@ override
List < Profile > get profiles {
if ( _profiles is EqualUnmodifiableListView ) return _profiles ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _profiles ) ;
}
@ override
final String ? currentProfileId ;
2024-05-20 15:15:09 +08:00
@ override
2024-08-13 21:42:23 +08:00
final int columns ;
2024-04-30 23:38:49 +08:00
@ override
String toString ( ) {
2024-08-13 21:42:23 +08:00
return ' ProfilesSelectorState(profiles: $ profiles , currentProfileId: $ currentProfileId , columns: $ columns ) ' ;
2024-04-30 23:38:49 +08:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $ProfilesSelectorStateImpl & &
const DeepCollectionEquality ( ) . equals ( other . _profiles , _profiles ) & &
( identical ( other . currentProfileId , currentProfileId ) | |
2024-05-20 15:15:09 +08:00
other . currentProfileId = = currentProfileId ) & &
2024-08-13 21:42:23 +08:00
( identical ( other . columns , columns ) | | other . columns = = columns ) ) ;
2024-04-30 23:38:49 +08:00
}
@ override
2024-05-20 15:15:09 +08:00
int get hashCode = > Object . hash (
runtimeType ,
const DeepCollectionEquality ( ) . hash ( _profiles ) ,
currentProfileId ,
2024-08-13 21:42:23 +08:00
columns ) ;
2024-04-30 23:38:49 +08:00
2024-11-09 20:17:57 +08:00
/// Create a copy of ProfilesSelectorState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-04-30 23:38:49 +08:00
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $ProfilesSelectorStateImplCopyWith < _ $ProfilesSelectorStateImpl >
get copyWith = > __ $ $ProfilesSelectorStateImplCopyWithImpl <
_ $ProfilesSelectorStateImpl > ( this , _ $identity ) ;
}
abstract class _ProfilesSelectorState implements ProfilesSelectorState {
const factory _ProfilesSelectorState (
{ required final List < Profile > profiles ,
2024-05-20 15:15:09 +08:00
required final String ? currentProfileId ,
2024-08-13 21:42:23 +08:00
required final int columns } ) = _ $ProfilesSelectorStateImpl ;
2024-04-30 23:38:49 +08:00
@ override
List < Profile > get profiles ;
@ override
String ? get currentProfileId ;
@ override
2024-08-13 21:42:23 +08:00
int get columns ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ProfilesSelectorState
/// with the given fields replaced by the non-null parameter values.
2024-05-20 15:15:09 +08:00
@ override
2024-11-09 20:17:57 +08:00
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-04-30 23:38:49 +08:00
_ $ $ProfilesSelectorStateImplCopyWith < _ $ProfilesSelectorStateImpl >
get copyWith = > throw _privateConstructorUsedError ;
}
2024-08-15 16:18:00 +08:00
/// @nodoc
mixin _ $NetworkDetectionState {
2025-03-12 17:15:31 +08:00
bool get isLoading = > throw _privateConstructorUsedError ;
2024-08-15 16:18:00 +08:00
bool get isTesting = > throw _privateConstructorUsedError ;
IpInfo ? get ipInfo = > throw _privateConstructorUsedError ;
2024-11-09 20:17:57 +08:00
/// Create a copy of NetworkDetectionState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-08-15 16:18:00 +08:00
$NetworkDetectionStateCopyWith < NetworkDetectionState > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $NetworkDetectionStateCopyWith < $Res > {
factory $NetworkDetectionStateCopyWith ( NetworkDetectionState value ,
$Res Function ( NetworkDetectionState ) then ) =
_ $NetworkDetectionStateCopyWithImpl < $Res , NetworkDetectionState > ;
@ useResult
2025-03-12 17:15:31 +08:00
$Res call ( { bool isLoading , bool isTesting , IpInfo ? ipInfo } ) ;
2024-08-15 16:18:00 +08:00
}
/// @nodoc
class _ $NetworkDetectionStateCopyWithImpl < $Res ,
$Val extends NetworkDetectionState >
implements $NetworkDetectionStateCopyWith < $Res > {
_ $NetworkDetectionStateCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2024-11-09 20:17:57 +08:00
/// Create a copy of NetworkDetectionState
/// with the given fields replaced by the non-null parameter values.
2024-08-15 16:18:00 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
2025-03-12 17:15:31 +08:00
Object ? isLoading = null ,
2024-08-15 16:18:00 +08:00
Object ? isTesting = null ,
Object ? ipInfo = freezed ,
} ) {
return _then ( _value . copyWith (
2025-03-12 17:15:31 +08:00
isLoading: null = = isLoading
? _value . isLoading
: isLoading // ignore: cast_nullable_to_non_nullable
as bool ,
2024-08-15 16:18:00 +08:00
isTesting: null = = isTesting
? _value . isTesting
: isTesting // ignore: cast_nullable_to_non_nullable
as bool ,
ipInfo: freezed = = ipInfo
? _value . ipInfo
: ipInfo // ignore: cast_nullable_to_non_nullable
as IpInfo ? ,
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $NetworkDetectionStateImplCopyWith < $Res >
implements $NetworkDetectionStateCopyWith < $Res > {
factory _ $ $NetworkDetectionStateImplCopyWith (
_ $NetworkDetectionStateImpl value ,
$Res Function ( _ $NetworkDetectionStateImpl ) then ) =
__ $ $NetworkDetectionStateImplCopyWithImpl < $Res > ;
@ override
@ useResult
2025-03-12 17:15:31 +08:00
$Res call ( { bool isLoading , bool isTesting , IpInfo ? ipInfo } ) ;
2024-08-15 16:18:00 +08:00
}
/// @nodoc
class __ $ $NetworkDetectionStateImplCopyWithImpl < $Res >
extends _ $NetworkDetectionStateCopyWithImpl < $Res ,
_ $NetworkDetectionStateImpl >
implements _ $ $NetworkDetectionStateImplCopyWith < $Res > {
__ $ $NetworkDetectionStateImplCopyWithImpl ( _ $NetworkDetectionStateImpl _value ,
$Res Function ( _ $NetworkDetectionStateImpl ) _then )
: super ( _value , _then ) ;
2024-11-09 20:17:57 +08:00
/// Create a copy of NetworkDetectionState
/// with the given fields replaced by the non-null parameter values.
2024-08-15 16:18:00 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
2025-03-12 17:15:31 +08:00
Object ? isLoading = null ,
2024-08-15 16:18:00 +08:00
Object ? isTesting = null ,
Object ? ipInfo = freezed ,
} ) {
return _then ( _ $NetworkDetectionStateImpl (
2025-03-12 17:15:31 +08:00
isLoading: null = = isLoading
? _value . isLoading
: isLoading // ignore: cast_nullable_to_non_nullable
as bool ,
2024-08-15 16:18:00 +08:00
isTesting: null = = isTesting
? _value . isTesting
: isTesting // ignore: cast_nullable_to_non_nullable
as bool ,
ipInfo: freezed = = ipInfo
? _value . ipInfo
: ipInfo // ignore: cast_nullable_to_non_nullable
as IpInfo ? ,
) ) ;
}
}
/// @nodoc
class _ $NetworkDetectionStateImpl implements _NetworkDetectionState {
const _ $NetworkDetectionStateImpl (
2025-03-12 17:15:31 +08:00
{ required this . isLoading , required this . isTesting , required this . ipInfo } ) ;
2024-08-15 16:18:00 +08:00
2025-03-12 17:15:31 +08:00
@ override
final bool isLoading ;
2024-08-15 16:18:00 +08:00
@ override
final bool isTesting ;
@ override
final IpInfo ? ipInfo ;
@ override
String toString ( ) {
2025-03-12 17:15:31 +08:00
return ' NetworkDetectionState(isLoading: $ isLoading , isTesting: $ isTesting , ipInfo: $ ipInfo ) ' ;
2024-08-15 16:18:00 +08:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $NetworkDetectionStateImpl & &
2025-03-12 17:15:31 +08:00
( identical ( other . isLoading , isLoading ) | |
other . isLoading = = isLoading ) & &
2024-08-15 16:18:00 +08:00
( identical ( other . isTesting , isTesting ) | |
other . isTesting = = isTesting ) & &
( identical ( other . ipInfo , ipInfo ) | | other . ipInfo = = ipInfo ) ) ;
}
@ override
2025-03-12 17:15:31 +08:00
int get hashCode = > Object . hash ( runtimeType , isLoading , isTesting , ipInfo ) ;
2024-08-15 16:18:00 +08:00
2024-11-09 20:17:57 +08:00
/// Create a copy of NetworkDetectionState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-08-15 16:18:00 +08:00
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $NetworkDetectionStateImplCopyWith < _ $NetworkDetectionStateImpl >
get copyWith = > __ $ $NetworkDetectionStateImplCopyWithImpl <
_ $NetworkDetectionStateImpl > ( this , _ $identity ) ;
}
abstract class _NetworkDetectionState implements NetworkDetectionState {
const factory _NetworkDetectionState (
2025-03-12 17:15:31 +08:00
{ required final bool isLoading ,
required final bool isTesting ,
2024-08-15 16:18:00 +08:00
required final IpInfo ? ipInfo } ) = _ $NetworkDetectionStateImpl ;
2025-03-12 17:15:31 +08:00
@ override
bool get isLoading ;
2024-08-15 16:18:00 +08:00
@ override
bool get isTesting ;
@ override
IpInfo ? get ipInfo ;
2024-11-09 20:17:57 +08:00
/// Create a copy of NetworkDetectionState
/// with the given fields replaced by the non-null parameter values.
2024-08-15 16:18:00 +08:00
@ override
2024-11-09 20:17:57 +08:00
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-08-15 16:18:00 +08:00
_ $ $NetworkDetectionStateImplCopyWith < _ $NetworkDetectionStateImpl >
get copyWith = > throw _privateConstructorUsedError ;
}
2024-04-30 23:38:49 +08:00
/// @nodoc
2025-02-09 18:39:38 +08:00
mixin _ $TrayState {
Mode get mode = > throw _privateConstructorUsedError ;
int get port = > throw _privateConstructorUsedError ;
bool get autoLaunch = > throw _privateConstructorUsedError ;
bool get systemProxy = > throw _privateConstructorUsedError ;
bool get tunEnable = > throw _privateConstructorUsedError ;
bool get isStart = > throw _privateConstructorUsedError ;
2024-04-30 23:38:49 +08:00
String ? get locale = > throw _privateConstructorUsedError ;
2025-02-09 18:39:38 +08:00
Brightness ? get brightness = > throw _privateConstructorUsedError ;
List < Group > get groups = > throw _privateConstructorUsedError ;
Map < String , String > get selectedMap = > throw _privateConstructorUsedError ;
2024-04-30 23:38:49 +08:00
2025-02-09 18:39:38 +08:00
/// Create a copy of TrayState
2024-11-09 20:17:57 +08:00
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2025-02-09 18:39:38 +08:00
$TrayStateCopyWith < TrayState > get copyWith = >
2024-04-30 23:38:49 +08:00
throw _privateConstructorUsedError ;
}
/// @nodoc
2025-02-09 18:39:38 +08:00
abstract class $TrayStateCopyWith < $Res > {
factory $TrayStateCopyWith ( TrayState value , $Res Function ( TrayState ) then ) =
_ $TrayStateCopyWithImpl < $Res , TrayState > ;
2024-04-30 23:38:49 +08:00
@ useResult
2024-08-01 23:51:00 +08:00
$Res call (
2025-02-09 18:39:38 +08:00
{ Mode mode ,
int port ,
bool autoLaunch ,
bool systemProxy ,
bool tunEnable ,
bool isStart ,
String ? locale ,
Brightness ? brightness ,
List < Group > groups ,
Map < String , String > selectedMap } ) ;
2024-04-30 23:38:49 +08:00
}
/// @nodoc
2025-02-09 18:39:38 +08:00
class _ $TrayStateCopyWithImpl < $Res , $Val extends TrayState >
implements $TrayStateCopyWith < $Res > {
_ $TrayStateCopyWithImpl ( this . _value , this . _then ) ;
2024-04-30 23:38:49 +08:00
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2025-02-09 18:39:38 +08:00
/// Create a copy of TrayState
2024-11-09 20:17:57 +08:00
/// with the given fields replaced by the non-null parameter values.
2024-04-30 23:38:49 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
2025-02-09 18:39:38 +08:00
Object ? mode = null ,
Object ? port = null ,
Object ? autoLaunch = null ,
Object ? systemProxy = null ,
Object ? tunEnable = null ,
Object ? isStart = null ,
2024-04-30 23:38:49 +08:00
Object ? locale = freezed ,
2025-02-09 18:39:38 +08:00
Object ? brightness = freezed ,
Object ? groups = null ,
Object ? selectedMap = null ,
2024-04-30 23:38:49 +08:00
} ) {
return _then ( _value . copyWith (
2025-02-09 18:39:38 +08:00
mode: null = = mode
? _value . mode
: mode // ignore: cast_nullable_to_non_nullable
as Mode ,
port: null = = port
? _value . port
: port // ignore: cast_nullable_to_non_nullable
as int ,
autoLaunch: null = = autoLaunch
? _value . autoLaunch
: autoLaunch // ignore: cast_nullable_to_non_nullable
2024-04-30 23:38:49 +08:00
as bool ,
2024-08-23 18:33:40 +08:00
systemProxy: null = = systemProxy
? _value . systemProxy
: systemProxy // ignore: cast_nullable_to_non_nullable
as bool ,
tunEnable: null = = tunEnable
? _value . tunEnable
: tunEnable // ignore: cast_nullable_to_non_nullable
as bool ,
isStart: null = = isStart
? _value . isStart
: isStart // ignore: cast_nullable_to_non_nullable
2024-04-30 23:38:49 +08:00
as bool ,
locale: freezed = = locale
? _value . locale
: locale // ignore: cast_nullable_to_non_nullable
as String ? ,
2024-09-08 21:21:21 +08:00
brightness: freezed = = brightness
? _value . brightness
: brightness // ignore: cast_nullable_to_non_nullable
as Brightness ? ,
2024-12-03 21:47:12 +08:00
groups: null = = groups
? _value . groups
: groups // ignore: cast_nullable_to_non_nullable
as List < Group > ,
2025-02-09 18:39:38 +08:00
selectedMap: null = = selectedMap
? _value . selectedMap
: selectedMap // ignore: cast_nullable_to_non_nullable
2024-12-03 21:47:12 +08:00
as Map < String , String > ,
2024-04-30 23:38:49 +08:00
) as $Val ) ;
}
}
/// @nodoc
2024-09-08 21:21:21 +08:00
abstract class _ $ $TrayStateImplCopyWith < $Res >
implements $TrayStateCopyWith < $Res > {
factory _ $ $TrayStateImplCopyWith (
_ $TrayStateImpl value , $Res Function ( _ $TrayStateImpl ) then ) =
__ $ $TrayStateImplCopyWithImpl < $Res > ;
2024-04-30 23:38:49 +08:00
@ override
@ useResult
2024-08-23 18:33:40 +08:00
$Res call (
{ Mode mode ,
2024-12-03 21:47:12 +08:00
int port ,
2024-08-23 18:33:40 +08:00
bool autoLaunch ,
bool systemProxy ,
bool tunEnable ,
bool isStart ,
2024-09-08 21:21:21 +08:00
String ? locale ,
2024-12-03 21:47:12 +08:00
Brightness ? brightness ,
List < Group > groups ,
2025-02-09 18:39:38 +08:00
Map < String , String > selectedMap } ) ;
2024-04-30 23:38:49 +08:00
}
/// @nodoc
2024-09-08 21:21:21 +08:00
class __ $ $TrayStateImplCopyWithImpl < $Res >
extends _ $TrayStateCopyWithImpl < $Res , _ $TrayStateImpl >
implements _ $ $TrayStateImplCopyWith < $Res > {
__ $ $TrayStateImplCopyWithImpl (
_ $TrayStateImpl _value , $Res Function ( _ $TrayStateImpl ) _then )
2024-04-30 23:38:49 +08:00
: super ( _value , _then ) ;
2024-11-09 20:17:57 +08:00
/// Create a copy of TrayState
/// with the given fields replaced by the non-null parameter values.
2024-04-30 23:38:49 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? mode = null ,
2024-12-03 21:47:12 +08:00
Object ? port = null ,
2024-04-30 23:38:49 +08:00
Object ? autoLaunch = null ,
2024-08-23 18:33:40 +08:00
Object ? systemProxy = null ,
Object ? tunEnable = null ,
Object ? isStart = null ,
2024-04-30 23:38:49 +08:00
Object ? locale = freezed ,
2024-09-08 21:21:21 +08:00
Object ? brightness = freezed ,
2024-12-03 21:47:12 +08:00
Object ? groups = null ,
2025-02-09 18:39:38 +08:00
Object ? selectedMap = null ,
2024-04-30 23:38:49 +08:00
} ) {
2024-09-08 21:21:21 +08:00
return _then ( _ $TrayStateImpl (
2024-04-30 23:38:49 +08:00
mode: null = = mode
? _value . mode
: mode // ignore: cast_nullable_to_non_nullable
as Mode ,
2024-12-03 21:47:12 +08:00
port: null = = port
? _value . port
: port // ignore: cast_nullable_to_non_nullable
as int ,
2024-04-30 23:38:49 +08:00
autoLaunch: null = = autoLaunch
? _value . autoLaunch
: autoLaunch // ignore: cast_nullable_to_non_nullable
as bool ,
2024-08-23 18:33:40 +08:00
systemProxy: null = = systemProxy
? _value . systemProxy
: systemProxy // ignore: cast_nullable_to_non_nullable
as bool ,
tunEnable: null = = tunEnable
? _value . tunEnable
: tunEnable // ignore: cast_nullable_to_non_nullable
as bool ,
isStart: null = = isStart
? _value . isStart
: isStart // ignore: cast_nullable_to_non_nullable
2024-04-30 23:38:49 +08:00
as bool ,
locale: freezed = = locale
? _value . locale
: locale // ignore: cast_nullable_to_non_nullable
as String ? ,
2024-09-08 21:21:21 +08:00
brightness: freezed = = brightness
? _value . brightness
: brightness // ignore: cast_nullable_to_non_nullable
as Brightness ? ,
2024-12-03 21:47:12 +08:00
groups: null = = groups
? _value . _groups
: groups // ignore: cast_nullable_to_non_nullable
as List < Group > ,
2025-02-09 18:39:38 +08:00
selectedMap: null = = selectedMap
? _value . _selectedMap
: selectedMap // ignore: cast_nullable_to_non_nullable
2024-12-03 21:47:12 +08:00
as Map < String , String > ,
2024-04-30 23:38:49 +08:00
) ) ;
}
}
/// @nodoc
2024-09-08 21:21:21 +08:00
class _ $TrayStateImpl implements _TrayState {
const _ $TrayStateImpl (
2024-04-30 23:38:49 +08:00
{ required this . mode ,
2024-12-03 21:47:12 +08:00
required this . port ,
2024-04-30 23:38:49 +08:00
required this . autoLaunch ,
2024-08-23 18:33:40 +08:00
required this . systemProxy ,
required this . tunEnable ,
required this . isStart ,
2024-09-08 21:21:21 +08:00
required this . locale ,
2024-12-03 21:47:12 +08:00
required this . brightness ,
required final List < Group > groups ,
2025-02-09 18:39:38 +08:00
required final Map < String , String > selectedMap } )
2024-12-03 21:47:12 +08:00
: _groups = groups ,
2025-02-09 18:39:38 +08:00
_selectedMap = selectedMap ;
2024-04-30 23:38:49 +08:00
@ override
final Mode mode ;
@ override
2024-12-03 21:47:12 +08:00
final int port ;
2024-04-30 23:38:49 +08:00
@ override
2024-12-03 21:47:12 +08:00
final bool autoLaunch ;
2024-09-26 14:29:04 +08:00
@ override
2024-08-23 18:33:40 +08:00
final bool systemProxy ;
@ override
final bool tunEnable ;
@ override
final bool isStart ;
2024-04-30 23:38:49 +08:00
@ override
final String ? locale ;
2024-09-08 21:21:21 +08:00
@ override
final Brightness ? brightness ;
2024-12-03 21:47:12 +08:00
final List < Group > _groups ;
@ override
List < Group > get groups {
if ( _groups is EqualUnmodifiableListView ) return _groups ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _groups ) ;
}
2025-02-09 18:39:38 +08:00
final Map < String , String > _selectedMap ;
2024-12-03 21:47:12 +08:00
@ override
2025-02-09 18:39:38 +08:00
Map < String , String > get selectedMap {
if ( _selectedMap is EqualUnmodifiableMapView ) return _selectedMap ;
2024-12-03 21:47:12 +08:00
// ignore: implicit_dynamic_type
2025-02-09 18:39:38 +08:00
return EqualUnmodifiableMapView ( _selectedMap ) ;
2024-12-03 21:47:12 +08:00
}
2024-04-30 23:38:49 +08:00
@ override
String toString ( ) {
2025-02-09 18:39:38 +08:00
return ' TrayState(mode: $ mode , port: $ port , autoLaunch: $ autoLaunch , systemProxy: $ systemProxy , tunEnable: $ tunEnable , isStart: $ isStart , locale: $ locale , brightness: $ brightness , groups: $ groups , selectedMap: $ selectedMap ) ' ;
2024-04-30 23:38:49 +08:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2024-09-08 21:21:21 +08:00
other is _ $TrayStateImpl & &
2024-04-30 23:38:49 +08:00
( identical ( other . mode , mode ) | | other . mode = = mode ) & &
2024-12-03 21:47:12 +08:00
( identical ( other . port , port ) | | other . port = = port ) & &
2024-04-30 23:38:49 +08:00
( identical ( other . autoLaunch , autoLaunch ) | |
other . autoLaunch = = autoLaunch ) & &
2024-08-23 18:33:40 +08:00
( identical ( other . systemProxy , systemProxy ) | |
other . systemProxy = = systemProxy ) & &
( identical ( other . tunEnable , tunEnable ) | |
other . tunEnable = = tunEnable ) & &
( identical ( other . isStart , isStart ) | | other . isStart = = isStart ) & &
2024-09-08 21:21:21 +08:00
( identical ( other . locale , locale ) | | other . locale = = locale ) & &
( identical ( other . brightness , brightness ) | |
2024-12-03 21:47:12 +08:00
other . brightness = = brightness ) & &
const DeepCollectionEquality ( ) . equals ( other . _groups , _groups ) & &
2025-02-09 18:39:38 +08:00
const DeepCollectionEquality ( )
. equals ( other . _selectedMap , _selectedMap ) ) ;
2024-04-30 23:38:49 +08:00
}
@ override
2024-12-03 21:47:12 +08:00
int get hashCode = > Object . hash (
runtimeType ,
mode ,
port ,
autoLaunch ,
systemProxy ,
tunEnable ,
isStart ,
locale ,
brightness ,
const DeepCollectionEquality ( ) . hash ( _groups ) ,
2025-02-09 18:39:38 +08:00
const DeepCollectionEquality ( ) . hash ( _selectedMap ) ) ;
2024-04-30 23:38:49 +08:00
2024-11-09 20:17:57 +08:00
/// Create a copy of TrayState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-04-30 23:38:49 +08:00
@ override
@ pragma ( ' vm:prefer-inline ' )
2024-09-08 21:21:21 +08:00
_ $ $TrayStateImplCopyWith < _ $TrayStateImpl > get copyWith = >
__ $ $TrayStateImplCopyWithImpl < _ $TrayStateImpl > ( this , _ $identity ) ;
2024-04-30 23:38:49 +08:00
}
2024-09-08 21:21:21 +08:00
abstract class _TrayState implements TrayState {
const factory _TrayState (
2024-04-30 23:38:49 +08:00
{ required final Mode mode ,
2024-12-03 21:47:12 +08:00
required final int port ,
2024-04-30 23:38:49 +08:00
required final bool autoLaunch ,
2024-08-23 18:33:40 +08:00
required final bool systemProxy ,
required final bool tunEnable ,
required final bool isStart ,
2024-09-08 21:21:21 +08:00
required final String ? locale ,
2024-12-03 21:47:12 +08:00
required final Brightness ? brightness ,
required final List < Group > groups ,
2025-02-09 18:39:38 +08:00
required final Map < String , String > selectedMap } ) = _ $TrayStateImpl ;
2024-04-30 23:38:49 +08:00
@ override
Mode get mode ;
@ override
2024-12-03 21:47:12 +08:00
int get port ;
2024-04-30 23:38:49 +08:00
@ override
2024-12-03 21:47:12 +08:00
bool get autoLaunch ;
2024-09-26 14:29:04 +08:00
@ override
2024-08-23 18:33:40 +08:00
bool get systemProxy ;
@ override
bool get tunEnable ;
@ override
bool get isStart ;
2024-04-30 23:38:49 +08:00
@ override
String ? get locale ;
@ override
2024-09-08 21:21:21 +08:00
Brightness ? get brightness ;
2024-12-03 21:47:12 +08:00
@ override
List < Group > get groups ;
@ override
2025-02-09 18:39:38 +08:00
Map < String , String > get selectedMap ;
2024-11-09 20:17:57 +08:00
/// Create a copy of TrayState
/// with the given fields replaced by the non-null parameter values.
2024-09-08 21:21:21 +08:00
@ override
2024-11-09 20:17:57 +08:00
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-09-08 21:21:21 +08:00
_ $ $TrayStateImplCopyWith < _ $TrayStateImpl > get copyWith = >
throw _privateConstructorUsedError ;
2024-04-30 23:38:49 +08:00
}
/// @nodoc
2024-09-08 21:21:21 +08:00
mixin _ $HomeState {
2025-02-09 18:39:38 +08:00
PageLabel get pageLabel = > throw _privateConstructorUsedError ;
2024-05-20 15:15:09 +08:00
List < NavigationItem > get navigationItems = >
throw _privateConstructorUsedError ;
ViewMode get viewMode = > throw _privateConstructorUsedError ;
2024-04-30 23:38:49 +08:00
String ? get locale = > throw _privateConstructorUsedError ;
2024-11-09 20:17:57 +08:00
/// Create a copy of HomeState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-09-08 21:21:21 +08:00
$HomeStateCopyWith < HomeState > get copyWith = >
2024-05-20 15:15:09 +08:00
throw _privateConstructorUsedError ;
2024-04-30 23:38:49 +08:00
}
/// @nodoc
2024-09-08 21:21:21 +08:00
abstract class $HomeStateCopyWith < $Res > {
factory $HomeStateCopyWith ( HomeState value , $Res Function ( HomeState ) then ) =
_ $HomeStateCopyWithImpl < $Res , HomeState > ;
2024-04-30 23:38:49 +08:00
@ useResult
2024-05-20 15:15:09 +08:00
$Res call (
2025-02-09 18:39:38 +08:00
{ PageLabel pageLabel ,
2024-05-20 15:15:09 +08:00
List < NavigationItem > navigationItems ,
ViewMode viewMode ,
String ? locale } ) ;
2024-04-30 23:38:49 +08:00
}
/// @nodoc
2024-09-08 21:21:21 +08:00
class _ $HomeStateCopyWithImpl < $Res , $Val extends HomeState >
implements $HomeStateCopyWith < $Res > {
_ $HomeStateCopyWithImpl ( this . _value , this . _then ) ;
2024-04-30 23:38:49 +08:00
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2024-11-09 20:17:57 +08:00
/// Create a copy of HomeState
/// with the given fields replaced by the non-null parameter values.
2024-04-30 23:38:49 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
2025-02-09 18:39:38 +08:00
Object ? pageLabel = null ,
2024-05-20 15:15:09 +08:00
Object ? navigationItems = null ,
Object ? viewMode = null ,
2024-04-30 23:38:49 +08:00
Object ? locale = freezed ,
} ) {
return _then ( _value . copyWith (
2025-02-09 18:39:38 +08:00
pageLabel: null = = pageLabel
? _value . pageLabel
: pageLabel // ignore: cast_nullable_to_non_nullable
as PageLabel ,
2024-05-20 15:15:09 +08:00
navigationItems: null = = navigationItems
? _value . navigationItems
: navigationItems // ignore: cast_nullable_to_non_nullable
as List < NavigationItem > ,
viewMode: null = = viewMode
? _value . viewMode
: viewMode // ignore: cast_nullable_to_non_nullable
as ViewMode ,
2024-04-30 23:38:49 +08:00
locale: freezed = = locale
? _value . locale
: locale // ignore: cast_nullable_to_non_nullable
as String ? ,
) as $Val ) ;
}
}
/// @nodoc
2024-09-08 21:21:21 +08:00
abstract class _ $ $HomeStateImplCopyWith < $Res >
implements $HomeStateCopyWith < $Res > {
factory _ $ $HomeStateImplCopyWith (
_ $HomeStateImpl value , $Res Function ( _ $HomeStateImpl ) then ) =
__ $ $HomeStateImplCopyWithImpl < $Res > ;
2024-04-30 23:38:49 +08:00
@ override
@ useResult
2024-05-20 15:15:09 +08:00
$Res call (
2025-02-09 18:39:38 +08:00
{ PageLabel pageLabel ,
2024-05-20 15:15:09 +08:00
List < NavigationItem > navigationItems ,
ViewMode viewMode ,
String ? locale } ) ;
2024-04-30 23:38:49 +08:00
}
/// @nodoc
2024-09-08 21:21:21 +08:00
class __ $ $HomeStateImplCopyWithImpl < $Res >
extends _ $HomeStateCopyWithImpl < $Res , _ $HomeStateImpl >
implements _ $ $HomeStateImplCopyWith < $Res > {
__ $ $HomeStateImplCopyWithImpl (
_ $HomeStateImpl _value , $Res Function ( _ $HomeStateImpl ) _then )
2024-04-30 23:38:49 +08:00
: super ( _value , _then ) ;
2024-11-09 20:17:57 +08:00
/// Create a copy of HomeState
/// with the given fields replaced by the non-null parameter values.
2024-04-30 23:38:49 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
2025-02-09 18:39:38 +08:00
Object ? pageLabel = null ,
2024-05-20 15:15:09 +08:00
Object ? navigationItems = null ,
Object ? viewMode = null ,
2024-04-30 23:38:49 +08:00
Object ? locale = freezed ,
} ) {
2024-09-08 21:21:21 +08:00
return _then ( _ $HomeStateImpl (
2025-02-09 18:39:38 +08:00
pageLabel: null = = pageLabel
? _value . pageLabel
: pageLabel // ignore: cast_nullable_to_non_nullable
as PageLabel ,
2024-05-20 15:15:09 +08:00
navigationItems: null = = navigationItems
? _value . _navigationItems
: navigationItems // ignore: cast_nullable_to_non_nullable
as List < NavigationItem > ,
viewMode: null = = viewMode
? _value . viewMode
: viewMode // ignore: cast_nullable_to_non_nullable
as ViewMode ,
2024-04-30 23:38:49 +08:00
locale: freezed = = locale
? _value . locale
: locale // ignore: cast_nullable_to_non_nullable
as String ? ,
) ) ;
}
}
/// @nodoc
2024-09-08 21:21:21 +08:00
class _ $HomeStateImpl implements _HomeState {
const _ $HomeStateImpl (
2025-02-09 18:39:38 +08:00
{ required this . pageLabel ,
2024-05-20 15:15:09 +08:00
required final List < NavigationItem > navigationItems ,
required this . viewMode ,
required this . locale } )
: _navigationItems = navigationItems ;
2024-04-30 23:38:49 +08:00
@ override
2025-02-09 18:39:38 +08:00
final PageLabel pageLabel ;
2024-05-20 15:15:09 +08:00
final List < NavigationItem > _navigationItems ;
@ override
List < NavigationItem > get navigationItems {
if ( _navigationItems is EqualUnmodifiableListView ) return _navigationItems ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _navigationItems ) ;
}
@ override
final ViewMode viewMode ;
2024-04-30 23:38:49 +08:00
@ override
final String ? locale ;
@ override
String toString ( ) {
2025-02-09 18:39:38 +08:00
return ' HomeState(pageLabel: $ pageLabel , navigationItems: $ navigationItems , viewMode: $ viewMode , locale: $ locale ) ' ;
2024-04-30 23:38:49 +08:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2024-09-08 21:21:21 +08:00
other is _ $HomeStateImpl & &
2025-02-09 18:39:38 +08:00
( identical ( other . pageLabel , pageLabel ) | |
other . pageLabel = = pageLabel ) & &
2024-05-20 15:15:09 +08:00
const DeepCollectionEquality ( )
. equals ( other . _navigationItems , _navigationItems ) & &
( identical ( other . viewMode , viewMode ) | |
other . viewMode = = viewMode ) & &
2024-04-30 23:38:49 +08:00
( identical ( other . locale , locale ) | | other . locale = = locale ) ) ;
}
@ override
2025-02-09 18:39:38 +08:00
int get hashCode = > Object . hash ( runtimeType , pageLabel ,
2024-05-20 15:15:09 +08:00
const DeepCollectionEquality ( ) . hash ( _navigationItems ) , viewMode , locale ) ;
2024-04-30 23:38:49 +08:00
2024-11-09 20:17:57 +08:00
/// Create a copy of HomeState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-04-30 23:38:49 +08:00
@ override
@ pragma ( ' vm:prefer-inline ' )
2024-09-08 21:21:21 +08:00
_ $ $HomeStateImplCopyWith < _ $HomeStateImpl > get copyWith = >
__ $ $HomeStateImplCopyWithImpl < _ $HomeStateImpl > ( this , _ $identity ) ;
2024-04-30 23:38:49 +08:00
}
2024-09-08 21:21:21 +08:00
abstract class _HomeState implements HomeState {
const factory _HomeState (
2025-02-09 18:39:38 +08:00
{ required final PageLabel pageLabel ,
2024-05-20 15:15:09 +08:00
required final List < NavigationItem > navigationItems ,
required final ViewMode viewMode ,
2024-09-08 21:21:21 +08:00
required final String ? locale } ) = _ $HomeStateImpl ;
2024-04-30 23:38:49 +08:00
@ override
2025-02-09 18:39:38 +08:00
PageLabel get pageLabel ;
2024-04-30 23:38:49 +08:00
@ override
2024-05-20 15:15:09 +08:00
List < NavigationItem > get navigationItems ;
@ override
ViewMode get viewMode ;
@ override
2024-04-30 23:38:49 +08:00
String ? get locale ;
2024-11-09 20:17:57 +08:00
/// Create a copy of HomeState
/// with the given fields replaced by the non-null parameter values.
2024-04-30 23:38:49 +08:00
@ override
2024-11-09 20:17:57 +08:00
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-09-08 21:21:21 +08:00
_ $ $HomeStateImplCopyWith < _ $HomeStateImpl > get copyWith = >
2024-05-20 15:15:09 +08:00
throw _privateConstructorUsedError ;
2024-04-30 23:38:49 +08:00
}
2024-05-04 00:14:07 +08:00
/// @nodoc
2025-02-09 18:39:38 +08:00
mixin _ $ProxiesSelectorState {
List < String > get groupNames = > throw _privateConstructorUsedError ;
String ? get currentGroupName = > throw _privateConstructorUsedError ;
2024-05-04 00:14:07 +08:00
2025-02-09 18:39:38 +08:00
/// Create a copy of ProxiesSelectorState
2024-11-09 20:17:57 +08:00
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2025-02-09 18:39:38 +08:00
$ProxiesSelectorStateCopyWith < ProxiesSelectorState > get copyWith = >
2024-05-04 00:14:07 +08:00
throw _privateConstructorUsedError ;
}
/// @nodoc
2025-02-09 18:39:38 +08:00
abstract class $ProxiesSelectorStateCopyWith < $Res > {
factory $ProxiesSelectorStateCopyWith ( ProxiesSelectorState value ,
$Res Function ( ProxiesSelectorState ) then ) =
_ $ProxiesSelectorStateCopyWithImpl < $Res , ProxiesSelectorState > ;
2024-05-04 00:14:07 +08:00
@ useResult
2025-02-09 18:39:38 +08:00
$Res call ( { List < String > groupNames , String ? currentGroupName } ) ;
2024-05-04 00:14:07 +08:00
}
/// @nodoc
2025-02-09 18:39:38 +08:00
class _ $ProxiesSelectorStateCopyWithImpl < $Res ,
$Val extends ProxiesSelectorState >
implements $ProxiesSelectorStateCopyWith < $Res > {
_ $ProxiesSelectorStateCopyWithImpl ( this . _value , this . _then ) ;
2024-05-04 00:14:07 +08:00
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2025-02-09 18:39:38 +08:00
/// Create a copy of ProxiesSelectorState
2024-11-09 20:17:57 +08:00
/// with the given fields replaced by the non-null parameter values.
2024-05-04 00:14:07 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
2025-02-09 18:39:38 +08:00
Object ? groupNames = null ,
Object ? currentGroupName = freezed ,
} ) {
2024-05-04 00:14:07 +08:00
return _then ( _value . copyWith (
2025-02-09 18:39:38 +08:00
groupNames: null = = groupNames
? _value . groupNames
: groupNames // ignore: cast_nullable_to_non_nullable
as List < String > ,
currentGroupName: freezed = = currentGroupName
? _value . currentGroupName
: currentGroupName // ignore: cast_nullable_to_non_nullable
as String ? ,
2024-05-04 00:14:07 +08:00
) as $Val ) ;
}
}
/// @nodoc
2025-02-09 18:39:38 +08:00
abstract class _ $ $ProxiesSelectorStateImplCopyWith < $Res >
implements $ProxiesSelectorStateCopyWith < $Res > {
factory _ $ $ProxiesSelectorStateImplCopyWith ( _ $ProxiesSelectorStateImpl value ,
$Res Function ( _ $ProxiesSelectorStateImpl ) then ) =
__ $ $ProxiesSelectorStateImplCopyWithImpl < $Res > ;
2024-05-04 00:14:07 +08:00
@ override
@ useResult
2025-02-09 18:39:38 +08:00
$Res call ( { List < String > groupNames , String ? currentGroupName } ) ;
2024-05-04 00:14:07 +08:00
}
/// @nodoc
2025-02-09 18:39:38 +08:00
class __ $ $ProxiesSelectorStateImplCopyWithImpl < $Res >
extends _ $ProxiesSelectorStateCopyWithImpl < $Res , _ $ProxiesSelectorStateImpl >
implements _ $ $ProxiesSelectorStateImplCopyWith < $Res > {
__ $ $ProxiesSelectorStateImplCopyWithImpl ( _ $ProxiesSelectorStateImpl _value ,
$Res Function ( _ $ProxiesSelectorStateImpl ) _then )
2024-05-04 00:14:07 +08:00
: super ( _value , _then ) ;
2025-02-09 18:39:38 +08:00
/// Create a copy of ProxiesSelectorState
2024-11-09 20:17:57 +08:00
/// with the given fields replaced by the non-null parameter values.
2024-05-04 00:14:07 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
2025-02-09 18:39:38 +08:00
Object ? groupNames = null ,
Object ? currentGroupName = freezed ,
2024-05-04 00:14:07 +08:00
} ) {
2025-02-09 18:39:38 +08:00
return _then ( _ $ProxiesSelectorStateImpl (
groupNames: null = = groupNames
? _value . _groupNames
: groupNames // ignore: cast_nullable_to_non_nullable
as List < String > ,
currentGroupName: freezed = = currentGroupName
? _value . currentGroupName
: currentGroupName // ignore: cast_nullable_to_non_nullable
as String ? ,
2024-05-04 00:14:07 +08:00
) ) ;
}
}
/// @nodoc
2025-02-09 18:39:38 +08:00
class _ $ProxiesSelectorStateImpl implements _ProxiesSelectorState {
const _ $ProxiesSelectorStateImpl (
{ required final List < String > groupNames , required this . currentGroupName } )
: _groupNames = groupNames ;
final List < String > _groupNames ;
@ override
List < String > get groupNames {
if ( _groupNames is EqualUnmodifiableListView ) return _groupNames ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _groupNames ) ;
}
2024-05-04 00:14:07 +08:00
2024-05-06 14:03:45 +08:00
@ override
2025-02-09 18:39:38 +08:00
final String ? currentGroupName ;
2024-05-04 00:14:07 +08:00
@ override
String toString ( ) {
2025-02-09 18:39:38 +08:00
return ' ProxiesSelectorState(groupNames: $ groupNames , currentGroupName: $ currentGroupName ) ' ;
2024-05-04 00:14:07 +08:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2025-02-09 18:39:38 +08:00
other is _ $ProxiesSelectorStateImpl & &
const DeepCollectionEquality ( )
. equals ( other . _groupNames , _groupNames ) & &
( identical ( other . currentGroupName , currentGroupName ) | |
other . currentGroupName = = currentGroupName ) ) ;
2024-05-04 00:14:07 +08:00
}
@ override
2025-02-09 18:39:38 +08:00
int get hashCode = > Object . hash ( runtimeType ,
const DeepCollectionEquality ( ) . hash ( _groupNames ) , currentGroupName ) ;
2024-05-04 00:14:07 +08:00
2025-02-09 18:39:38 +08:00
/// Create a copy of ProxiesSelectorState
2024-11-09 20:17:57 +08:00
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-05-04 00:14:07 +08:00
@ override
@ pragma ( ' vm:prefer-inline ' )
2025-02-09 18:39:38 +08:00
_ $ $ProxiesSelectorStateImplCopyWith < _ $ProxiesSelectorStateImpl >
get copyWith = >
__ $ $ProxiesSelectorStateImplCopyWithImpl < _ $ProxiesSelectorStateImpl > (
this , _ $identity ) ;
2024-05-04 00:14:07 +08:00
}
2025-02-09 18:39:38 +08:00
abstract class _ProxiesSelectorState implements ProxiesSelectorState {
const factory _ProxiesSelectorState (
{ required final List < String > groupNames ,
required final String ? currentGroupName } ) = _ $ProxiesSelectorStateImpl ;
2024-05-04 00:14:07 +08:00
@ override
2025-02-09 18:39:38 +08:00
List < String > get groupNames ;
@ override
String ? get currentGroupName ;
2024-11-09 20:17:57 +08:00
2025-02-09 18:39:38 +08:00
/// Create a copy of ProxiesSelectorState
2024-11-09 20:17:57 +08:00
/// with the given fields replaced by the non-null parameter values.
2024-05-06 14:03:45 +08:00
@ override
2024-11-09 20:17:57 +08:00
@ JsonKey ( includeFromJson: false , includeToJson: false )
2025-02-09 18:39:38 +08:00
_ $ $ProxiesSelectorStateImplCopyWith < _ $ProxiesSelectorStateImpl >
2024-05-04 00:14:07 +08:00
get copyWith = > throw _privateConstructorUsedError ;
}
2024-05-06 10:32:39 +08:00
/// @nodoc
2025-02-09 18:39:38 +08:00
mixin _ $GroupNamesState {
2024-05-10 10:11:27 +08:00
List < String > get groupNames = > throw _privateConstructorUsedError ;
2024-05-06 10:32:39 +08:00
2025-02-09 18:39:38 +08:00
/// Create a copy of GroupNamesState
2024-11-09 20:17:57 +08:00
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2025-02-09 18:39:38 +08:00
$GroupNamesStateCopyWith < GroupNamesState > get copyWith = >
2024-05-07 13:50:00 +08:00
throw _privateConstructorUsedError ;
2024-05-06 10:32:39 +08:00
}
/// @nodoc
2025-02-09 18:39:38 +08:00
abstract class $GroupNamesStateCopyWith < $Res > {
factory $GroupNamesStateCopyWith (
GroupNamesState value , $Res Function ( GroupNamesState ) then ) =
_ $GroupNamesStateCopyWithImpl < $Res , GroupNamesState > ;
2024-05-06 10:32:39 +08:00
@ useResult
2025-02-09 18:39:38 +08:00
$Res call ( { List < String > groupNames } ) ;
2024-05-06 10:32:39 +08:00
}
/// @nodoc
2025-02-09 18:39:38 +08:00
class _ $GroupNamesStateCopyWithImpl < $Res , $Val extends GroupNamesState >
implements $GroupNamesStateCopyWith < $Res > {
_ $GroupNamesStateCopyWithImpl ( this . _value , this . _then ) ;
2024-05-06 10:32:39 +08:00
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2025-02-09 18:39:38 +08:00
/// Create a copy of GroupNamesState
2024-11-09 20:17:57 +08:00
/// with the given fields replaced by the non-null parameter values.
2024-05-10 10:11:27 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? groupNames = null ,
} ) {
return _then ( _value . copyWith (
groupNames: null = = groupNames
? _value . groupNames
: groupNames // ignore: cast_nullable_to_non_nullable
as List < String > ,
) as $Val ) ;
}
}
/// @nodoc
2025-02-09 18:39:38 +08:00
abstract class _ $ $GroupNamesStateImplCopyWith < $Res >
implements $GroupNamesStateCopyWith < $Res > {
factory _ $ $GroupNamesStateImplCopyWith ( _ $GroupNamesStateImpl value ,
$Res Function ( _ $GroupNamesStateImpl ) then ) =
__ $ $GroupNamesStateImplCopyWithImpl < $Res > ;
2024-05-10 10:11:27 +08:00
@ override
@ useResult
2025-02-09 18:39:38 +08:00
$Res call ( { List < String > groupNames } ) ;
2024-05-10 10:11:27 +08:00
}
/// @nodoc
2025-02-09 18:39:38 +08:00
class __ $ $GroupNamesStateImplCopyWithImpl < $Res >
extends _ $GroupNamesStateCopyWithImpl < $Res , _ $GroupNamesStateImpl >
implements _ $ $GroupNamesStateImplCopyWith < $Res > {
__ $ $GroupNamesStateImplCopyWithImpl (
_ $GroupNamesStateImpl _value , $Res Function ( _ $GroupNamesStateImpl ) _then )
2024-05-10 10:11:27 +08:00
: super ( _value , _then ) ;
2025-02-09 18:39:38 +08:00
/// Create a copy of GroupNamesState
2024-11-09 20:17:57 +08:00
/// with the given fields replaced by the non-null parameter values.
2024-05-10 10:11:27 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? groupNames = null ,
} ) {
2025-02-09 18:39:38 +08:00
return _then ( _ $GroupNamesStateImpl (
2024-05-10 10:11:27 +08:00
groupNames: null = = groupNames
? _value . _groupNames
: groupNames // ignore: cast_nullable_to_non_nullable
as List < String > ,
) ) ;
}
}
/// @nodoc
2025-02-09 18:39:38 +08:00
class _ $GroupNamesStateImpl implements _GroupNamesState {
const _ $GroupNamesStateImpl ( { required final List < String > groupNames } )
: _groupNames = groupNames ;
final List < String > _groupNames ;
@ override
List < String > get groupNames {
if ( _groupNames is EqualUnmodifiableListView ) return _groupNames ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _groupNames ) ;
}
@ override
String toString ( ) {
return ' GroupNamesState(groupNames: $ groupNames ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $GroupNamesStateImpl & &
const DeepCollectionEquality ( )
. equals ( other . _groupNames , _groupNames ) ) ;
}
@ override
int get hashCode = > Object . hash (
runtimeType , const DeepCollectionEquality ( ) . hash ( _groupNames ) ) ;
/// Create a copy of GroupNamesState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $GroupNamesStateImplCopyWith < _ $GroupNamesStateImpl > get copyWith = >
__ $ $GroupNamesStateImplCopyWithImpl < _ $GroupNamesStateImpl > (
this , _ $identity ) ;
}
abstract class _GroupNamesState implements GroupNamesState {
const factory _GroupNamesState ( { required final List < String > groupNames } ) =
_ $GroupNamesStateImpl ;
@ override
List < String > get groupNames ;
/// Create a copy of GroupNamesState
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $GroupNamesStateImplCopyWith < _ $GroupNamesStateImpl > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
mixin _ $GroupsState {
List < Group > get value = > throw _privateConstructorUsedError ;
/// Create a copy of GroupsState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$GroupsStateCopyWith < GroupsState > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $GroupsStateCopyWith < $Res > {
factory $GroupsStateCopyWith (
GroupsState value , $Res Function ( GroupsState ) then ) =
_ $GroupsStateCopyWithImpl < $Res , GroupsState > ;
@ useResult
$Res call ( { List < Group > value } ) ;
}
/// @nodoc
class _ $GroupsStateCopyWithImpl < $Res , $Val extends GroupsState >
implements $GroupsStateCopyWith < $Res > {
_ $GroupsStateCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of GroupsState
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? value = null ,
} ) {
return _then ( _value . copyWith (
value: null = = value
? _value . value
: value // ignore: cast_nullable_to_non_nullable
as List < Group > ,
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $GroupsStateImplCopyWith < $Res >
implements $GroupsStateCopyWith < $Res > {
factory _ $ $GroupsStateImplCopyWith (
_ $GroupsStateImpl value , $Res Function ( _ $GroupsStateImpl ) then ) =
__ $ $GroupsStateImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call ( { List < Group > value } ) ;
}
/// @nodoc
class __ $ $GroupsStateImplCopyWithImpl < $Res >
extends _ $GroupsStateCopyWithImpl < $Res , _ $GroupsStateImpl >
implements _ $ $GroupsStateImplCopyWith < $Res > {
__ $ $GroupsStateImplCopyWithImpl (
_ $GroupsStateImpl _value , $Res Function ( _ $GroupsStateImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of GroupsState
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? value = null ,
} ) {
return _then ( _ $GroupsStateImpl (
value: null = = value
? _value . _value
: value // ignore: cast_nullable_to_non_nullable
as List < Group > ,
) ) ;
}
}
/// @nodoc
class _ $GroupsStateImpl implements _GroupsState {
const _ $GroupsStateImpl ( { required final List < Group > value } ) : _value = value ;
final List < Group > _value ;
@ override
List < Group > get value {
if ( _value is EqualUnmodifiableListView ) return _value ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _value ) ;
}
@ override
String toString ( ) {
return ' GroupsState(value: $ value ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $GroupsStateImpl & &
const DeepCollectionEquality ( ) . equals ( other . _value , _value ) ) ;
}
@ override
int get hashCode = >
Object . hash ( runtimeType , const DeepCollectionEquality ( ) . hash ( _value ) ) ;
/// Create a copy of GroupsState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $GroupsStateImplCopyWith < _ $GroupsStateImpl > get copyWith = >
__ $ $GroupsStateImplCopyWithImpl < _ $GroupsStateImpl > ( this , _ $identity ) ;
}
abstract class _GroupsState implements GroupsState {
const factory _GroupsState ( { required final List < Group > value } ) =
_ $GroupsStateImpl ;
@ override
List < Group > get value ;
/// Create a copy of GroupsState
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $GroupsStateImplCopyWith < _ $GroupsStateImpl > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
mixin _ $NavigationItemsState {
List < NavigationItem > get value = > throw _privateConstructorUsedError ;
/// Create a copy of NavigationItemsState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$NavigationItemsStateCopyWith < NavigationItemsState > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $NavigationItemsStateCopyWith < $Res > {
factory $NavigationItemsStateCopyWith ( NavigationItemsState value ,
$Res Function ( NavigationItemsState ) then ) =
_ $NavigationItemsStateCopyWithImpl < $Res , NavigationItemsState > ;
@ useResult
$Res call ( { List < NavigationItem > value } ) ;
}
/// @nodoc
class _ $NavigationItemsStateCopyWithImpl < $Res ,
$Val extends NavigationItemsState >
implements $NavigationItemsStateCopyWith < $Res > {
_ $NavigationItemsStateCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of NavigationItemsState
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? value = null ,
} ) {
return _then ( _value . copyWith (
value: null = = value
? _value . value
: value // ignore: cast_nullable_to_non_nullable
as List < NavigationItem > ,
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $NavigationItemsStateImplCopyWith < $Res >
implements $NavigationItemsStateCopyWith < $Res > {
factory _ $ $NavigationItemsStateImplCopyWith ( _ $NavigationItemsStateImpl value ,
$Res Function ( _ $NavigationItemsStateImpl ) then ) =
__ $ $NavigationItemsStateImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call ( { List < NavigationItem > value } ) ;
}
/// @nodoc
class __ $ $NavigationItemsStateImplCopyWithImpl < $Res >
extends _ $NavigationItemsStateCopyWithImpl < $Res , _ $NavigationItemsStateImpl >
implements _ $ $NavigationItemsStateImplCopyWith < $Res > {
__ $ $NavigationItemsStateImplCopyWithImpl ( _ $NavigationItemsStateImpl _value ,
$Res Function ( _ $NavigationItemsStateImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of NavigationItemsState
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? value = null ,
} ) {
return _then ( _ $NavigationItemsStateImpl (
value: null = = value
? _value . _value
: value // ignore: cast_nullable_to_non_nullable
as List < NavigationItem > ,
) ) ;
}
}
/// @nodoc
class _ $NavigationItemsStateImpl implements _NavigationItemsState {
const _ $NavigationItemsStateImpl ( { required final List < NavigationItem > value } )
: _value = value ;
2024-05-10 10:11:27 +08:00
2025-02-09 18:39:38 +08:00
final List < NavigationItem > _value ;
2024-05-10 10:11:27 +08:00
@ override
2025-02-09 18:39:38 +08:00
List < NavigationItem > get value {
if ( _value is EqualUnmodifiableListView ) return _value ;
2024-05-10 10:11:27 +08:00
// ignore: implicit_dynamic_type
2025-02-09 18:39:38 +08:00
return EqualUnmodifiableListView ( _value ) ;
2024-05-10 10:11:27 +08:00
}
@ override
String toString ( ) {
2025-02-09 18:39:38 +08:00
return ' NavigationItemsState(value: $ value ) ' ;
2024-05-10 10:11:27 +08:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2025-02-09 18:39:38 +08:00
other is _ $NavigationItemsStateImpl & &
const DeepCollectionEquality ( ) . equals ( other . _value , _value ) ) ;
2024-05-10 10:11:27 +08:00
}
@ override
2025-02-09 18:39:38 +08:00
int get hashCode = >
Object . hash ( runtimeType , const DeepCollectionEquality ( ) . hash ( _value ) ) ;
2024-05-10 10:11:27 +08:00
2025-02-09 18:39:38 +08:00
/// Create a copy of NavigationItemsState
2024-11-09 20:17:57 +08:00
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-05-10 10:11:27 +08:00
@ override
@ pragma ( ' vm:prefer-inline ' )
2025-02-09 18:39:38 +08:00
_ $ $NavigationItemsStateImplCopyWith < _ $NavigationItemsStateImpl >
2024-05-10 10:11:27 +08:00
get copyWith = >
2025-02-09 18:39:38 +08:00
__ $ $NavigationItemsStateImplCopyWithImpl < _ $NavigationItemsStateImpl > (
2024-05-10 10:11:27 +08:00
this , _ $identity ) ;
}
2025-02-09 18:39:38 +08:00
abstract class _NavigationItemsState implements NavigationItemsState {
const factory _NavigationItemsState (
{ required final List < NavigationItem > value } ) = _ $NavigationItemsStateImpl ;
2024-05-10 10:11:27 +08:00
@ override
2025-02-09 18:39:38 +08:00
List < NavigationItem > get value ;
2024-11-09 20:17:57 +08:00
2025-02-09 18:39:38 +08:00
/// Create a copy of NavigationItemsState
2024-11-09 20:17:57 +08:00
/// with the given fields replaced by the non-null parameter values.
2024-06-13 23:43:42 +08:00
@ override
2024-11-09 20:17:57 +08:00
@ JsonKey ( includeFromJson: false , includeToJson: false )
2025-02-09 18:39:38 +08:00
_ $ $NavigationItemsStateImplCopyWith < _ $NavigationItemsStateImpl >
2024-05-10 10:11:27 +08:00
get copyWith = > throw _privateConstructorUsedError ;
}
2024-07-24 01:27:49 +08:00
/// @nodoc
mixin _ $ProxiesListSelectorState {
List < String > get groupNames = > throw _privateConstructorUsedError ;
Set < String > get currentUnfoldSet = > throw _privateConstructorUsedError ;
ProxiesSortType get proxiesSortType = > throw _privateConstructorUsedError ;
ProxyCardType get proxyCardType = > throw _privateConstructorUsedError ;
num get sortNum = > throw _privateConstructorUsedError ;
int get columns = > throw _privateConstructorUsedError ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxiesListSelectorState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-07-24 01:27:49 +08:00
$ProxiesListSelectorStateCopyWith < ProxiesListSelectorState > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $ProxiesListSelectorStateCopyWith < $Res > {
factory $ProxiesListSelectorStateCopyWith ( ProxiesListSelectorState value ,
$Res Function ( ProxiesListSelectorState ) then ) =
_ $ProxiesListSelectorStateCopyWithImpl < $Res , ProxiesListSelectorState > ;
@ useResult
$Res call (
{ List < String > groupNames ,
Set < String > currentUnfoldSet ,
ProxiesSortType proxiesSortType ,
ProxyCardType proxyCardType ,
num sortNum ,
int columns } ) ;
}
/// @nodoc
class _ $ProxiesListSelectorStateCopyWithImpl < $Res ,
$Val extends ProxiesListSelectorState >
implements $ProxiesListSelectorStateCopyWith < $Res > {
_ $ProxiesListSelectorStateCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxiesListSelectorState
/// with the given fields replaced by the non-null parameter values.
2024-07-24 01:27:49 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? groupNames = null ,
Object ? currentUnfoldSet = null ,
Object ? proxiesSortType = null ,
Object ? proxyCardType = null ,
Object ? sortNum = null ,
Object ? columns = null ,
} ) {
return _then ( _value . copyWith (
groupNames: null = = groupNames
? _value . groupNames
: groupNames // ignore: cast_nullable_to_non_nullable
as List < String > ,
currentUnfoldSet: null = = currentUnfoldSet
? _value . currentUnfoldSet
: currentUnfoldSet // ignore: cast_nullable_to_non_nullable
as Set < String > ,
proxiesSortType: null = = proxiesSortType
? _value . proxiesSortType
: proxiesSortType // ignore: cast_nullable_to_non_nullable
as ProxiesSortType ,
proxyCardType: null = = proxyCardType
? _value . proxyCardType
: proxyCardType // ignore: cast_nullable_to_non_nullable
as ProxyCardType ,
sortNum: null = = sortNum
? _value . sortNum
: sortNum // ignore: cast_nullable_to_non_nullable
as num ,
columns: null = = columns
? _value . columns
: columns // ignore: cast_nullable_to_non_nullable
as int ,
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $ProxiesListSelectorStateImplCopyWith < $Res >
implements $ProxiesListSelectorStateCopyWith < $Res > {
factory _ $ $ProxiesListSelectorStateImplCopyWith (
_ $ProxiesListSelectorStateImpl value ,
$Res Function ( _ $ProxiesListSelectorStateImpl ) then ) =
__ $ $ProxiesListSelectorStateImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call (
{ List < String > groupNames ,
Set < String > currentUnfoldSet ,
ProxiesSortType proxiesSortType ,
ProxyCardType proxyCardType ,
num sortNum ,
int columns } ) ;
}
/// @nodoc
class __ $ $ProxiesListSelectorStateImplCopyWithImpl < $Res >
extends _ $ProxiesListSelectorStateCopyWithImpl < $Res ,
_ $ProxiesListSelectorStateImpl >
implements _ $ $ProxiesListSelectorStateImplCopyWith < $Res > {
__ $ $ProxiesListSelectorStateImplCopyWithImpl (
_ $ProxiesListSelectorStateImpl _value ,
$Res Function ( _ $ProxiesListSelectorStateImpl ) _then )
: super ( _value , _then ) ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxiesListSelectorState
/// with the given fields replaced by the non-null parameter values.
2024-07-24 01:27:49 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? groupNames = null ,
Object ? currentUnfoldSet = null ,
Object ? proxiesSortType = null ,
Object ? proxyCardType = null ,
Object ? sortNum = null ,
Object ? columns = null ,
} ) {
return _then ( _ $ProxiesListSelectorStateImpl (
groupNames: null = = groupNames
? _value . _groupNames
: groupNames // ignore: cast_nullable_to_non_nullable
as List < String > ,
currentUnfoldSet: null = = currentUnfoldSet
? _value . _currentUnfoldSet
: currentUnfoldSet // ignore: cast_nullable_to_non_nullable
as Set < String > ,
proxiesSortType: null = = proxiesSortType
? _value . proxiesSortType
: proxiesSortType // ignore: cast_nullable_to_non_nullable
as ProxiesSortType ,
proxyCardType: null = = proxyCardType
? _value . proxyCardType
: proxyCardType // ignore: cast_nullable_to_non_nullable
as ProxyCardType ,
sortNum: null = = sortNum
? _value . sortNum
: sortNum // ignore: cast_nullable_to_non_nullable
as num ,
columns: null = = columns
? _value . columns
: columns // ignore: cast_nullable_to_non_nullable
as int ,
) ) ;
}
}
/// @nodoc
class _ $ProxiesListSelectorStateImpl implements _ProxiesListSelectorState {
const _ $ProxiesListSelectorStateImpl (
{ required final List < String > groupNames ,
required final Set < String > currentUnfoldSet ,
required this . proxiesSortType ,
required this . proxyCardType ,
required this . sortNum ,
required this . columns } )
: _groupNames = groupNames ,
_currentUnfoldSet = currentUnfoldSet ;
final List < String > _groupNames ;
@ override
List < String > get groupNames {
if ( _groupNames is EqualUnmodifiableListView ) return _groupNames ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _groupNames ) ;
}
final Set < String > _currentUnfoldSet ;
@ override
Set < String > get currentUnfoldSet {
if ( _currentUnfoldSet is EqualUnmodifiableSetView ) return _currentUnfoldSet ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableSetView ( _currentUnfoldSet ) ;
}
@ override
final ProxiesSortType proxiesSortType ;
@ override
final ProxyCardType proxyCardType ;
@ override
final num sortNum ;
@ override
final int columns ;
@ override
String toString ( ) {
return ' ProxiesListSelectorState(groupNames: $ groupNames , currentUnfoldSet: $ currentUnfoldSet , proxiesSortType: $ proxiesSortType , proxyCardType: $ proxyCardType , sortNum: $ sortNum , columns: $ columns ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $ProxiesListSelectorStateImpl & &
const DeepCollectionEquality ( )
. equals ( other . _groupNames , _groupNames ) & &
const DeepCollectionEquality ( )
. equals ( other . _currentUnfoldSet , _currentUnfoldSet ) & &
( identical ( other . proxiesSortType , proxiesSortType ) | |
other . proxiesSortType = = proxiesSortType ) & &
( identical ( other . proxyCardType , proxyCardType ) | |
other . proxyCardType = = proxyCardType ) & &
( identical ( other . sortNum , sortNum ) | | other . sortNum = = sortNum ) & &
( identical ( other . columns , columns ) | | other . columns = = columns ) ) ;
}
@ override
int get hashCode = > Object . hash (
runtimeType ,
const DeepCollectionEquality ( ) . hash ( _groupNames ) ,
const DeepCollectionEquality ( ) . hash ( _currentUnfoldSet ) ,
proxiesSortType ,
proxyCardType ,
sortNum ,
columns ) ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxiesListSelectorState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-07-24 01:27:49 +08:00
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $ProxiesListSelectorStateImplCopyWith < _ $ProxiesListSelectorStateImpl >
get copyWith = > __ $ $ProxiesListSelectorStateImplCopyWithImpl <
_ $ProxiesListSelectorStateImpl > ( this , _ $identity ) ;
}
abstract class _ProxiesListSelectorState implements ProxiesListSelectorState {
const factory _ProxiesListSelectorState (
{ required final List < String > groupNames ,
required final Set < String > currentUnfoldSet ,
required final ProxiesSortType proxiesSortType ,
required final ProxyCardType proxyCardType ,
required final num sortNum ,
required final int columns } ) = _ $ProxiesListSelectorStateImpl ;
@ override
List < String > get groupNames ;
@ override
Set < String > get currentUnfoldSet ;
@ override
ProxiesSortType get proxiesSortType ;
@ override
ProxyCardType get proxyCardType ;
@ override
num get sortNum ;
@ override
int get columns ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxiesListSelectorState
/// with the given fields replaced by the non-null parameter values.
2024-07-24 01:27:49 +08:00
@ override
2024-11-09 20:17:57 +08:00
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-07-24 01:27:49 +08:00
_ $ $ProxiesListSelectorStateImplCopyWith < _ $ProxiesListSelectorStateImpl >
get copyWith = > throw _privateConstructorUsedError ;
}
2024-05-10 10:11:27 +08:00
/// @nodoc
2024-06-23 00:26:24 +08:00
mixin _ $ProxyGroupSelectorState {
2025-01-13 19:08:17 +08:00
String ? get testUrl = > throw _privateConstructorUsedError ;
2024-05-10 10:11:27 +08:00
ProxiesSortType get proxiesSortType = > throw _privateConstructorUsedError ;
2024-06-23 00:26:24 +08:00
ProxyCardType get proxyCardType = > throw _privateConstructorUsedError ;
2024-05-10 10:11:27 +08:00
num get sortNum = > throw _privateConstructorUsedError ;
2024-07-26 08:05:22 +08:00
GroupType get groupType = > throw _privateConstructorUsedError ;
2024-06-23 00:26:24 +08:00
List < Proxy > get proxies = > throw _privateConstructorUsedError ;
int get columns = > throw _privateConstructorUsedError ;
2024-05-10 10:11:27 +08:00
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxyGroupSelectorState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-06-23 00:26:24 +08:00
$ProxyGroupSelectorStateCopyWith < ProxyGroupSelectorState > get copyWith = >
throw _privateConstructorUsedError ;
2024-05-10 10:11:27 +08:00
}
/// @nodoc
2024-06-23 00:26:24 +08:00
abstract class $ProxyGroupSelectorStateCopyWith < $Res > {
factory $ProxyGroupSelectorStateCopyWith ( ProxyGroupSelectorState value ,
$Res Function ( ProxyGroupSelectorState ) then ) =
_ $ProxyGroupSelectorStateCopyWithImpl < $Res , ProxyGroupSelectorState > ;
2024-05-10 10:11:27 +08:00
@ useResult
2024-05-20 15:15:09 +08:00
$Res call (
2025-01-13 19:08:17 +08:00
{ String ? testUrl ,
ProxiesSortType proxiesSortType ,
2024-06-23 00:26:24 +08:00
ProxyCardType proxyCardType ,
2024-05-20 15:15:09 +08:00
num sortNum ,
2024-07-26 08:05:22 +08:00
GroupType groupType ,
2024-06-23 00:26:24 +08:00
List < Proxy > proxies ,
int columns } ) ;
2024-05-10 10:11:27 +08:00
}
/// @nodoc
2024-06-23 00:26:24 +08:00
class _ $ProxyGroupSelectorStateCopyWithImpl < $Res ,
$Val extends ProxyGroupSelectorState >
implements $ProxyGroupSelectorStateCopyWith < $Res > {
_ $ProxyGroupSelectorStateCopyWithImpl ( this . _value , this . _then ) ;
2024-05-10 10:11:27 +08:00
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxyGroupSelectorState
/// with the given fields replaced by the non-null parameter values.
2024-05-06 10:32:39 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
2025-01-13 19:08:17 +08:00
Object ? testUrl = freezed ,
2024-05-06 10:32:39 +08:00
Object ? proxiesSortType = null ,
2024-06-23 00:26:24 +08:00
Object ? proxyCardType = null ,
2024-05-06 10:32:39 +08:00
Object ? sortNum = null ,
2024-07-26 08:05:22 +08:00
Object ? groupType = null ,
2024-06-23 00:26:24 +08:00
Object ? proxies = null ,
Object ? columns = null ,
2024-05-06 10:32:39 +08:00
} ) {
return _then ( _value . copyWith (
2025-01-13 19:08:17 +08:00
testUrl: freezed = = testUrl
? _value . testUrl
: testUrl // ignore: cast_nullable_to_non_nullable
as String ? ,
2024-05-06 10:32:39 +08:00
proxiesSortType: null = = proxiesSortType
? _value . proxiesSortType
: proxiesSortType // ignore: cast_nullable_to_non_nullable
as ProxiesSortType ,
2024-06-23 00:26:24 +08:00
proxyCardType: null = = proxyCardType
? _value . proxyCardType
: proxyCardType // ignore: cast_nullable_to_non_nullable
as ProxyCardType ,
2024-05-06 10:32:39 +08:00
sortNum: null = = sortNum
? _value . sortNum
: sortNum // ignore: cast_nullable_to_non_nullable
as num ,
2024-07-26 08:05:22 +08:00
groupType: null = = groupType
? _value . groupType
: groupType // ignore: cast_nullable_to_non_nullable
as GroupType ,
2024-06-23 00:26:24 +08:00
proxies: null = = proxies
? _value . proxies
: proxies // ignore: cast_nullable_to_non_nullable
as List < Proxy > ,
columns: null = = columns
? _value . columns
: columns // ignore: cast_nullable_to_non_nullable
as int ,
2024-05-06 10:32:39 +08:00
) as $Val ) ;
}
}
/// @nodoc
2024-06-23 00:26:24 +08:00
abstract class _ $ $ProxyGroupSelectorStateImplCopyWith < $Res >
implements $ProxyGroupSelectorStateCopyWith < $Res > {
factory _ $ $ProxyGroupSelectorStateImplCopyWith (
_ $ProxyGroupSelectorStateImpl value ,
$Res Function ( _ $ProxyGroupSelectorStateImpl ) then ) =
__ $ $ProxyGroupSelectorStateImplCopyWithImpl < $Res > ;
2024-05-06 10:32:39 +08:00
@ override
@ useResult
2024-05-20 15:15:09 +08:00
$Res call (
2025-01-13 19:08:17 +08:00
{ String ? testUrl ,
ProxiesSortType proxiesSortType ,
2024-06-23 00:26:24 +08:00
ProxyCardType proxyCardType ,
2024-05-20 15:15:09 +08:00
num sortNum ,
2024-07-26 08:05:22 +08:00
GroupType groupType ,
2024-06-23 00:26:24 +08:00
List < Proxy > proxies ,
int columns } ) ;
2024-05-06 10:32:39 +08:00
}
/// @nodoc
2024-06-23 00:26:24 +08:00
class __ $ $ProxyGroupSelectorStateImplCopyWithImpl < $Res >
extends _ $ProxyGroupSelectorStateCopyWithImpl < $Res ,
_ $ProxyGroupSelectorStateImpl >
implements _ $ $ProxyGroupSelectorStateImplCopyWith < $Res > {
__ $ $ProxyGroupSelectorStateImplCopyWithImpl (
_ $ProxyGroupSelectorStateImpl _value ,
$Res Function ( _ $ProxyGroupSelectorStateImpl ) _then )
2024-05-06 10:32:39 +08:00
: super ( _value , _then ) ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxyGroupSelectorState
/// with the given fields replaced by the non-null parameter values.
2024-05-06 10:32:39 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
2025-01-13 19:08:17 +08:00
Object ? testUrl = freezed ,
2024-05-06 10:32:39 +08:00
Object ? proxiesSortType = null ,
2024-06-23 00:26:24 +08:00
Object ? proxyCardType = null ,
2024-05-06 10:32:39 +08:00
Object ? sortNum = null ,
2024-07-26 08:05:22 +08:00
Object ? groupType = null ,
2024-06-23 00:26:24 +08:00
Object ? proxies = null ,
Object ? columns = null ,
2024-05-06 10:32:39 +08:00
} ) {
2024-06-23 00:26:24 +08:00
return _then ( _ $ProxyGroupSelectorStateImpl (
2025-01-13 19:08:17 +08:00
testUrl: freezed = = testUrl
? _value . testUrl
: testUrl // ignore: cast_nullable_to_non_nullable
as String ? ,
2024-05-06 10:32:39 +08:00
proxiesSortType: null = = proxiesSortType
? _value . proxiesSortType
: proxiesSortType // ignore: cast_nullable_to_non_nullable
as ProxiesSortType ,
2024-06-23 00:26:24 +08:00
proxyCardType: null = = proxyCardType
? _value . proxyCardType
: proxyCardType // ignore: cast_nullable_to_non_nullable
as ProxyCardType ,
2024-05-06 10:32:39 +08:00
sortNum: null = = sortNum
? _value . sortNum
: sortNum // ignore: cast_nullable_to_non_nullable
as num ,
2024-07-26 08:05:22 +08:00
groupType: null = = groupType
? _value . groupType
: groupType // ignore: cast_nullable_to_non_nullable
as GroupType ,
2024-06-23 00:26:24 +08:00
proxies: null = = proxies
? _value . _proxies
: proxies // ignore: cast_nullable_to_non_nullable
as List < Proxy > ,
columns: null = = columns
? _value . columns
: columns // ignore: cast_nullable_to_non_nullable
as int ,
2024-05-06 10:32:39 +08:00
) ) ;
}
}
/// @nodoc
2024-06-23 00:26:24 +08:00
class _ $ProxyGroupSelectorStateImpl implements _ProxyGroupSelectorState {
const _ $ProxyGroupSelectorStateImpl (
2025-01-13 19:08:17 +08:00
{ required this . testUrl ,
required this . proxiesSortType ,
2024-06-23 00:26:24 +08:00
required this . proxyCardType ,
2024-05-06 14:03:45 +08:00
required this . sortNum ,
2024-07-26 08:05:22 +08:00
required this . groupType ,
2024-06-23 00:26:24 +08:00
required final List < Proxy > proxies ,
required this . columns } )
: _proxies = proxies ;
2024-05-06 10:32:39 +08:00
2025-01-13 19:08:17 +08:00
@ override
final String ? testUrl ;
2024-05-06 10:32:39 +08:00
@ override
final ProxiesSortType proxiesSortType ;
@ override
2024-06-23 00:26:24 +08:00
final ProxyCardType proxyCardType ;
@ override
2024-05-06 10:32:39 +08:00
final num sortNum ;
2024-07-26 08:05:22 +08:00
@ override
final GroupType groupType ;
2024-06-23 00:26:24 +08:00
final List < Proxy > _proxies ;
2024-05-06 14:03:45 +08:00
@ override
2024-06-23 00:26:24 +08:00
List < Proxy > get proxies {
if ( _proxies is EqualUnmodifiableListView ) return _proxies ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _proxies ) ;
}
2024-05-20 15:15:09 +08:00
@ override
2024-06-23 00:26:24 +08:00
final int columns ;
2024-05-06 10:32:39 +08:00
@ override
String toString ( ) {
2025-01-13 19:08:17 +08:00
return ' ProxyGroupSelectorState(testUrl: $ testUrl , proxiesSortType: $ proxiesSortType , proxyCardType: $ proxyCardType , sortNum: $ sortNum , groupType: $ groupType , proxies: $ proxies , columns: $ columns ) ' ;
2024-05-06 10:32:39 +08:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2024-06-23 00:26:24 +08:00
other is _ $ProxyGroupSelectorStateImpl & &
2025-01-13 19:08:17 +08:00
( identical ( other . testUrl , testUrl ) | | other . testUrl = = testUrl ) & &
2024-05-06 10:32:39 +08:00
( identical ( other . proxiesSortType , proxiesSortType ) | |
other . proxiesSortType = = proxiesSortType ) & &
2024-06-23 00:26:24 +08:00
( identical ( other . proxyCardType , proxyCardType ) | |
other . proxyCardType = = proxyCardType ) & &
2024-05-06 14:03:45 +08:00
( identical ( other . sortNum , sortNum ) | | other . sortNum = = sortNum ) & &
2024-07-26 08:05:22 +08:00
( identical ( other . groupType , groupType ) | |
other . groupType = = groupType ) & &
2024-06-23 00:26:24 +08:00
const DeepCollectionEquality ( ) . equals ( other . _proxies , _proxies ) & &
( identical ( other . columns , columns ) | | other . columns = = columns ) ) ;
2024-05-06 10:32:39 +08:00
}
@ override
2024-07-26 08:05:22 +08:00
int get hashCode = > Object . hash (
runtimeType ,
2025-01-13 19:08:17 +08:00
testUrl ,
2024-07-26 08:05:22 +08:00
proxiesSortType ,
proxyCardType ,
sortNum ,
groupType ,
const DeepCollectionEquality ( ) . hash ( _proxies ) ,
columns ) ;
2024-05-06 10:32:39 +08:00
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxyGroupSelectorState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-05-06 10:32:39 +08:00
@ override
@ pragma ( ' vm:prefer-inline ' )
2024-06-23 00:26:24 +08:00
_ $ $ProxyGroupSelectorStateImplCopyWith < _ $ProxyGroupSelectorStateImpl >
get copyWith = > __ $ $ProxyGroupSelectorStateImplCopyWithImpl <
_ $ProxyGroupSelectorStateImpl > ( this , _ $identity ) ;
2024-05-06 10:32:39 +08:00
}
2024-06-23 00:26:24 +08:00
abstract class _ProxyGroupSelectorState implements ProxyGroupSelectorState {
const factory _ProxyGroupSelectorState (
2025-01-13 19:08:17 +08:00
{ required final String ? testUrl ,
required final ProxiesSortType proxiesSortType ,
2024-06-23 00:26:24 +08:00
required final ProxyCardType proxyCardType ,
2024-05-06 14:03:45 +08:00
required final num sortNum ,
2024-07-26 08:05:22 +08:00
required final GroupType groupType ,
2024-06-23 00:26:24 +08:00
required final List < Proxy > proxies ,
required final int columns } ) = _ $ProxyGroupSelectorStateImpl ;
2024-05-06 10:32:39 +08:00
2025-01-13 19:08:17 +08:00
@ override
String ? get testUrl ;
2024-05-06 10:32:39 +08:00
@ override
ProxiesSortType get proxiesSortType ;
@ override
2024-06-23 00:26:24 +08:00
ProxyCardType get proxyCardType ;
@ override
2024-05-06 10:32:39 +08:00
num get sortNum ;
@ override
2024-07-26 08:05:22 +08:00
GroupType get groupType ;
@ override
2024-06-23 00:26:24 +08:00
List < Proxy > get proxies ;
2024-05-06 14:03:45 +08:00
@ override
2024-06-23 00:26:24 +08:00
int get columns ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxyGroupSelectorState
/// with the given fields replaced by the non-null parameter values.
2024-05-20 15:15:09 +08:00
@ override
2024-11-09 20:17:57 +08:00
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-06-23 00:26:24 +08:00
_ $ $ProxyGroupSelectorStateImplCopyWith < _ $ProxyGroupSelectorStateImpl >
2024-05-06 10:32:39 +08:00
get copyWith = > throw _privateConstructorUsedError ;
}
2024-05-20 15:15:09 +08:00
/// @nodoc
mixin _ $MoreToolsSelectorState {
List < NavigationItem > get navigationItems = >
throw _privateConstructorUsedError ;
2024-11-09 20:17:57 +08:00
/// Create a copy of MoreToolsSelectorState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-05-20 15:15:09 +08:00
$MoreToolsSelectorStateCopyWith < MoreToolsSelectorState > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $MoreToolsSelectorStateCopyWith < $Res > {
factory $MoreToolsSelectorStateCopyWith ( MoreToolsSelectorState value ,
$Res Function ( MoreToolsSelectorState ) then ) =
_ $MoreToolsSelectorStateCopyWithImpl < $Res , MoreToolsSelectorState > ;
@ useResult
$Res call ( { List < NavigationItem > navigationItems } ) ;
}
/// @nodoc
class _ $MoreToolsSelectorStateCopyWithImpl < $Res ,
$Val extends MoreToolsSelectorState >
implements $MoreToolsSelectorStateCopyWith < $Res > {
_ $MoreToolsSelectorStateCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2024-11-09 20:17:57 +08:00
/// Create a copy of MoreToolsSelectorState
/// with the given fields replaced by the non-null parameter values.
2024-05-20 15:15:09 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? navigationItems = null ,
} ) {
return _then ( _value . copyWith (
navigationItems: null = = navigationItems
? _value . navigationItems
: navigationItems // ignore: cast_nullable_to_non_nullable
as List < NavigationItem > ,
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $MoreToolsSelectorStateImplCopyWith < $Res >
implements $MoreToolsSelectorStateCopyWith < $Res > {
factory _ $ $MoreToolsSelectorStateImplCopyWith (
_ $MoreToolsSelectorStateImpl value ,
$Res Function ( _ $MoreToolsSelectorStateImpl ) then ) =
__ $ $MoreToolsSelectorStateImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call ( { List < NavigationItem > navigationItems } ) ;
}
/// @nodoc
class __ $ $MoreToolsSelectorStateImplCopyWithImpl < $Res >
extends _ $MoreToolsSelectorStateCopyWithImpl < $Res ,
_ $MoreToolsSelectorStateImpl >
implements _ $ $MoreToolsSelectorStateImplCopyWith < $Res > {
__ $ $MoreToolsSelectorStateImplCopyWithImpl (
_ $MoreToolsSelectorStateImpl _value ,
$Res Function ( _ $MoreToolsSelectorStateImpl ) _then )
: super ( _value , _then ) ;
2024-11-09 20:17:57 +08:00
/// Create a copy of MoreToolsSelectorState
/// with the given fields replaced by the non-null parameter values.
2024-05-20 15:15:09 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? navigationItems = null ,
} ) {
return _then ( _ $MoreToolsSelectorStateImpl (
navigationItems: null = = navigationItems
? _value . _navigationItems
: navigationItems // ignore: cast_nullable_to_non_nullable
as List < NavigationItem > ,
) ) ;
}
}
/// @nodoc
class _ $MoreToolsSelectorStateImpl implements _MoreToolsSelectorState {
const _ $MoreToolsSelectorStateImpl (
{ required final List < NavigationItem > navigationItems } )
: _navigationItems = navigationItems ;
final List < NavigationItem > _navigationItems ;
@ override
List < NavigationItem > get navigationItems {
if ( _navigationItems is EqualUnmodifiableListView ) return _navigationItems ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _navigationItems ) ;
}
@ override
String toString ( ) {
return ' MoreToolsSelectorState(navigationItems: $ navigationItems ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $MoreToolsSelectorStateImpl & &
const DeepCollectionEquality ( )
. equals ( other . _navigationItems , _navigationItems ) ) ;
}
@ override
int get hashCode = > Object . hash (
runtimeType , const DeepCollectionEquality ( ) . hash ( _navigationItems ) ) ;
2024-11-09 20:17:57 +08:00
/// Create a copy of MoreToolsSelectorState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-05-20 15:15:09 +08:00
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $MoreToolsSelectorStateImplCopyWith < _ $MoreToolsSelectorStateImpl >
get copyWith = > __ $ $MoreToolsSelectorStateImplCopyWithImpl <
_ $MoreToolsSelectorStateImpl > ( this , _ $identity ) ;
}
abstract class _MoreToolsSelectorState implements MoreToolsSelectorState {
const factory _MoreToolsSelectorState (
{ required final List < NavigationItem > navigationItems } ) =
_ $MoreToolsSelectorStateImpl ;
@ override
List < NavigationItem > get navigationItems ;
2024-11-09 20:17:57 +08:00
/// Create a copy of MoreToolsSelectorState
/// with the given fields replaced by the non-null parameter values.
2024-05-20 15:15:09 +08:00
@ override
2024-11-09 20:17:57 +08:00
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-05-20 15:15:09 +08:00
_ $ $MoreToolsSelectorStateImplCopyWith < _ $MoreToolsSelectorStateImpl >
get copyWith = > throw _privateConstructorUsedError ;
}
2024-06-03 11:24:41 +08:00
/// @nodoc
mixin _ $PackageListSelectorState {
2024-08-05 19:25:35 +08:00
List < Package > get packages = > throw _privateConstructorUsedError ;
2024-06-03 11:24:41 +08:00
AccessControl get accessControl = > throw _privateConstructorUsedError ;
2024-11-09 20:17:57 +08:00
/// Create a copy of PackageListSelectorState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-06-03 11:24:41 +08:00
$PackageListSelectorStateCopyWith < PackageListSelectorState > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $PackageListSelectorStateCopyWith < $Res > {
factory $PackageListSelectorStateCopyWith ( PackageListSelectorState value ,
$Res Function ( PackageListSelectorState ) then ) =
_ $PackageListSelectorStateCopyWithImpl < $Res , PackageListSelectorState > ;
@ useResult
2025-02-09 18:39:38 +08:00
$Res call ( { List < Package > packages , AccessControl accessControl } ) ;
2024-06-03 11:24:41 +08:00
$AccessControlCopyWith < $Res > get accessControl ;
}
/// @nodoc
class _ $PackageListSelectorStateCopyWithImpl < $Res ,
$Val extends PackageListSelectorState >
implements $PackageListSelectorStateCopyWith < $Res > {
_ $PackageListSelectorStateCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2024-11-09 20:17:57 +08:00
/// Create a copy of PackageListSelectorState
/// with the given fields replaced by the non-null parameter values.
2024-06-03 11:24:41 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
2024-08-05 19:25:35 +08:00
Object ? packages = null ,
2024-06-03 11:24:41 +08:00
Object ? accessControl = null ,
} ) {
return _then ( _value . copyWith (
2024-08-05 19:25:35 +08:00
packages: null = = packages
? _value . packages
: packages // ignore: cast_nullable_to_non_nullable
as List < Package > ,
2024-06-03 11:24:41 +08:00
accessControl: null = = accessControl
? _value . accessControl
: accessControl // ignore: cast_nullable_to_non_nullable
as AccessControl ,
) as $Val ) ;
}
2024-11-09 20:17:57 +08:00
/// Create a copy of PackageListSelectorState
/// with the given fields replaced by the non-null parameter values.
2024-06-03 11:24:41 +08:00
@ override
@ pragma ( ' vm:prefer-inline ' )
$AccessControlCopyWith < $Res > get accessControl {
return $AccessControlCopyWith < $Res > ( _value . accessControl , ( value ) {
return _then ( _value . copyWith ( accessControl: value ) as $Val ) ;
} ) ;
}
}
/// @nodoc
abstract class _ $ $PackageListSelectorStateImplCopyWith < $Res >
implements $PackageListSelectorStateCopyWith < $Res > {
factory _ $ $PackageListSelectorStateImplCopyWith (
_ $PackageListSelectorStateImpl value ,
$Res Function ( _ $PackageListSelectorStateImpl ) then ) =
__ $ $PackageListSelectorStateImplCopyWithImpl < $Res > ;
@ override
@ useResult
2025-02-09 18:39:38 +08:00
$Res call ( { List < Package > packages , AccessControl accessControl } ) ;
2024-06-03 11:24:41 +08:00
@ override
$AccessControlCopyWith < $Res > get accessControl ;
}
/// @nodoc
class __ $ $PackageListSelectorStateImplCopyWithImpl < $Res >
extends _ $PackageListSelectorStateCopyWithImpl < $Res ,
_ $PackageListSelectorStateImpl >
implements _ $ $PackageListSelectorStateImplCopyWith < $Res > {
__ $ $PackageListSelectorStateImplCopyWithImpl (
_ $PackageListSelectorStateImpl _value ,
$Res Function ( _ $PackageListSelectorStateImpl ) _then )
: super ( _value , _then ) ;
2024-11-09 20:17:57 +08:00
/// Create a copy of PackageListSelectorState
/// with the given fields replaced by the non-null parameter values.
2024-06-03 11:24:41 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
2024-08-05 19:25:35 +08:00
Object ? packages = null ,
2024-06-03 11:24:41 +08:00
Object ? accessControl = null ,
} ) {
return _then ( _ $PackageListSelectorStateImpl (
2024-08-05 19:25:35 +08:00
packages: null = = packages
? _value . _packages
: packages // ignore: cast_nullable_to_non_nullable
as List < Package > ,
2024-06-03 11:24:41 +08:00
accessControl: null = = accessControl
? _value . accessControl
: accessControl // ignore: cast_nullable_to_non_nullable
as AccessControl ,
) ) ;
}
}
/// @nodoc
class _ $PackageListSelectorStateImpl implements _PackageListSelectorState {
const _ $PackageListSelectorStateImpl (
2025-02-09 18:39:38 +08:00
{ required final List < Package > packages , required this . accessControl } )
2024-08-05 19:25:35 +08:00
: _packages = packages ;
final List < Package > _packages ;
@ override
List < Package > get packages {
if ( _packages is EqualUnmodifiableListView ) return _packages ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _packages ) ;
}
2024-06-03 11:24:41 +08:00
@ override
final AccessControl accessControl ;
@ override
String toString ( ) {
2025-02-09 18:39:38 +08:00
return ' PackageListSelectorState(packages: $ packages , accessControl: $ accessControl ) ' ;
2024-06-03 11:24:41 +08:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $PackageListSelectorStateImpl & &
2024-08-05 19:25:35 +08:00
const DeepCollectionEquality ( ) . equals ( other . _packages , _packages ) & &
2024-06-03 11:24:41 +08:00
( identical ( other . accessControl , accessControl ) | |
2025-02-09 18:39:38 +08:00
other . accessControl = = accessControl ) ) ;
2024-06-03 11:24:41 +08:00
}
@ override
2025-02-09 18:39:38 +08:00
int get hashCode = > Object . hash ( runtimeType ,
const DeepCollectionEquality ( ) . hash ( _packages ) , accessControl ) ;
2024-06-03 11:24:41 +08:00
2024-11-09 20:17:57 +08:00
/// Create a copy of PackageListSelectorState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-06-03 11:24:41 +08:00
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $PackageListSelectorStateImplCopyWith < _ $PackageListSelectorStateImpl >
get copyWith = > __ $ $PackageListSelectorStateImplCopyWithImpl <
_ $PackageListSelectorStateImpl > ( this , _ $identity ) ;
}
abstract class _PackageListSelectorState implements PackageListSelectorState {
const factory _PackageListSelectorState (
2025-02-09 18:39:38 +08:00
{ required final List < Package > packages ,
required final AccessControl accessControl } ) =
_ $PackageListSelectorStateImpl ;
2024-06-03 11:24:41 +08:00
2024-08-05 19:25:35 +08:00
@ override
List < Package > get packages ;
2024-06-03 11:24:41 +08:00
@ override
AccessControl get accessControl ;
2024-11-09 20:17:57 +08:00
/// Create a copy of PackageListSelectorState
/// with the given fields replaced by the non-null parameter values.
2024-06-03 11:24:41 +08:00
@ override
2024-11-09 20:17:57 +08:00
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-06-03 11:24:41 +08:00
_ $ $PackageListSelectorStateImplCopyWith < _ $PackageListSelectorStateImpl >
get copyWith = > throw _privateConstructorUsedError ;
}
2024-07-15 22:06:09 +08:00
2024-07-24 01:27:49 +08:00
/// @nodoc
mixin _ $ProxiesListHeaderSelectorState {
double get offset = > throw _privateConstructorUsedError ;
int get currentIndex = > throw _privateConstructorUsedError ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxiesListHeaderSelectorState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-07-24 01:27:49 +08:00
$ProxiesListHeaderSelectorStateCopyWith < ProxiesListHeaderSelectorState >
get copyWith = > throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $ProxiesListHeaderSelectorStateCopyWith < $Res > {
factory $ProxiesListHeaderSelectorStateCopyWith (
ProxiesListHeaderSelectorState value ,
$Res Function ( ProxiesListHeaderSelectorState ) then ) =
_ $ProxiesListHeaderSelectorStateCopyWithImpl < $Res ,
ProxiesListHeaderSelectorState > ;
@ useResult
$Res call ( { double offset , int currentIndex } ) ;
}
/// @nodoc
class _ $ProxiesListHeaderSelectorStateCopyWithImpl < $Res ,
$Val extends ProxiesListHeaderSelectorState >
implements $ProxiesListHeaderSelectorStateCopyWith < $Res > {
_ $ProxiesListHeaderSelectorStateCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxiesListHeaderSelectorState
/// with the given fields replaced by the non-null parameter values.
2024-07-24 01:27:49 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? offset = null ,
Object ? currentIndex = null ,
} ) {
return _then ( _value . copyWith (
offset: null = = offset
? _value . offset
: offset // ignore: cast_nullable_to_non_nullable
as double ,
currentIndex: null = = currentIndex
? _value . currentIndex
: currentIndex // ignore: cast_nullable_to_non_nullable
as int ,
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $ProxiesListHeaderSelectorStateImplCopyWith < $Res >
implements $ProxiesListHeaderSelectorStateCopyWith < $Res > {
factory _ $ $ProxiesListHeaderSelectorStateImplCopyWith (
_ $ProxiesListHeaderSelectorStateImpl value ,
$Res Function ( _ $ProxiesListHeaderSelectorStateImpl ) then ) =
__ $ $ProxiesListHeaderSelectorStateImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call ( { double offset , int currentIndex } ) ;
}
/// @nodoc
class __ $ $ProxiesListHeaderSelectorStateImplCopyWithImpl < $Res >
extends _ $ProxiesListHeaderSelectorStateCopyWithImpl < $Res ,
_ $ProxiesListHeaderSelectorStateImpl >
implements _ $ $ProxiesListHeaderSelectorStateImplCopyWith < $Res > {
__ $ $ProxiesListHeaderSelectorStateImplCopyWithImpl (
_ $ProxiesListHeaderSelectorStateImpl _value ,
$Res Function ( _ $ProxiesListHeaderSelectorStateImpl ) _then )
: super ( _value , _then ) ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxiesListHeaderSelectorState
/// with the given fields replaced by the non-null parameter values.
2024-07-24 01:27:49 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? offset = null ,
Object ? currentIndex = null ,
} ) {
return _then ( _ $ProxiesListHeaderSelectorStateImpl (
offset: null = = offset
? _value . offset
: offset // ignore: cast_nullable_to_non_nullable
as double ,
currentIndex: null = = currentIndex
? _value . currentIndex
: currentIndex // ignore: cast_nullable_to_non_nullable
as int ,
) ) ;
}
}
/// @nodoc
class _ $ProxiesListHeaderSelectorStateImpl
implements _ProxiesListHeaderSelectorState {
const _ $ProxiesListHeaderSelectorStateImpl (
{ required this . offset , required this . currentIndex } ) ;
@ override
final double offset ;
@ override
final int currentIndex ;
@ override
String toString ( ) {
return ' ProxiesListHeaderSelectorState(offset: $ offset , currentIndex: $ currentIndex ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $ProxiesListHeaderSelectorStateImpl & &
( identical ( other . offset , offset ) | | other . offset = = offset ) & &
( identical ( other . currentIndex , currentIndex ) | |
other . currentIndex = = currentIndex ) ) ;
}
@ override
int get hashCode = > Object . hash ( runtimeType , offset , currentIndex ) ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxiesListHeaderSelectorState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-07-24 01:27:49 +08:00
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $ProxiesListHeaderSelectorStateImplCopyWith <
_ $ProxiesListHeaderSelectorStateImpl >
get copyWith = > __ $ $ProxiesListHeaderSelectorStateImplCopyWithImpl <
_ $ProxiesListHeaderSelectorStateImpl > ( this , _ $identity ) ;
}
abstract class _ProxiesListHeaderSelectorState
implements ProxiesListHeaderSelectorState {
const factory _ProxiesListHeaderSelectorState (
{ required final double offset ,
required final int currentIndex } ) = _ $ProxiesListHeaderSelectorStateImpl ;
@ override
double get offset ;
@ override
int get currentIndex ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxiesListHeaderSelectorState
/// with the given fields replaced by the non-null parameter values.
2024-07-24 01:27:49 +08:00
@ override
2024-11-09 20:17:57 +08:00
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-07-24 01:27:49 +08:00
_ $ $ProxiesListHeaderSelectorStateImplCopyWith <
_ $ProxiesListHeaderSelectorStateImpl >
get copyWith = > throw _privateConstructorUsedError ;
}
2024-07-26 08:05:22 +08:00
/// @nodoc
2024-08-04 08:21:14 +08:00
mixin _ $ProxiesActionsState {
2025-02-09 18:39:38 +08:00
PageLabel get pageLabel = > throw _privateConstructorUsedError ;
ProxiesType get type = > throw _privateConstructorUsedError ;
bool get hasProviders = > throw _privateConstructorUsedError ;
2024-07-26 08:05:22 +08:00
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxiesActionsState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-08-04 08:21:14 +08:00
$ProxiesActionsStateCopyWith < ProxiesActionsState > get copyWith = >
throw _privateConstructorUsedError ;
2024-07-26 08:05:22 +08:00
}
/// @nodoc
2024-08-04 08:21:14 +08:00
abstract class $ProxiesActionsStateCopyWith < $Res > {
factory $ProxiesActionsStateCopyWith (
ProxiesActionsState value , $Res Function ( ProxiesActionsState ) then ) =
_ $ProxiesActionsStateCopyWithImpl < $Res , ProxiesActionsState > ;
2024-07-26 08:05:22 +08:00
@ useResult
2025-02-09 18:39:38 +08:00
$Res call ( { PageLabel pageLabel , ProxiesType type , bool hasProviders } ) ;
2024-07-26 08:05:22 +08:00
}
/// @nodoc
2024-08-04 08:21:14 +08:00
class _ $ProxiesActionsStateCopyWithImpl < $Res , $Val extends ProxiesActionsState >
implements $ProxiesActionsStateCopyWith < $Res > {
_ $ProxiesActionsStateCopyWithImpl ( this . _value , this . _then ) ;
2024-07-26 08:05:22 +08:00
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxiesActionsState
/// with the given fields replaced by the non-null parameter values.
2024-07-26 08:05:22 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
2025-02-09 18:39:38 +08:00
Object ? pageLabel = null ,
Object ? type = null ,
Object ? hasProviders = null ,
2024-07-26 08:05:22 +08:00
} ) {
return _then ( _value . copyWith (
2025-02-09 18:39:38 +08:00
pageLabel: null = = pageLabel
? _value . pageLabel
: pageLabel // ignore: cast_nullable_to_non_nullable
as PageLabel ,
type: null = = type
? _value . type
: type // ignore: cast_nullable_to_non_nullable
as ProxiesType ,
hasProviders: null = = hasProviders
? _value . hasProviders
: hasProviders // ignore: cast_nullable_to_non_nullable
2024-08-04 08:21:14 +08:00
as bool ,
2024-07-26 08:05:22 +08:00
) as $Val ) ;
}
}
/// @nodoc
2024-08-04 08:21:14 +08:00
abstract class _ $ $ProxiesActionsStateImplCopyWith < $Res >
implements $ProxiesActionsStateCopyWith < $Res > {
factory _ $ $ProxiesActionsStateImplCopyWith ( _ $ProxiesActionsStateImpl value ,
$Res Function ( _ $ProxiesActionsStateImpl ) then ) =
__ $ $ProxiesActionsStateImplCopyWithImpl < $Res > ;
2024-07-26 08:05:22 +08:00
@ override
@ useResult
2025-02-09 18:39:38 +08:00
$Res call ( { PageLabel pageLabel , ProxiesType type , bool hasProviders } ) ;
2024-07-26 08:05:22 +08:00
}
/// @nodoc
2024-08-04 08:21:14 +08:00
class __ $ $ProxiesActionsStateImplCopyWithImpl < $Res >
extends _ $ProxiesActionsStateCopyWithImpl < $Res , _ $ProxiesActionsStateImpl >
implements _ $ $ProxiesActionsStateImplCopyWith < $Res > {
__ $ $ProxiesActionsStateImplCopyWithImpl ( _ $ProxiesActionsStateImpl _value ,
$Res Function ( _ $ProxiesActionsStateImpl ) _then )
2024-07-26 08:05:22 +08:00
: super ( _value , _then ) ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxiesActionsState
/// with the given fields replaced by the non-null parameter values.
2024-07-26 08:05:22 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
2025-02-09 18:39:38 +08:00
Object ? pageLabel = null ,
Object ? type = null ,
Object ? hasProviders = null ,
2024-07-26 08:05:22 +08:00
} ) {
2024-08-04 08:21:14 +08:00
return _then ( _ $ProxiesActionsStateImpl (
2025-02-09 18:39:38 +08:00
pageLabel: null = = pageLabel
? _value . pageLabel
: pageLabel // ignore: cast_nullable_to_non_nullable
as PageLabel ,
type: null = = type
? _value . type
: type // ignore: cast_nullable_to_non_nullable
as ProxiesType ,
hasProviders: null = = hasProviders
? _value . hasProviders
: hasProviders // ignore: cast_nullable_to_non_nullable
2024-08-04 08:21:14 +08:00
as bool ,
2024-07-26 08:05:22 +08:00
) ) ;
}
}
/// @nodoc
2024-08-04 08:21:14 +08:00
class _ $ProxiesActionsStateImpl implements _ProxiesActionsState {
const _ $ProxiesActionsStateImpl (
2025-02-09 18:39:38 +08:00
{ required this . pageLabel ,
required this . type ,
required this . hasProviders } ) ;
2024-07-26 08:05:22 +08:00
@ override
2025-02-09 18:39:38 +08:00
final PageLabel pageLabel ;
@ override
final ProxiesType type ;
2024-07-26 08:05:22 +08:00
@ override
2025-02-09 18:39:38 +08:00
final bool hasProviders ;
2024-07-26 08:05:22 +08:00
@ override
String toString ( ) {
2025-02-09 18:39:38 +08:00
return ' ProxiesActionsState(pageLabel: $ pageLabel , type: $ type , hasProviders: $ hasProviders ) ' ;
2024-07-26 08:05:22 +08:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2024-08-04 08:21:14 +08:00
other is _ $ProxiesActionsStateImpl & &
2025-02-09 18:39:38 +08:00
( identical ( other . pageLabel , pageLabel ) | |
other . pageLabel = = pageLabel ) & &
( identical ( other . type , type ) | | other . type = = type ) & &
( identical ( other . hasProviders , hasProviders ) | |
other . hasProviders = = hasProviders ) ) ;
2024-07-26 08:05:22 +08:00
}
@ override
2025-02-09 18:39:38 +08:00
int get hashCode = > Object . hash ( runtimeType , pageLabel , type , hasProviders ) ;
2024-07-26 08:05:22 +08:00
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxiesActionsState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-07-26 08:05:22 +08:00
@ override
@ pragma ( ' vm:prefer-inline ' )
2024-08-04 08:21:14 +08:00
_ $ $ProxiesActionsStateImplCopyWith < _ $ProxiesActionsStateImpl > get copyWith = >
__ $ $ProxiesActionsStateImplCopyWithImpl < _ $ProxiesActionsStateImpl > (
this , _ $identity ) ;
2024-07-26 08:05:22 +08:00
}
2024-08-04 08:21:14 +08:00
abstract class _ProxiesActionsState implements ProxiesActionsState {
const factory _ProxiesActionsState (
2025-02-09 18:39:38 +08:00
{ required final PageLabel pageLabel ,
required final ProxiesType type ,
required final bool hasProviders } ) = _ $ProxiesActionsStateImpl ;
2024-07-26 08:05:22 +08:00
@ override
2025-02-09 18:39:38 +08:00
PageLabel get pageLabel ;
2024-07-26 08:05:22 +08:00
@ override
2025-02-09 18:39:38 +08:00
ProxiesType get type ;
@ override
bool get hasProviders ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxiesActionsState
/// with the given fields replaced by the non-null parameter values.
2024-07-26 08:05:22 +08:00
@ override
2024-11-09 20:17:57 +08:00
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-08-04 08:21:14 +08:00
_ $ $ProxiesActionsStateImplCopyWith < _ $ProxiesActionsStateImpl > get copyWith = >
throw _privateConstructorUsedError ;
2024-07-26 08:05:22 +08:00
}
2024-08-15 16:18:00 +08:00
/// @nodoc
mixin _ $ProxyState {
bool get isStart = > throw _privateConstructorUsedError ;
bool get systemProxy = > throw _privateConstructorUsedError ;
2024-11-09 20:17:57 +08:00
List < String > get bassDomain = > throw _privateConstructorUsedError ;
2024-08-15 16:18:00 +08:00
int get port = > throw _privateConstructorUsedError ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxyState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-08-15 16:18:00 +08:00
$ProxyStateCopyWith < ProxyState > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $ProxyStateCopyWith < $Res > {
factory $ProxyStateCopyWith (
ProxyState value , $Res Function ( ProxyState ) then ) =
_ $ProxyStateCopyWithImpl < $Res , ProxyState > ;
@ useResult
2024-11-09 20:17:57 +08:00
$Res call (
{ bool isStart , bool systemProxy , List < String > bassDomain , int port } ) ;
2024-08-15 16:18:00 +08:00
}
/// @nodoc
class _ $ProxyStateCopyWithImpl < $Res , $Val extends ProxyState >
implements $ProxyStateCopyWith < $Res > {
_ $ProxyStateCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxyState
/// with the given fields replaced by the non-null parameter values.
2024-08-15 16:18:00 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? isStart = null ,
Object ? systemProxy = null ,
2024-11-09 20:17:57 +08:00
Object ? bassDomain = null ,
2024-08-15 16:18:00 +08:00
Object ? port = null ,
} ) {
return _then ( _value . copyWith (
isStart: null = = isStart
? _value . isStart
: isStart // ignore: cast_nullable_to_non_nullable
as bool ,
systemProxy: null = = systemProxy
? _value . systemProxy
: systemProxy // ignore: cast_nullable_to_non_nullable
as bool ,
2024-11-09 20:17:57 +08:00
bassDomain: null = = bassDomain
? _value . bassDomain
: bassDomain // ignore: cast_nullable_to_non_nullable
as List < String > ,
2024-08-15 16:18:00 +08:00
port: null = = port
? _value . port
: port // ignore: cast_nullable_to_non_nullable
as int ,
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $ProxyStateImplCopyWith < $Res >
implements $ProxyStateCopyWith < $Res > {
factory _ $ $ProxyStateImplCopyWith (
_ $ProxyStateImpl value , $Res Function ( _ $ProxyStateImpl ) then ) =
__ $ $ProxyStateImplCopyWithImpl < $Res > ;
@ override
@ useResult
2024-11-09 20:17:57 +08:00
$Res call (
{ bool isStart , bool systemProxy , List < String > bassDomain , int port } ) ;
2024-08-15 16:18:00 +08:00
}
/// @nodoc
class __ $ $ProxyStateImplCopyWithImpl < $Res >
extends _ $ProxyStateCopyWithImpl < $Res , _ $ProxyStateImpl >
implements _ $ $ProxyStateImplCopyWith < $Res > {
__ $ $ProxyStateImplCopyWithImpl (
_ $ProxyStateImpl _value , $Res Function ( _ $ProxyStateImpl ) _then )
: super ( _value , _then ) ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxyState
/// with the given fields replaced by the non-null parameter values.
2024-08-15 16:18:00 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? isStart = null ,
Object ? systemProxy = null ,
2024-11-09 20:17:57 +08:00
Object ? bassDomain = null ,
2024-08-15 16:18:00 +08:00
Object ? port = null ,
} ) {
return _then ( _ $ProxyStateImpl (
isStart: null = = isStart
? _value . isStart
: isStart // ignore: cast_nullable_to_non_nullable
as bool ,
systemProxy: null = = systemProxy
? _value . systemProxy
: systemProxy // ignore: cast_nullable_to_non_nullable
as bool ,
2024-11-09 20:17:57 +08:00
bassDomain: null = = bassDomain
? _value . _bassDomain
: bassDomain // ignore: cast_nullable_to_non_nullable
as List < String > ,
2024-08-15 16:18:00 +08:00
port: null = = port
? _value . port
: port // ignore: cast_nullable_to_non_nullable
as int ,
) ) ;
}
}
/// @nodoc
class _ $ProxyStateImpl implements _ProxyState {
const _ $ProxyStateImpl (
2024-11-09 20:17:57 +08:00
{ required this . isStart ,
required this . systemProxy ,
required final List < String > bassDomain ,
required this . port } )
: _bassDomain = bassDomain ;
2024-08-15 16:18:00 +08:00
@ override
final bool isStart ;
@ override
final bool systemProxy ;
2024-11-09 20:17:57 +08:00
final List < String > _bassDomain ;
@ override
List < String > get bassDomain {
if ( _bassDomain is EqualUnmodifiableListView ) return _bassDomain ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _bassDomain ) ;
}
2024-08-15 16:18:00 +08:00
@ override
final int port ;
@ override
String toString ( ) {
2024-11-09 20:17:57 +08:00
return ' ProxyState(isStart: $ isStart , systemProxy: $ systemProxy , bassDomain: $ bassDomain , port: $ port ) ' ;
2024-08-15 16:18:00 +08:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $ProxyStateImpl & &
( identical ( other . isStart , isStart ) | | other . isStart = = isStart ) & &
( identical ( other . systemProxy , systemProxy ) | |
other . systemProxy = = systemProxy ) & &
2024-11-09 20:17:57 +08:00
const DeepCollectionEquality ( )
. equals ( other . _bassDomain , _bassDomain ) & &
2024-08-15 16:18:00 +08:00
( identical ( other . port , port ) | | other . port = = port ) ) ;
}
@ override
2024-11-09 20:17:57 +08:00
int get hashCode = > Object . hash ( runtimeType , isStart , systemProxy ,
const DeepCollectionEquality ( ) . hash ( _bassDomain ) , port ) ;
2024-08-15 16:18:00 +08:00
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxyState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-08-15 16:18:00 +08:00
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $ProxyStateImplCopyWith < _ $ProxyStateImpl > get copyWith = >
__ $ $ProxyStateImplCopyWithImpl < _ $ProxyStateImpl > ( this , _ $identity ) ;
}
abstract class _ProxyState implements ProxyState {
const factory _ProxyState (
{ required final bool isStart ,
required final bool systemProxy ,
2024-11-09 20:17:57 +08:00
required final List < String > bassDomain ,
2024-08-15 16:18:00 +08:00
required final int port } ) = _ $ProxyStateImpl ;
@ override
bool get isStart ;
@ override
bool get systemProxy ;
@ override
2024-11-09 20:17:57 +08:00
List < String > get bassDomain ;
@ override
2024-08-15 16:18:00 +08:00
int get port ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ProxyState
/// with the given fields replaced by the non-null parameter values.
2024-08-15 16:18:00 +08:00
@ override
2024-11-09 20:17:57 +08:00
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-08-15 16:18:00 +08:00
_ $ $ProxyStateImplCopyWith < _ $ProxyStateImpl > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
mixin _ $ClashConfigState {
2024-09-05 08:59:45 +08:00
bool get overrideDns = > throw _privateConstructorUsedError ;
2025-02-09 18:39:38 +08:00
ClashConfig get clashConfig = > throw _privateConstructorUsedError ;
2025-03-12 17:15:31 +08:00
OverrideData get overrideData = > throw _privateConstructorUsedError ;
2024-08-15 16:18:00 +08:00
2024-11-09 20:17:57 +08:00
/// Create a copy of ClashConfigState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-08-15 16:18:00 +08:00
$ClashConfigStateCopyWith < ClashConfigState > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $ClashConfigStateCopyWith < $Res > {
factory $ClashConfigStateCopyWith (
ClashConfigState value , $Res Function ( ClashConfigState ) then ) =
_ $ClashConfigStateCopyWithImpl < $Res , ClashConfigState > ;
@ useResult
2025-03-12 17:15:31 +08:00
$Res call (
{ bool overrideDns , ClashConfig clashConfig , OverrideData overrideData } ) ;
2025-02-09 18:39:38 +08:00
$ClashConfigCopyWith < $Res > get clashConfig ;
2025-03-12 17:15:31 +08:00
$OverrideDataCopyWith < $Res > get overrideData ;
2024-08-15 16:18:00 +08:00
}
/// @nodoc
class _ $ClashConfigStateCopyWithImpl < $Res , $Val extends ClashConfigState >
implements $ClashConfigStateCopyWith < $Res > {
_ $ClashConfigStateCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ClashConfigState
/// with the given fields replaced by the non-null parameter values.
2024-08-15 16:18:00 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
2024-09-05 08:59:45 +08:00
Object ? overrideDns = null ,
2025-02-09 18:39:38 +08:00
Object ? clashConfig = null ,
2025-03-12 17:15:31 +08:00
Object ? overrideData = null ,
2024-08-15 16:18:00 +08:00
} ) {
return _then ( _value . copyWith (
2024-09-05 08:59:45 +08:00
overrideDns: null = = overrideDns
? _value . overrideDns
: overrideDns // ignore: cast_nullable_to_non_nullable
as bool ,
2025-02-09 18:39:38 +08:00
clashConfig: null = = clashConfig
? _value . clashConfig
: clashConfig // ignore: cast_nullable_to_non_nullable
as ClashConfig ,
2025-03-12 17:15:31 +08:00
overrideData: null = = overrideData
? _value . overrideData
: overrideData // ignore: cast_nullable_to_non_nullable
as OverrideData ,
2024-08-15 16:18:00 +08:00
) as $Val ) ;
}
2024-11-09 20:17:57 +08:00
/// Create a copy of ClashConfigState
/// with the given fields replaced by the non-null parameter values.
2024-08-15 16:18:00 +08:00
@ override
@ pragma ( ' vm:prefer-inline ' )
2025-02-09 18:39:38 +08:00
$ClashConfigCopyWith < $Res > get clashConfig {
return $ClashConfigCopyWith < $Res > ( _value . clashConfig , ( value ) {
return _then ( _value . copyWith ( clashConfig: value ) as $Val ) ;
2024-08-26 20:44:30 +08:00
} ) ;
}
2025-03-12 17:15:31 +08:00
/// Create a copy of ClashConfigState
/// with the given fields replaced by the non-null parameter values.
@ override
@ pragma ( ' vm:prefer-inline ' )
$OverrideDataCopyWith < $Res > get overrideData {
return $OverrideDataCopyWith < $Res > ( _value . overrideData , ( value ) {
return _then ( _value . copyWith ( overrideData: value ) as $Val ) ;
} ) ;
}
2024-08-15 16:18:00 +08:00
}
/// @nodoc
abstract class _ $ $ClashConfigStateImplCopyWith < $Res >
implements $ClashConfigStateCopyWith < $Res > {
factory _ $ $ClashConfigStateImplCopyWith ( _ $ClashConfigStateImpl value ,
$Res Function ( _ $ClashConfigStateImpl ) then ) =
__ $ $ClashConfigStateImplCopyWithImpl < $Res > ;
@ override
@ useResult
2025-03-12 17:15:31 +08:00
$Res call (
{ bool overrideDns , ClashConfig clashConfig , OverrideData overrideData } ) ;
2025-02-09 18:39:38 +08:00
@ override
$ClashConfigCopyWith < $Res > get clashConfig ;
2025-03-12 17:15:31 +08:00
@ override
$OverrideDataCopyWith < $Res > get overrideData ;
2024-08-15 16:18:00 +08:00
}
/// @nodoc
class __ $ $ClashConfigStateImplCopyWithImpl < $Res >
extends _ $ClashConfigStateCopyWithImpl < $Res , _ $ClashConfigStateImpl >
implements _ $ $ClashConfigStateImplCopyWith < $Res > {
__ $ $ClashConfigStateImplCopyWithImpl ( _ $ClashConfigStateImpl _value ,
$Res Function ( _ $ClashConfigStateImpl ) _then )
: super ( _value , _then ) ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ClashConfigState
/// with the given fields replaced by the non-null parameter values.
2024-08-15 16:18:00 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
2024-09-05 08:59:45 +08:00
Object ? overrideDns = null ,
2025-02-09 18:39:38 +08:00
Object ? clashConfig = null ,
2025-03-12 17:15:31 +08:00
Object ? overrideData = null ,
2024-08-15 16:18:00 +08:00
} ) {
return _then ( _ $ClashConfigStateImpl (
2024-09-05 08:59:45 +08:00
overrideDns: null = = overrideDns
? _value . overrideDns
: overrideDns // ignore: cast_nullable_to_non_nullable
as bool ,
2025-02-09 18:39:38 +08:00
clashConfig: null = = clashConfig
? _value . clashConfig
: clashConfig // ignore: cast_nullable_to_non_nullable
as ClashConfig ,
2025-03-12 17:15:31 +08:00
overrideData: null = = overrideData
? _value . overrideData
: overrideData // ignore: cast_nullable_to_non_nullable
as OverrideData ,
2024-08-15 16:18:00 +08:00
) ) ;
}
}
/// @nodoc
class _ $ClashConfigStateImpl implements _ClashConfigState {
const _ $ClashConfigStateImpl (
2025-03-12 17:15:31 +08:00
{ required this . overrideDns ,
required this . clashConfig ,
required this . overrideData } ) ;
2024-08-15 16:18:00 +08:00
@ override
2025-02-09 18:39:38 +08:00
final bool overrideDns ;
2024-08-15 16:18:00 +08:00
@ override
2025-02-09 18:39:38 +08:00
final ClashConfig clashConfig ;
2025-03-12 17:15:31 +08:00
@ override
final OverrideData overrideData ;
2024-08-15 16:18:00 +08:00
@ override
String toString ( ) {
2025-03-12 17:15:31 +08:00
return ' ClashConfigState(overrideDns: $ overrideDns , clashConfig: $ clashConfig , overrideData: $ overrideData ) ' ;
2024-08-15 16:18:00 +08:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $ClashConfigStateImpl & &
2024-09-05 08:59:45 +08:00
( identical ( other . overrideDns , overrideDns ) | |
other . overrideDns = = overrideDns ) & &
2025-02-09 18:39:38 +08:00
( identical ( other . clashConfig , clashConfig ) | |
2025-03-12 17:15:31 +08:00
other . clashConfig = = clashConfig ) & &
( identical ( other . overrideData , overrideData ) | |
other . overrideData = = overrideData ) ) ;
2024-08-15 16:18:00 +08:00
}
@ override
2025-03-12 17:15:31 +08:00
int get hashCode = >
Object . hash ( runtimeType , overrideDns , clashConfig , overrideData ) ;
2024-08-15 16:18:00 +08:00
2024-11-09 20:17:57 +08:00
/// Create a copy of ClashConfigState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-08-15 16:18:00 +08:00
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $ClashConfigStateImplCopyWith < _ $ClashConfigStateImpl > get copyWith = >
__ $ $ClashConfigStateImplCopyWithImpl < _ $ClashConfigStateImpl > (
this , _ $identity ) ;
}
abstract class _ClashConfigState implements ClashConfigState {
const factory _ClashConfigState (
2025-02-09 18:39:38 +08:00
{ required final bool overrideDns ,
2025-03-12 17:15:31 +08:00
required final ClashConfig clashConfig ,
required final OverrideData overrideData } ) = _ $ClashConfigStateImpl ;
2025-02-09 18:39:38 +08:00
2024-08-15 16:18:00 +08:00
@ override
2024-09-05 08:59:45 +08:00
bool get overrideDns ;
@ override
2025-02-09 18:39:38 +08:00
ClashConfig get clashConfig ;
2025-03-12 17:15:31 +08:00
@ override
OverrideData get overrideData ;
2024-11-09 20:17:57 +08:00
/// Create a copy of ClashConfigState
/// with the given fields replaced by the non-null parameter values.
2024-08-15 16:18:00 +08:00
@ override
2024-11-09 20:17:57 +08:00
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-08-15 16:18:00 +08:00
_ $ $ClashConfigStateImplCopyWith < _ $ClashConfigStateImpl > get copyWith = >
2024-12-09 01:40:39 +08:00
throw _privateConstructorUsedError ;
}
/// @nodoc
mixin _ $DashboardState {
List < DashboardWidget > get dashboardWidgets = >
throw _privateConstructorUsedError ;
double get viewWidth = > throw _privateConstructorUsedError ;
/// Create a copy of DashboardState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$DashboardStateCopyWith < DashboardState > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $DashboardStateCopyWith < $Res > {
factory $DashboardStateCopyWith (
DashboardState value , $Res Function ( DashboardState ) then ) =
_ $DashboardStateCopyWithImpl < $Res , DashboardState > ;
@ useResult
$Res call ( { List < DashboardWidget > dashboardWidgets , double viewWidth } ) ;
}
/// @nodoc
class _ $DashboardStateCopyWithImpl < $Res , $Val extends DashboardState >
implements $DashboardStateCopyWith < $Res > {
_ $DashboardStateCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of DashboardState
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? dashboardWidgets = null ,
Object ? viewWidth = null ,
} ) {
return _then ( _value . copyWith (
dashboardWidgets: null = = dashboardWidgets
? _value . dashboardWidgets
: dashboardWidgets // ignore: cast_nullable_to_non_nullable
as List < DashboardWidget > ,
viewWidth: null = = viewWidth
? _value . viewWidth
: viewWidth // ignore: cast_nullable_to_non_nullable
as double ,
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $DashboardStateImplCopyWith < $Res >
implements $DashboardStateCopyWith < $Res > {
factory _ $ $DashboardStateImplCopyWith ( _ $DashboardStateImpl value ,
$Res Function ( _ $DashboardStateImpl ) then ) =
__ $ $DashboardStateImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call ( { List < DashboardWidget > dashboardWidgets , double viewWidth } ) ;
}
/// @nodoc
class __ $ $DashboardStateImplCopyWithImpl < $Res >
extends _ $DashboardStateCopyWithImpl < $Res , _ $DashboardStateImpl >
implements _ $ $DashboardStateImplCopyWith < $Res > {
__ $ $DashboardStateImplCopyWithImpl (
_ $DashboardStateImpl _value , $Res Function ( _ $DashboardStateImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of DashboardState
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? dashboardWidgets = null ,
Object ? viewWidth = null ,
} ) {
return _then ( _ $DashboardStateImpl (
dashboardWidgets: null = = dashboardWidgets
? _value . _dashboardWidgets
: dashboardWidgets // ignore: cast_nullable_to_non_nullable
as List < DashboardWidget > ,
viewWidth: null = = viewWidth
? _value . viewWidth
: viewWidth // ignore: cast_nullable_to_non_nullable
as double ,
) ) ;
}
}
/// @nodoc
class _ $DashboardStateImpl implements _DashboardState {
const _ $DashboardStateImpl (
{ required final List < DashboardWidget > dashboardWidgets ,
required this . viewWidth } )
: _dashboardWidgets = dashboardWidgets ;
final List < DashboardWidget > _dashboardWidgets ;
@ override
List < DashboardWidget > get dashboardWidgets {
if ( _dashboardWidgets is EqualUnmodifiableListView )
return _dashboardWidgets ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _dashboardWidgets ) ;
}
@ override
final double viewWidth ;
@ override
String toString ( ) {
return ' DashboardState(dashboardWidgets: $ dashboardWidgets , viewWidth: $ viewWidth ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $DashboardStateImpl & &
const DeepCollectionEquality ( )
. equals ( other . _dashboardWidgets , _dashboardWidgets ) & &
( identical ( other . viewWidth , viewWidth ) | |
other . viewWidth = = viewWidth ) ) ;
}
@ override
int get hashCode = > Object . hash ( runtimeType ,
const DeepCollectionEquality ( ) . hash ( _dashboardWidgets ) , viewWidth ) ;
/// Create a copy of DashboardState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $DashboardStateImplCopyWith < _ $DashboardStateImpl > get copyWith = >
__ $ $DashboardStateImplCopyWithImpl < _ $DashboardStateImpl > (
this , _ $identity ) ;
}
abstract class _DashboardState implements DashboardState {
const factory _DashboardState (
{ required final List < DashboardWidget > dashboardWidgets ,
required final double viewWidth } ) = _ $DashboardStateImpl ;
@ override
List < DashboardWidget > get dashboardWidgets ;
@ override
double get viewWidth ;
/// Create a copy of DashboardState
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $DashboardStateImplCopyWith < _ $DashboardStateImpl > get copyWith = >
2024-08-15 16:18:00 +08:00
throw _privateConstructorUsedError ;
}
2024-09-08 21:21:21 +08:00
2025-03-05 16:08:50 +08:00
/// @nodoc
mixin _ $ProxyCardState {
String get proxyName = > throw _privateConstructorUsedError ;
String ? get testUrl = > throw _privateConstructorUsedError ;
/// Create a copy of ProxyCardState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$ProxyCardStateCopyWith < ProxyCardState > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $ProxyCardStateCopyWith < $Res > {
factory $ProxyCardStateCopyWith (
ProxyCardState value , $Res Function ( ProxyCardState ) then ) =
_ $ProxyCardStateCopyWithImpl < $Res , ProxyCardState > ;
@ useResult
$Res call ( { String proxyName , String ? testUrl } ) ;
}
/// @nodoc
class _ $ProxyCardStateCopyWithImpl < $Res , $Val extends ProxyCardState >
implements $ProxyCardStateCopyWith < $Res > {
_ $ProxyCardStateCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of ProxyCardState
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? proxyName = null ,
Object ? testUrl = freezed ,
} ) {
return _then ( _value . copyWith (
proxyName: null = = proxyName
? _value . proxyName
: proxyName // ignore: cast_nullable_to_non_nullable
as String ,
testUrl: freezed = = testUrl
? _value . testUrl
: testUrl // ignore: cast_nullable_to_non_nullable
as String ? ,
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $ProxyCardStateImplCopyWith < $Res >
implements $ProxyCardStateCopyWith < $Res > {
factory _ $ $ProxyCardStateImplCopyWith ( _ $ProxyCardStateImpl value ,
$Res Function ( _ $ProxyCardStateImpl ) then ) =
__ $ $ProxyCardStateImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call ( { String proxyName , String ? testUrl } ) ;
}
/// @nodoc
class __ $ $ProxyCardStateImplCopyWithImpl < $Res >
extends _ $ProxyCardStateCopyWithImpl < $Res , _ $ProxyCardStateImpl >
implements _ $ $ProxyCardStateImplCopyWith < $Res > {
__ $ $ProxyCardStateImplCopyWithImpl (
_ $ProxyCardStateImpl _value , $Res Function ( _ $ProxyCardStateImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of ProxyCardState
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? proxyName = null ,
Object ? testUrl = freezed ,
} ) {
return _then ( _ $ProxyCardStateImpl (
proxyName: null = = proxyName
? _value . proxyName
: proxyName // ignore: cast_nullable_to_non_nullable
as String ,
testUrl: freezed = = testUrl
? _value . testUrl
: testUrl // ignore: cast_nullable_to_non_nullable
as String ? ,
) ) ;
}
}
/// @nodoc
class _ $ProxyCardStateImpl implements _ProxyCardState {
const _ $ProxyCardStateImpl ( { required this . proxyName , this . testUrl } ) ;
@ override
final String proxyName ;
@ override
final String ? testUrl ;
@ override
String toString ( ) {
return ' ProxyCardState(proxyName: $ proxyName , testUrl: $ testUrl ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $ProxyCardStateImpl & &
( identical ( other . proxyName , proxyName ) | |
other . proxyName = = proxyName ) & &
( identical ( other . testUrl , testUrl ) | | other . testUrl = = testUrl ) ) ;
}
@ override
int get hashCode = > Object . hash ( runtimeType , proxyName , testUrl ) ;
/// Create a copy of ProxyCardState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $ProxyCardStateImplCopyWith < _ $ProxyCardStateImpl > get copyWith = >
__ $ $ProxyCardStateImplCopyWithImpl < _ $ProxyCardStateImpl > (
this , _ $identity ) ;
}
abstract class _ProxyCardState implements ProxyCardState {
const factory _ProxyCardState (
{ required final String proxyName ,
final String ? testUrl } ) = _ $ProxyCardStateImpl ;
@ override
String get proxyName ;
@ override
String ? get testUrl ;
/// Create a copy of ProxyCardState
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $ProxyCardStateImplCopyWith < _ $ProxyCardStateImpl > get copyWith = >
throw _privateConstructorUsedError ;
}
2024-09-08 21:21:21 +08:00
/// @nodoc
2025-02-09 18:39:38 +08:00
mixin _ $VpnState {
2024-09-26 14:29:04 +08:00
TunStack get stack = > throw _privateConstructorUsedError ;
VpnProps get vpnProps = > throw _privateConstructorUsedError ;
2024-09-08 21:21:21 +08:00
2025-02-09 18:39:38 +08:00
/// Create a copy of VpnState
2024-11-09 20:17:57 +08:00
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2025-02-09 18:39:38 +08:00
$VpnStateCopyWith < VpnState > get copyWith = >
2024-09-08 21:21:21 +08:00
throw _privateConstructorUsedError ;
}
/// @nodoc
2025-02-09 18:39:38 +08:00
abstract class $VpnStateCopyWith < $Res > {
factory $VpnStateCopyWith ( VpnState value , $Res Function ( VpnState ) then ) =
_ $VpnStateCopyWithImpl < $Res , VpnState > ;
2024-09-08 21:21:21 +08:00
@ useResult
2025-02-09 18:39:38 +08:00
$Res call ( { TunStack stack , VpnProps vpnProps } ) ;
2024-09-08 21:21:21 +08:00
2024-09-26 14:29:04 +08:00
$VpnPropsCopyWith < $Res > get vpnProps ;
2024-09-08 21:21:21 +08:00
}
/// @nodoc
2025-02-09 18:39:38 +08:00
class _ $VpnStateCopyWithImpl < $Res , $Val extends VpnState >
implements $VpnStateCopyWith < $Res > {
_ $VpnStateCopyWithImpl ( this . _value , this . _then ) ;
2024-09-08 21:21:21 +08:00
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2025-02-09 18:39:38 +08:00
/// Create a copy of VpnState
2024-11-09 20:17:57 +08:00
/// with the given fields replaced by the non-null parameter values.
2024-09-08 21:21:21 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
2024-09-26 14:29:04 +08:00
Object ? stack = null ,
Object ? vpnProps = null ,
2024-09-08 21:21:21 +08:00
} ) {
return _then ( _value . copyWith (
2024-09-26 14:29:04 +08:00
stack: null = = stack
? _value . stack
: stack // ignore: cast_nullable_to_non_nullable
as TunStack ,
vpnProps: null = = vpnProps
? _value . vpnProps
: vpnProps // ignore: cast_nullable_to_non_nullable
as VpnProps ,
2024-09-08 21:21:21 +08:00
) as $Val ) ;
}
2025-02-09 18:39:38 +08:00
/// Create a copy of VpnState
2024-11-09 20:17:57 +08:00
/// with the given fields replaced by the non-null parameter values.
2024-09-26 14:29:04 +08:00
@ override
@ pragma ( ' vm:prefer-inline ' )
$VpnPropsCopyWith < $Res > get vpnProps {
return $VpnPropsCopyWith < $Res > ( _value . vpnProps , ( value ) {
return _then ( _value . copyWith ( vpnProps: value ) as $Val ) ;
2024-09-08 21:21:21 +08:00
} ) ;
}
}
/// @nodoc
2025-02-09 18:39:38 +08:00
abstract class _ $ $VpnStateImplCopyWith < $Res >
implements $VpnStateCopyWith < $Res > {
factory _ $ $VpnStateImplCopyWith (
_ $VpnStateImpl value , $Res Function ( _ $VpnStateImpl ) then ) =
__ $ $VpnStateImplCopyWithImpl < $Res > ;
2024-09-08 21:21:21 +08:00
@ override
@ useResult
2025-02-09 18:39:38 +08:00
$Res call ( { TunStack stack , VpnProps vpnProps } ) ;
2024-09-08 21:21:21 +08:00
2024-09-26 14:29:04 +08:00
@ override
$VpnPropsCopyWith < $Res > get vpnProps ;
2024-09-08 21:21:21 +08:00
}
/// @nodoc
2025-02-09 18:39:38 +08:00
class __ $ $VpnStateImplCopyWithImpl < $Res >
extends _ $VpnStateCopyWithImpl < $Res , _ $VpnStateImpl >
implements _ $ $VpnStateImplCopyWith < $Res > {
__ $ $VpnStateImplCopyWithImpl (
_ $VpnStateImpl _value , $Res Function ( _ $VpnStateImpl ) _then )
2024-09-08 21:21:21 +08:00
: super ( _value , _then ) ;
2025-02-09 18:39:38 +08:00
/// Create a copy of VpnState
2024-11-09 20:17:57 +08:00
/// with the given fields replaced by the non-null parameter values.
2024-09-08 21:21:21 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
2024-09-26 14:29:04 +08:00
Object ? stack = null ,
Object ? vpnProps = null ,
2024-09-08 21:21:21 +08:00
} ) {
2025-02-09 18:39:38 +08:00
return _then ( _ $VpnStateImpl (
2024-09-26 14:29:04 +08:00
stack: null = = stack
? _value . stack
: stack // ignore: cast_nullable_to_non_nullable
as TunStack ,
vpnProps: null = = vpnProps
? _value . vpnProps
: vpnProps // ignore: cast_nullable_to_non_nullable
as VpnProps ,
2024-09-08 21:21:21 +08:00
) ) ;
}
}
/// @nodoc
2025-02-09 18:39:38 +08:00
class _ $VpnStateImpl implements _VpnState {
const _ $VpnStateImpl ( { required this . stack , required this . vpnProps } ) ;
2024-09-08 21:21:21 +08:00
2024-09-26 14:29:04 +08:00
@ override
final TunStack stack ;
2024-09-08 21:21:21 +08:00
@ override
2024-09-26 14:29:04 +08:00
final VpnProps vpnProps ;
2024-09-08 21:21:21 +08:00
@ override
String toString ( ) {
2025-02-09 18:39:38 +08:00
return ' VpnState(stack: $ stack , vpnProps: $ vpnProps ) ' ;
2024-09-08 21:21:21 +08:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2025-02-09 18:39:38 +08:00
other is _ $VpnStateImpl & &
2024-09-26 14:29:04 +08:00
( identical ( other . stack , stack ) | | other . stack = = stack ) & &
( identical ( other . vpnProps , vpnProps ) | |
other . vpnProps = = vpnProps ) ) ;
2024-09-08 21:21:21 +08:00
}
@ override
2025-02-09 18:39:38 +08:00
int get hashCode = > Object . hash ( runtimeType , stack , vpnProps ) ;
2024-09-08 21:21:21 +08:00
2025-02-09 18:39:38 +08:00
/// Create a copy of VpnState
2024-11-09 20:17:57 +08:00
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-09-08 21:21:21 +08:00
@ override
@ pragma ( ' vm:prefer-inline ' )
2025-02-09 18:39:38 +08:00
_ $ $VpnStateImplCopyWith < _ $VpnStateImpl > get copyWith = >
__ $ $VpnStateImplCopyWithImpl < _ $VpnStateImpl > ( this , _ $identity ) ;
2024-09-08 21:21:21 +08:00
}
2025-02-09 18:39:38 +08:00
abstract class _VpnState implements VpnState {
const factory _VpnState (
{ required final TunStack stack ,
required final VpnProps vpnProps } ) = _ $VpnStateImpl ;
2024-09-08 21:21:21 +08:00
2024-09-26 14:29:04 +08:00
@ override
TunStack get stack ;
2024-09-08 21:21:21 +08:00
@ override
2024-09-26 14:29:04 +08:00
VpnProps get vpnProps ;
2024-11-09 20:17:57 +08:00
2025-02-09 18:39:38 +08:00
/// Create a copy of VpnState
2024-11-09 20:17:57 +08:00
/// with the given fields replaced by the non-null parameter values.
2024-09-08 21:21:21 +08:00
@ override
2024-11-09 20:17:57 +08:00
@ JsonKey ( includeFromJson: false , includeToJson: false )
2025-02-09 18:39:38 +08:00
_ $ $VpnStateImplCopyWith < _ $VpnStateImpl > get copyWith = >
2024-09-08 21:21:21 +08:00
throw _privateConstructorUsedError ;
}
2025-03-12 17:15:31 +08:00
/// @nodoc
mixin _ $ProfileOverrideStateModel {
ClashConfigSnippet ? get snippet = > throw _privateConstructorUsedError ;
bool get isEdit = > throw _privateConstructorUsedError ;
Set < String > get selectedRules = > throw _privateConstructorUsedError ;
OverrideData ? get overrideData = > throw _privateConstructorUsedError ;
/// Create a copy of ProfileOverrideStateModel
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$ProfileOverrideStateModelCopyWith < ProfileOverrideStateModel > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $ProfileOverrideStateModelCopyWith < $Res > {
factory $ProfileOverrideStateModelCopyWith ( ProfileOverrideStateModel value ,
$Res Function ( ProfileOverrideStateModel ) then ) =
_ $ProfileOverrideStateModelCopyWithImpl < $Res , ProfileOverrideStateModel > ;
@ useResult
$Res call (
{ ClashConfigSnippet ? snippet ,
bool isEdit ,
Set < String > selectedRules ,
OverrideData ? overrideData } ) ;
$ClashConfigSnippetCopyWith < $Res > ? get snippet ;
$OverrideDataCopyWith < $Res > ? get overrideData ;
}
/// @nodoc
class _ $ProfileOverrideStateModelCopyWithImpl < $Res ,
$Val extends ProfileOverrideStateModel >
implements $ProfileOverrideStateModelCopyWith < $Res > {
_ $ProfileOverrideStateModelCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of ProfileOverrideStateModel
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? snippet = freezed ,
Object ? isEdit = null ,
Object ? selectedRules = null ,
Object ? overrideData = freezed ,
} ) {
return _then ( _value . copyWith (
snippet: freezed = = snippet
? _value . snippet
: snippet // ignore: cast_nullable_to_non_nullable
as ClashConfigSnippet ? ,
isEdit: null = = isEdit
? _value . isEdit
: isEdit // ignore: cast_nullable_to_non_nullable
as bool ,
selectedRules: null = = selectedRules
? _value . selectedRules
: selectedRules // ignore: cast_nullable_to_non_nullable
as Set < String > ,
overrideData: freezed = = overrideData
? _value . overrideData
: overrideData // ignore: cast_nullable_to_non_nullable
as OverrideData ? ,
) as $Val ) ;
}
/// Create a copy of ProfileOverrideStateModel
/// with the given fields replaced by the non-null parameter values.
@ override
@ pragma ( ' vm:prefer-inline ' )
$ClashConfigSnippetCopyWith < $Res > ? get snippet {
if ( _value . snippet = = null ) {
return null ;
}
return $ClashConfigSnippetCopyWith < $Res > ( _value . snippet ! , ( value ) {
return _then ( _value . copyWith ( snippet: value ) as $Val ) ;
} ) ;
}
/// Create a copy of ProfileOverrideStateModel
/// with the given fields replaced by the non-null parameter values.
@ override
@ pragma ( ' vm:prefer-inline ' )
$OverrideDataCopyWith < $Res > ? get overrideData {
if ( _value . overrideData = = null ) {
return null ;
}
return $OverrideDataCopyWith < $Res > ( _value . overrideData ! , ( value ) {
return _then ( _value . copyWith ( overrideData: value ) as $Val ) ;
} ) ;
}
}
/// @nodoc
abstract class _ $ $ProfileOverrideStateModelImplCopyWith < $Res >
implements $ProfileOverrideStateModelCopyWith < $Res > {
factory _ $ $ProfileOverrideStateModelImplCopyWith (
_ $ProfileOverrideStateModelImpl value ,
$Res Function ( _ $ProfileOverrideStateModelImpl ) then ) =
__ $ $ProfileOverrideStateModelImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call (
{ ClashConfigSnippet ? snippet ,
bool isEdit ,
Set < String > selectedRules ,
OverrideData ? overrideData } ) ;
@ override
$ClashConfigSnippetCopyWith < $Res > ? get snippet ;
@ override
$OverrideDataCopyWith < $Res > ? get overrideData ;
}
/// @nodoc
class __ $ $ProfileOverrideStateModelImplCopyWithImpl < $Res >
extends _ $ProfileOverrideStateModelCopyWithImpl < $Res ,
_ $ProfileOverrideStateModelImpl >
implements _ $ $ProfileOverrideStateModelImplCopyWith < $Res > {
__ $ $ProfileOverrideStateModelImplCopyWithImpl (
_ $ProfileOverrideStateModelImpl _value ,
$Res Function ( _ $ProfileOverrideStateModelImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of ProfileOverrideStateModel
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? snippet = freezed ,
Object ? isEdit = null ,
Object ? selectedRules = null ,
Object ? overrideData = freezed ,
} ) {
return _then ( _ $ProfileOverrideStateModelImpl (
snippet: freezed = = snippet
? _value . snippet
: snippet // ignore: cast_nullable_to_non_nullable
as ClashConfigSnippet ? ,
isEdit: null = = isEdit
? _value . isEdit
: isEdit // ignore: cast_nullable_to_non_nullable
as bool ,
selectedRules: null = = selectedRules
? _value . _selectedRules
: selectedRules // ignore: cast_nullable_to_non_nullable
as Set < String > ,
overrideData: freezed = = overrideData
? _value . overrideData
: overrideData // ignore: cast_nullable_to_non_nullable
as OverrideData ? ,
) ) ;
}
}
/// @nodoc
class _ $ProfileOverrideStateModelImpl implements _ProfileOverrideStateModel {
const _ $ProfileOverrideStateModelImpl (
{ this . snippet ,
required this . isEdit ,
required final Set < String > selectedRules ,
this . overrideData } )
: _selectedRules = selectedRules ;
@ override
final ClashConfigSnippet ? snippet ;
@ override
final bool isEdit ;
final Set < String > _selectedRules ;
@ override
Set < String > get selectedRules {
if ( _selectedRules is EqualUnmodifiableSetView ) return _selectedRules ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableSetView ( _selectedRules ) ;
}
@ override
final OverrideData ? overrideData ;
@ override
String toString ( ) {
return ' ProfileOverrideStateModel(snippet: $ snippet , isEdit: $ isEdit , selectedRules: $ selectedRules , overrideData: $ overrideData ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $ProfileOverrideStateModelImpl & &
( identical ( other . snippet , snippet ) | | other . snippet = = snippet ) & &
( identical ( other . isEdit , isEdit ) | | other . isEdit = = isEdit ) & &
const DeepCollectionEquality ( )
. equals ( other . _selectedRules , _selectedRules ) & &
( identical ( other . overrideData , overrideData ) | |
other . overrideData = = overrideData ) ) ;
}
@ override
int get hashCode = > Object . hash ( runtimeType , snippet , isEdit ,
const DeepCollectionEquality ( ) . hash ( _selectedRules ) , overrideData ) ;
/// Create a copy of ProfileOverrideStateModel
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $ProfileOverrideStateModelImplCopyWith < _ $ProfileOverrideStateModelImpl >
get copyWith = > __ $ $ProfileOverrideStateModelImplCopyWithImpl <
_ $ProfileOverrideStateModelImpl > ( this , _ $identity ) ;
}
abstract class _ProfileOverrideStateModel implements ProfileOverrideStateModel {
const factory _ProfileOverrideStateModel (
{ final ClashConfigSnippet ? snippet ,
required final bool isEdit ,
required final Set < String > selectedRules ,
final OverrideData ? overrideData } ) = _ $ProfileOverrideStateModelImpl ;
@ override
ClashConfigSnippet ? get snippet ;
@ override
bool get isEdit ;
@ override
Set < String > get selectedRules ;
@ override
OverrideData ? get overrideData ;
/// Create a copy of ProfileOverrideStateModel
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $ProfileOverrideStateModelImplCopyWith < _ $ProfileOverrideStateModelImpl >
get copyWith = > throw _privateConstructorUsedError ;
}