Add rule override
Update core Optimize more details
This commit is contained in:
@@ -161,6 +161,172 @@ abstract class _VM2<A, B> implements VM2<A, B> {
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @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;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$StartButtonSelectorState {
|
||||
bool get isInit => throw _privateConstructorUsedError;
|
||||
@@ -498,6 +664,7 @@ abstract class _ProfilesSelectorState implements ProfilesSelectorState {
|
||||
|
||||
/// @nodoc
|
||||
mixin _$NetworkDetectionState {
|
||||
bool get isLoading => throw _privateConstructorUsedError;
|
||||
bool get isTesting => throw _privateConstructorUsedError;
|
||||
IpInfo? get ipInfo => throw _privateConstructorUsedError;
|
||||
|
||||
@@ -514,7 +681,7 @@ abstract class $NetworkDetectionStateCopyWith<$Res> {
|
||||
$Res Function(NetworkDetectionState) then) =
|
||||
_$NetworkDetectionStateCopyWithImpl<$Res, NetworkDetectionState>;
|
||||
@useResult
|
||||
$Res call({bool isTesting, IpInfo? ipInfo});
|
||||
$Res call({bool isLoading, bool isTesting, IpInfo? ipInfo});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -533,10 +700,15 @@ class _$NetworkDetectionStateCopyWithImpl<$Res,
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? isLoading = null,
|
||||
Object? isTesting = null,
|
||||
Object? ipInfo = freezed,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
isLoading: null == isLoading
|
||||
? _value.isLoading
|
||||
: isLoading // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
isTesting: null == isTesting
|
||||
? _value.isTesting
|
||||
: isTesting // ignore: cast_nullable_to_non_nullable
|
||||
@@ -558,7 +730,7 @@ abstract class _$$NetworkDetectionStateImplCopyWith<$Res>
|
||||
__$$NetworkDetectionStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({bool isTesting, IpInfo? ipInfo});
|
||||
$Res call({bool isLoading, bool isTesting, IpInfo? ipInfo});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -575,10 +747,15 @@ class __$$NetworkDetectionStateImplCopyWithImpl<$Res>
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? isLoading = null,
|
||||
Object? isTesting = null,
|
||||
Object? ipInfo = freezed,
|
||||
}) {
|
||||
return _then(_$NetworkDetectionStateImpl(
|
||||
isLoading: null == isLoading
|
||||
? _value.isLoading
|
||||
: isLoading // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
isTesting: null == isTesting
|
||||
? _value.isTesting
|
||||
: isTesting // ignore: cast_nullable_to_non_nullable
|
||||
@@ -595,8 +772,10 @@ class __$$NetworkDetectionStateImplCopyWithImpl<$Res>
|
||||
|
||||
class _$NetworkDetectionStateImpl implements _NetworkDetectionState {
|
||||
const _$NetworkDetectionStateImpl(
|
||||
{required this.isTesting, required this.ipInfo});
|
||||
{required this.isLoading, required this.isTesting, required this.ipInfo});
|
||||
|
||||
@override
|
||||
final bool isLoading;
|
||||
@override
|
||||
final bool isTesting;
|
||||
@override
|
||||
@@ -604,7 +783,7 @@ class _$NetworkDetectionStateImpl implements _NetworkDetectionState {
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'NetworkDetectionState(isTesting: $isTesting, ipInfo: $ipInfo)';
|
||||
return 'NetworkDetectionState(isLoading: $isLoading, isTesting: $isTesting, ipInfo: $ipInfo)';
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -612,13 +791,15 @@ class _$NetworkDetectionStateImpl implements _NetworkDetectionState {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$NetworkDetectionStateImpl &&
|
||||
(identical(other.isLoading, isLoading) ||
|
||||
other.isLoading == isLoading) &&
|
||||
(identical(other.isTesting, isTesting) ||
|
||||
other.isTesting == isTesting) &&
|
||||
(identical(other.ipInfo, ipInfo) || other.ipInfo == ipInfo));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, isTesting, ipInfo);
|
||||
int get hashCode => Object.hash(runtimeType, isLoading, isTesting, ipInfo);
|
||||
|
||||
/// Create a copy of NetworkDetectionState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@@ -632,9 +813,12 @@ class _$NetworkDetectionStateImpl implements _NetworkDetectionState {
|
||||
|
||||
abstract class _NetworkDetectionState implements NetworkDetectionState {
|
||||
const factory _NetworkDetectionState(
|
||||
{required final bool isTesting,
|
||||
{required final bool isLoading,
|
||||
required final bool isTesting,
|
||||
required final IpInfo? ipInfo}) = _$NetworkDetectionStateImpl;
|
||||
|
||||
@override
|
||||
bool get isLoading;
|
||||
@override
|
||||
bool get isTesting;
|
||||
@override
|
||||
@@ -3150,6 +3334,7 @@ abstract class _ProxyState implements ProxyState {
|
||||
mixin _$ClashConfigState {
|
||||
bool get overrideDns => throw _privateConstructorUsedError;
|
||||
ClashConfig get clashConfig => throw _privateConstructorUsedError;
|
||||
OverrideData get overrideData => throw _privateConstructorUsedError;
|
||||
|
||||
/// Create a copy of ClashConfigState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@@ -3164,9 +3349,11 @@ abstract class $ClashConfigStateCopyWith<$Res> {
|
||||
ClashConfigState value, $Res Function(ClashConfigState) then) =
|
||||
_$ClashConfigStateCopyWithImpl<$Res, ClashConfigState>;
|
||||
@useResult
|
||||
$Res call({bool overrideDns, ClashConfig clashConfig});
|
||||
$Res call(
|
||||
{bool overrideDns, ClashConfig clashConfig, OverrideData overrideData});
|
||||
|
||||
$ClashConfigCopyWith<$Res> get clashConfig;
|
||||
$OverrideDataCopyWith<$Res> get overrideData;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -3186,6 +3373,7 @@ class _$ClashConfigStateCopyWithImpl<$Res, $Val extends ClashConfigState>
|
||||
$Res call({
|
||||
Object? overrideDns = null,
|
||||
Object? clashConfig = null,
|
||||
Object? overrideData = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
overrideDns: null == overrideDns
|
||||
@@ -3196,6 +3384,10 @@ class _$ClashConfigStateCopyWithImpl<$Res, $Val extends ClashConfigState>
|
||||
? _value.clashConfig
|
||||
: clashConfig // ignore: cast_nullable_to_non_nullable
|
||||
as ClashConfig,
|
||||
overrideData: null == overrideData
|
||||
? _value.overrideData
|
||||
: overrideData // ignore: cast_nullable_to_non_nullable
|
||||
as OverrideData,
|
||||
) as $Val);
|
||||
}
|
||||
|
||||
@@ -3208,6 +3400,16 @@ class _$ClashConfigStateCopyWithImpl<$Res, $Val extends ClashConfigState>
|
||||
return _then(_value.copyWith(clashConfig: value) as $Val);
|
||||
});
|
||||
}
|
||||
|
||||
/// 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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -3218,10 +3420,13 @@ abstract class _$$ClashConfigStateImplCopyWith<$Res>
|
||||
__$$ClashConfigStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({bool overrideDns, ClashConfig clashConfig});
|
||||
$Res call(
|
||||
{bool overrideDns, ClashConfig clashConfig, OverrideData overrideData});
|
||||
|
||||
@override
|
||||
$ClashConfigCopyWith<$Res> get clashConfig;
|
||||
@override
|
||||
$OverrideDataCopyWith<$Res> get overrideData;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -3239,6 +3444,7 @@ class __$$ClashConfigStateImplCopyWithImpl<$Res>
|
||||
$Res call({
|
||||
Object? overrideDns = null,
|
||||
Object? clashConfig = null,
|
||||
Object? overrideData = null,
|
||||
}) {
|
||||
return _then(_$ClashConfigStateImpl(
|
||||
overrideDns: null == overrideDns
|
||||
@@ -3249,6 +3455,10 @@ class __$$ClashConfigStateImplCopyWithImpl<$Res>
|
||||
? _value.clashConfig
|
||||
: clashConfig // ignore: cast_nullable_to_non_nullable
|
||||
as ClashConfig,
|
||||
overrideData: null == overrideData
|
||||
? _value.overrideData
|
||||
: overrideData // ignore: cast_nullable_to_non_nullable
|
||||
as OverrideData,
|
||||
));
|
||||
}
|
||||
}
|
||||
@@ -3257,16 +3467,20 @@ class __$$ClashConfigStateImplCopyWithImpl<$Res>
|
||||
|
||||
class _$ClashConfigStateImpl implements _ClashConfigState {
|
||||
const _$ClashConfigStateImpl(
|
||||
{required this.overrideDns, required this.clashConfig});
|
||||
{required this.overrideDns,
|
||||
required this.clashConfig,
|
||||
required this.overrideData});
|
||||
|
||||
@override
|
||||
final bool overrideDns;
|
||||
@override
|
||||
final ClashConfig clashConfig;
|
||||
@override
|
||||
final OverrideData overrideData;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'ClashConfigState(overrideDns: $overrideDns, clashConfig: $clashConfig)';
|
||||
return 'ClashConfigState(overrideDns: $overrideDns, clashConfig: $clashConfig, overrideData: $overrideData)';
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -3277,11 +3491,14 @@ class _$ClashConfigStateImpl implements _ClashConfigState {
|
||||
(identical(other.overrideDns, overrideDns) ||
|
||||
other.overrideDns == overrideDns) &&
|
||||
(identical(other.clashConfig, clashConfig) ||
|
||||
other.clashConfig == clashConfig));
|
||||
other.clashConfig == clashConfig) &&
|
||||
(identical(other.overrideData, overrideData) ||
|
||||
other.overrideData == overrideData));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, overrideDns, clashConfig);
|
||||
int get hashCode =>
|
||||
Object.hash(runtimeType, overrideDns, clashConfig, overrideData);
|
||||
|
||||
/// Create a copy of ClashConfigState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@@ -3296,12 +3513,15 @@ class _$ClashConfigStateImpl implements _ClashConfigState {
|
||||
abstract class _ClashConfigState implements ClashConfigState {
|
||||
const factory _ClashConfigState(
|
||||
{required final bool overrideDns,
|
||||
required final ClashConfig clashConfig}) = _$ClashConfigStateImpl;
|
||||
required final ClashConfig clashConfig,
|
||||
required final OverrideData overrideData}) = _$ClashConfigStateImpl;
|
||||
|
||||
@override
|
||||
bool get overrideDns;
|
||||
@override
|
||||
ClashConfig get clashConfig;
|
||||
@override
|
||||
OverrideData get overrideData;
|
||||
|
||||
/// Create a copy of ClashConfigState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@@ -3780,3 +4000,246 @@ abstract class _VpnState implements VpnState {
|
||||
_$$VpnStateImplCopyWith<_$VpnStateImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user