Support desktop hotkey
Support android ipv6 inbound Support android system dns fix some bugs
This commit is contained in:
2470
lib/models/generated/common.freezed.dart
Normal file
2470
lib/models/generated/common.freezed.dart
Normal file
File diff suppressed because it is too large
Load Diff
232
lib/models/generated/common.g.dart
Normal file
232
lib/models/generated/common.g.dart
Normal file
@@ -0,0 +1,232 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of '../common.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
Log _$LogFromJson(Map<String, dynamic> json) => Log(
|
||||
logLevel: $enumDecode(_$LogLevelEnumMap, json['LogLevel']),
|
||||
payload: json['Payload'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$LogToJson(Log instance) => <String, dynamic>{
|
||||
'LogLevel': _$LogLevelEnumMap[instance.logLevel]!,
|
||||
'Payload': instance.payload,
|
||||
};
|
||||
|
||||
const _$LogLevelEnumMap = {
|
||||
LogLevel.debug: 'debug',
|
||||
LogLevel.info: 'info',
|
||||
LogLevel.warning: 'warning',
|
||||
LogLevel.error: 'error',
|
||||
LogLevel.silent: 'silent',
|
||||
};
|
||||
|
||||
_$PackageImpl _$$PackageImplFromJson(Map<String, dynamic> json) =>
|
||||
_$PackageImpl(
|
||||
packageName: json['packageName'] as String,
|
||||
label: json['label'] as String,
|
||||
isSystem: json['isSystem'] as bool,
|
||||
firstInstallTime: (json['firstInstallTime'] as num).toInt(),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$PackageImplToJson(_$PackageImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'packageName': instance.packageName,
|
||||
'label': instance.label,
|
||||
'isSystem': instance.isSystem,
|
||||
'firstInstallTime': instance.firstInstallTime,
|
||||
};
|
||||
|
||||
_$MetadataImpl _$$MetadataImplFromJson(Map<String, dynamic> json) =>
|
||||
_$MetadataImpl(
|
||||
uid: (json['uid'] as num).toInt(),
|
||||
network: json['network'] as String,
|
||||
sourceIP: json['sourceIP'] as String,
|
||||
sourcePort: json['sourcePort'] as String,
|
||||
destinationIP: json['destinationIP'] as String,
|
||||
destinationPort: json['destinationPort'] as String,
|
||||
host: json['host'] as String,
|
||||
process: json['process'] as String,
|
||||
remoteDestination: json['remoteDestination'] as String,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$MetadataImplToJson(_$MetadataImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'uid': instance.uid,
|
||||
'network': instance.network,
|
||||
'sourceIP': instance.sourceIP,
|
||||
'sourcePort': instance.sourcePort,
|
||||
'destinationIP': instance.destinationIP,
|
||||
'destinationPort': instance.destinationPort,
|
||||
'host': instance.host,
|
||||
'process': instance.process,
|
||||
'remoteDestination': instance.remoteDestination,
|
||||
};
|
||||
|
||||
_$ConnectionImpl _$$ConnectionImplFromJson(Map<String, dynamic> json) =>
|
||||
_$ConnectionImpl(
|
||||
id: json['id'] as String,
|
||||
upload: json['upload'] as num?,
|
||||
download: json['download'] as num?,
|
||||
start: DateTime.parse(json['start'] as String),
|
||||
metadata: Metadata.fromJson(json['metadata'] as Map<String, dynamic>),
|
||||
chains:
|
||||
(json['chains'] as List<dynamic>).map((e) => e as String).toList(),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$ConnectionImplToJson(_$ConnectionImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'id': instance.id,
|
||||
'upload': instance.upload,
|
||||
'download': instance.download,
|
||||
'start': instance.start.toIso8601String(),
|
||||
'metadata': instance.metadata,
|
||||
'chains': instance.chains,
|
||||
};
|
||||
|
||||
_$LogsAndKeywordsImpl _$$LogsAndKeywordsImplFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
_$LogsAndKeywordsImpl(
|
||||
logs: (json['logs'] as List<dynamic>?)
|
||||
?.map((e) => Log.fromJson(e as Map<String, dynamic>))
|
||||
.toList() ??
|
||||
const [],
|
||||
keywords: (json['keywords'] as List<dynamic>?)
|
||||
?.map((e) => e as String)
|
||||
.toList() ??
|
||||
const [],
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$LogsAndKeywordsImplToJson(
|
||||
_$LogsAndKeywordsImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'logs': instance.logs,
|
||||
'keywords': instance.keywords,
|
||||
};
|
||||
|
||||
_$ConnectionsAndKeywordsImpl _$$ConnectionsAndKeywordsImplFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
_$ConnectionsAndKeywordsImpl(
|
||||
connections: (json['connections'] as List<dynamic>?)
|
||||
?.map((e) => Connection.fromJson(e as Map<String, dynamic>))
|
||||
.toList() ??
|
||||
const [],
|
||||
keywords: (json['keywords'] as List<dynamic>?)
|
||||
?.map((e) => e as String)
|
||||
.toList() ??
|
||||
const [],
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$ConnectionsAndKeywordsImplToJson(
|
||||
_$ConnectionsAndKeywordsImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'connections': instance.connections,
|
||||
'keywords': instance.keywords,
|
||||
};
|
||||
|
||||
_$DAVImpl _$$DAVImplFromJson(Map<String, dynamic> json) => _$DAVImpl(
|
||||
uri: json['uri'] as String,
|
||||
user: json['user'] as String,
|
||||
password: json['password'] as String,
|
||||
fileName: json['fileName'] as String? ?? defaultDavFileName,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$DAVImplToJson(_$DAVImpl instance) => <String, dynamic>{
|
||||
'uri': instance.uri,
|
||||
'user': instance.user,
|
||||
'password': instance.password,
|
||||
'fileName': instance.fileName,
|
||||
};
|
||||
|
||||
_$VersionInfoImpl _$$VersionInfoImplFromJson(Map<String, dynamic> json) =>
|
||||
_$VersionInfoImpl(
|
||||
clashName: json['clashName'] as String? ?? "",
|
||||
version: json['version'] as String? ?? "",
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$VersionInfoImplToJson(_$VersionInfoImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'clashName': instance.clashName,
|
||||
'version': instance.version,
|
||||
};
|
||||
|
||||
_$GroupImpl _$$GroupImplFromJson(Map<String, dynamic> json) => _$GroupImpl(
|
||||
type: $enumDecode(_$GroupTypeEnumMap, json['type']),
|
||||
all: (json['all'] as List<dynamic>?)
|
||||
?.map((e) => Proxy.fromJson(e as Map<String, dynamic>))
|
||||
.toList() ??
|
||||
const [],
|
||||
now: json['now'] as String?,
|
||||
hidden: json['hidden'] as bool?,
|
||||
icon: json['icon'] as String? ?? "",
|
||||
name: json['name'] as String,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$GroupImplToJson(_$GroupImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'type': _$GroupTypeEnumMap[instance.type]!,
|
||||
'all': instance.all,
|
||||
'now': instance.now,
|
||||
'hidden': instance.hidden,
|
||||
'icon': instance.icon,
|
||||
'name': instance.name,
|
||||
};
|
||||
|
||||
const _$GroupTypeEnumMap = {
|
||||
GroupType.Selector: 'Selector',
|
||||
GroupType.URLTest: 'URLTest',
|
||||
GroupType.Fallback: 'Fallback',
|
||||
GroupType.LoadBalance: 'LoadBalance',
|
||||
GroupType.Relay: 'Relay',
|
||||
};
|
||||
|
||||
_$ProxyImpl _$$ProxyImplFromJson(Map<String, dynamic> json) => _$ProxyImpl(
|
||||
name: json['name'] as String,
|
||||
type: json['type'] as String,
|
||||
now: json['now'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$ProxyImplToJson(_$ProxyImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'name': instance.name,
|
||||
'type': instance.type,
|
||||
'now': instance.now,
|
||||
};
|
||||
|
||||
_$HotKeyActionImpl _$$HotKeyActionImplFromJson(Map<String, dynamic> json) =>
|
||||
_$HotKeyActionImpl(
|
||||
action: $enumDecode(_$HotActionEnumMap, json['action']),
|
||||
key: (json['key'] as num?)?.toInt(),
|
||||
modifiers: (json['modifiers'] as List<dynamic>?)
|
||||
?.map((e) => $enumDecode(_$KeyboardModifierEnumMap, e))
|
||||
.toSet() ??
|
||||
const {},
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$HotKeyActionImplToJson(_$HotKeyActionImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'action': _$HotActionEnumMap[instance.action]!,
|
||||
'key': instance.key,
|
||||
'modifiers':
|
||||
instance.modifiers.map((e) => _$KeyboardModifierEnumMap[e]!).toList(),
|
||||
};
|
||||
|
||||
const _$HotActionEnumMap = {
|
||||
HotAction.start: 'start',
|
||||
HotAction.view: 'view',
|
||||
HotAction.mode: 'mode',
|
||||
HotAction.proxy: 'proxy',
|
||||
HotAction.tun: 'tun',
|
||||
};
|
||||
|
||||
const _$KeyboardModifierEnumMap = {
|
||||
KeyboardModifier.alt: 'alt',
|
||||
KeyboardModifier.capsLock: 'capsLock',
|
||||
KeyboardModifier.control: 'control',
|
||||
KeyboardModifier.fn: 'fn',
|
||||
KeyboardModifier.meta: 'meta',
|
||||
KeyboardModifier.shift: 'shift',
|
||||
};
|
||||
@@ -56,7 +56,12 @@ Config _$ConfigFromJson(Map<String, dynamic> json) => Config()
|
||||
..scaleProps =
|
||||
ScaleProps.fromJson(json['scaleProps'] as Map<String, dynamic>?)
|
||||
..showLabel = json['showLabel'] as bool? ?? false
|
||||
..overrideDns = json['overrideDns'] as bool? ?? false;
|
||||
..overrideDns = json['overrideDns'] as bool? ?? false
|
||||
..isDisclaimerAccepted = json['isDisclaimerAccepted'] as bool? ?? false
|
||||
..hotKeyActions = (json['hotKeyActions'] as List<dynamic>?)
|
||||
?.map((e) => HotKeyAction.fromJson(e as Map<String, dynamic>))
|
||||
.toList() ??
|
||||
[];
|
||||
|
||||
Map<String, dynamic> _$ConfigToJson(Config instance) => <String, dynamic>{
|
||||
'profiles': instance.profiles,
|
||||
@@ -90,6 +95,8 @@ Map<String, dynamic> _$ConfigToJson(Config instance) => <String, dynamic>{
|
||||
'scaleProps': instance.scaleProps,
|
||||
'showLabel': instance.showLabel,
|
||||
'overrideDns': instance.overrideDns,
|
||||
'isDisclaimerAccepted': instance.isDisclaimerAccepted,
|
||||
'hotKeyActions': instance.hotKeyActions,
|
||||
};
|
||||
|
||||
const _$ThemeModeEnumMap = {
|
||||
|
||||
@@ -1,772 +0,0 @@
|
||||
// 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 '../connection.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.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
|
||||
|
||||
Metadata _$MetadataFromJson(Map<String, dynamic> json) {
|
||||
return _Metadata.fromJson(json);
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$Metadata {
|
||||
int get uid => throw _privateConstructorUsedError;
|
||||
String get network => throw _privateConstructorUsedError;
|
||||
String get sourceIP => throw _privateConstructorUsedError;
|
||||
String get sourcePort => throw _privateConstructorUsedError;
|
||||
String get destinationIP => throw _privateConstructorUsedError;
|
||||
String get destinationPort => throw _privateConstructorUsedError;
|
||||
String get host => throw _privateConstructorUsedError;
|
||||
String get process => throw _privateConstructorUsedError;
|
||||
String get remoteDestination => throw _privateConstructorUsedError;
|
||||
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
$MetadataCopyWith<Metadata> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $MetadataCopyWith<$Res> {
|
||||
factory $MetadataCopyWith(Metadata value, $Res Function(Metadata) then) =
|
||||
_$MetadataCopyWithImpl<$Res, Metadata>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{int uid,
|
||||
String network,
|
||||
String sourceIP,
|
||||
String sourcePort,
|
||||
String destinationIP,
|
||||
String destinationPort,
|
||||
String host,
|
||||
String process,
|
||||
String remoteDestination});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$MetadataCopyWithImpl<$Res, $Val extends Metadata>
|
||||
implements $MetadataCopyWith<$Res> {
|
||||
_$MetadataCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? uid = null,
|
||||
Object? network = null,
|
||||
Object? sourceIP = null,
|
||||
Object? sourcePort = null,
|
||||
Object? destinationIP = null,
|
||||
Object? destinationPort = null,
|
||||
Object? host = null,
|
||||
Object? process = null,
|
||||
Object? remoteDestination = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
uid: null == uid
|
||||
? _value.uid
|
||||
: uid // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
network: null == network
|
||||
? _value.network
|
||||
: network // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
sourceIP: null == sourceIP
|
||||
? _value.sourceIP
|
||||
: sourceIP // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
sourcePort: null == sourcePort
|
||||
? _value.sourcePort
|
||||
: sourcePort // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
destinationIP: null == destinationIP
|
||||
? _value.destinationIP
|
||||
: destinationIP // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
destinationPort: null == destinationPort
|
||||
? _value.destinationPort
|
||||
: destinationPort // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
host: null == host
|
||||
? _value.host
|
||||
: host // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
process: null == process
|
||||
? _value.process
|
||||
: process // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
remoteDestination: null == remoteDestination
|
||||
? _value.remoteDestination
|
||||
: remoteDestination // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$MetadataImplCopyWith<$Res>
|
||||
implements $MetadataCopyWith<$Res> {
|
||||
factory _$$MetadataImplCopyWith(
|
||||
_$MetadataImpl value, $Res Function(_$MetadataImpl) then) =
|
||||
__$$MetadataImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{int uid,
|
||||
String network,
|
||||
String sourceIP,
|
||||
String sourcePort,
|
||||
String destinationIP,
|
||||
String destinationPort,
|
||||
String host,
|
||||
String process,
|
||||
String remoteDestination});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$MetadataImplCopyWithImpl<$Res>
|
||||
extends _$MetadataCopyWithImpl<$Res, _$MetadataImpl>
|
||||
implements _$$MetadataImplCopyWith<$Res> {
|
||||
__$$MetadataImplCopyWithImpl(
|
||||
_$MetadataImpl _value, $Res Function(_$MetadataImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? uid = null,
|
||||
Object? network = null,
|
||||
Object? sourceIP = null,
|
||||
Object? sourcePort = null,
|
||||
Object? destinationIP = null,
|
||||
Object? destinationPort = null,
|
||||
Object? host = null,
|
||||
Object? process = null,
|
||||
Object? remoteDestination = null,
|
||||
}) {
|
||||
return _then(_$MetadataImpl(
|
||||
uid: null == uid
|
||||
? _value.uid
|
||||
: uid // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
network: null == network
|
||||
? _value.network
|
||||
: network // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
sourceIP: null == sourceIP
|
||||
? _value.sourceIP
|
||||
: sourceIP // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
sourcePort: null == sourcePort
|
||||
? _value.sourcePort
|
||||
: sourcePort // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
destinationIP: null == destinationIP
|
||||
? _value.destinationIP
|
||||
: destinationIP // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
destinationPort: null == destinationPort
|
||||
? _value.destinationPort
|
||||
: destinationPort // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
host: null == host
|
||||
? _value.host
|
||||
: host // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
process: null == process
|
||||
? _value.process
|
||||
: process // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
remoteDestination: null == remoteDestination
|
||||
? _value.remoteDestination
|
||||
: remoteDestination // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$MetadataImpl implements _Metadata {
|
||||
const _$MetadataImpl(
|
||||
{required this.uid,
|
||||
required this.network,
|
||||
required this.sourceIP,
|
||||
required this.sourcePort,
|
||||
required this.destinationIP,
|
||||
required this.destinationPort,
|
||||
required this.host,
|
||||
required this.process,
|
||||
required this.remoteDestination});
|
||||
|
||||
factory _$MetadataImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$MetadataImplFromJson(json);
|
||||
|
||||
@override
|
||||
final int uid;
|
||||
@override
|
||||
final String network;
|
||||
@override
|
||||
final String sourceIP;
|
||||
@override
|
||||
final String sourcePort;
|
||||
@override
|
||||
final String destinationIP;
|
||||
@override
|
||||
final String destinationPort;
|
||||
@override
|
||||
final String host;
|
||||
@override
|
||||
final String process;
|
||||
@override
|
||||
final String remoteDestination;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'Metadata(uid: $uid, network: $network, sourceIP: $sourceIP, sourcePort: $sourcePort, destinationIP: $destinationIP, destinationPort: $destinationPort, host: $host, process: $process, remoteDestination: $remoteDestination)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$MetadataImpl &&
|
||||
(identical(other.uid, uid) || other.uid == uid) &&
|
||||
(identical(other.network, network) || other.network == network) &&
|
||||
(identical(other.sourceIP, sourceIP) ||
|
||||
other.sourceIP == sourceIP) &&
|
||||
(identical(other.sourcePort, sourcePort) ||
|
||||
other.sourcePort == sourcePort) &&
|
||||
(identical(other.destinationIP, destinationIP) ||
|
||||
other.destinationIP == destinationIP) &&
|
||||
(identical(other.destinationPort, destinationPort) ||
|
||||
other.destinationPort == destinationPort) &&
|
||||
(identical(other.host, host) || other.host == host) &&
|
||||
(identical(other.process, process) || other.process == process) &&
|
||||
(identical(other.remoteDestination, remoteDestination) ||
|
||||
other.remoteDestination == remoteDestination));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
uid,
|
||||
network,
|
||||
sourceIP,
|
||||
sourcePort,
|
||||
destinationIP,
|
||||
destinationPort,
|
||||
host,
|
||||
process,
|
||||
remoteDestination);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$MetadataImplCopyWith<_$MetadataImpl> get copyWith =>
|
||||
__$$MetadataImplCopyWithImpl<_$MetadataImpl>(this, _$identity);
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
return _$$MetadataImplToJson(
|
||||
this,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _Metadata implements Metadata {
|
||||
const factory _Metadata(
|
||||
{required final int uid,
|
||||
required final String network,
|
||||
required final String sourceIP,
|
||||
required final String sourcePort,
|
||||
required final String destinationIP,
|
||||
required final String destinationPort,
|
||||
required final String host,
|
||||
required final String process,
|
||||
required final String remoteDestination}) = _$MetadataImpl;
|
||||
|
||||
factory _Metadata.fromJson(Map<String, dynamic> json) =
|
||||
_$MetadataImpl.fromJson;
|
||||
|
||||
@override
|
||||
int get uid;
|
||||
@override
|
||||
String get network;
|
||||
@override
|
||||
String get sourceIP;
|
||||
@override
|
||||
String get sourcePort;
|
||||
@override
|
||||
String get destinationIP;
|
||||
@override
|
||||
String get destinationPort;
|
||||
@override
|
||||
String get host;
|
||||
@override
|
||||
String get process;
|
||||
@override
|
||||
String get remoteDestination;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$MetadataImplCopyWith<_$MetadataImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
Connection _$ConnectionFromJson(Map<String, dynamic> json) {
|
||||
return _Connection.fromJson(json);
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$Connection {
|
||||
String get id => throw _privateConstructorUsedError;
|
||||
num? get upload => throw _privateConstructorUsedError;
|
||||
num? get download => throw _privateConstructorUsedError;
|
||||
DateTime get start => throw _privateConstructorUsedError;
|
||||
Metadata get metadata => throw _privateConstructorUsedError;
|
||||
List<String> get chains => throw _privateConstructorUsedError;
|
||||
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
$ConnectionCopyWith<Connection> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $ConnectionCopyWith<$Res> {
|
||||
factory $ConnectionCopyWith(
|
||||
Connection value, $Res Function(Connection) then) =
|
||||
_$ConnectionCopyWithImpl<$Res, Connection>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{String id,
|
||||
num? upload,
|
||||
num? download,
|
||||
DateTime start,
|
||||
Metadata metadata,
|
||||
List<String> chains});
|
||||
|
||||
$MetadataCopyWith<$Res> get metadata;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$ConnectionCopyWithImpl<$Res, $Val extends Connection>
|
||||
implements $ConnectionCopyWith<$Res> {
|
||||
_$ConnectionCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? id = null,
|
||||
Object? upload = freezed,
|
||||
Object? download = freezed,
|
||||
Object? start = null,
|
||||
Object? metadata = null,
|
||||
Object? chains = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
id: null == id
|
||||
? _value.id
|
||||
: id // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
upload: freezed == upload
|
||||
? _value.upload
|
||||
: upload // ignore: cast_nullable_to_non_nullable
|
||||
as num?,
|
||||
download: freezed == download
|
||||
? _value.download
|
||||
: download // ignore: cast_nullable_to_non_nullable
|
||||
as num?,
|
||||
start: null == start
|
||||
? _value.start
|
||||
: start // ignore: cast_nullable_to_non_nullable
|
||||
as DateTime,
|
||||
metadata: null == metadata
|
||||
? _value.metadata
|
||||
: metadata // ignore: cast_nullable_to_non_nullable
|
||||
as Metadata,
|
||||
chains: null == chains
|
||||
? _value.chains
|
||||
: chains // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,
|
||||
) as $Val);
|
||||
}
|
||||
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$MetadataCopyWith<$Res> get metadata {
|
||||
return $MetadataCopyWith<$Res>(_value.metadata, (value) {
|
||||
return _then(_value.copyWith(metadata: value) as $Val);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$ConnectionImplCopyWith<$Res>
|
||||
implements $ConnectionCopyWith<$Res> {
|
||||
factory _$$ConnectionImplCopyWith(
|
||||
_$ConnectionImpl value, $Res Function(_$ConnectionImpl) then) =
|
||||
__$$ConnectionImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{String id,
|
||||
num? upload,
|
||||
num? download,
|
||||
DateTime start,
|
||||
Metadata metadata,
|
||||
List<String> chains});
|
||||
|
||||
@override
|
||||
$MetadataCopyWith<$Res> get metadata;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$ConnectionImplCopyWithImpl<$Res>
|
||||
extends _$ConnectionCopyWithImpl<$Res, _$ConnectionImpl>
|
||||
implements _$$ConnectionImplCopyWith<$Res> {
|
||||
__$$ConnectionImplCopyWithImpl(
|
||||
_$ConnectionImpl _value, $Res Function(_$ConnectionImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? id = null,
|
||||
Object? upload = freezed,
|
||||
Object? download = freezed,
|
||||
Object? start = null,
|
||||
Object? metadata = null,
|
||||
Object? chains = null,
|
||||
}) {
|
||||
return _then(_$ConnectionImpl(
|
||||
id: null == id
|
||||
? _value.id
|
||||
: id // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
upload: freezed == upload
|
||||
? _value.upload
|
||||
: upload // ignore: cast_nullable_to_non_nullable
|
||||
as num?,
|
||||
download: freezed == download
|
||||
? _value.download
|
||||
: download // ignore: cast_nullable_to_non_nullable
|
||||
as num?,
|
||||
start: null == start
|
||||
? _value.start
|
||||
: start // ignore: cast_nullable_to_non_nullable
|
||||
as DateTime,
|
||||
metadata: null == metadata
|
||||
? _value.metadata
|
||||
: metadata // ignore: cast_nullable_to_non_nullable
|
||||
as Metadata,
|
||||
chains: null == chains
|
||||
? _value._chains
|
||||
: chains // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$ConnectionImpl implements _Connection {
|
||||
const _$ConnectionImpl(
|
||||
{required this.id,
|
||||
this.upload,
|
||||
this.download,
|
||||
required this.start,
|
||||
required this.metadata,
|
||||
required final List<String> chains})
|
||||
: _chains = chains;
|
||||
|
||||
factory _$ConnectionImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$ConnectionImplFromJson(json);
|
||||
|
||||
@override
|
||||
final String id;
|
||||
@override
|
||||
final num? upload;
|
||||
@override
|
||||
final num? download;
|
||||
@override
|
||||
final DateTime start;
|
||||
@override
|
||||
final Metadata metadata;
|
||||
final List<String> _chains;
|
||||
@override
|
||||
List<String> get chains {
|
||||
if (_chains is EqualUnmodifiableListView) return _chains;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_chains);
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'Connection(id: $id, upload: $upload, download: $download, start: $start, metadata: $metadata, chains: $chains)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$ConnectionImpl &&
|
||||
(identical(other.id, id) || other.id == id) &&
|
||||
(identical(other.upload, upload) || other.upload == upload) &&
|
||||
(identical(other.download, download) ||
|
||||
other.download == download) &&
|
||||
(identical(other.start, start) || other.start == start) &&
|
||||
(identical(other.metadata, metadata) ||
|
||||
other.metadata == metadata) &&
|
||||
const DeepCollectionEquality().equals(other._chains, _chains));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, id, upload, download, start,
|
||||
metadata, const DeepCollectionEquality().hash(_chains));
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$ConnectionImplCopyWith<_$ConnectionImpl> get copyWith =>
|
||||
__$$ConnectionImplCopyWithImpl<_$ConnectionImpl>(this, _$identity);
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
return _$$ConnectionImplToJson(
|
||||
this,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _Connection implements Connection {
|
||||
const factory _Connection(
|
||||
{required final String id,
|
||||
final num? upload,
|
||||
final num? download,
|
||||
required final DateTime start,
|
||||
required final Metadata metadata,
|
||||
required final List<String> chains}) = _$ConnectionImpl;
|
||||
|
||||
factory _Connection.fromJson(Map<String, dynamic> json) =
|
||||
_$ConnectionImpl.fromJson;
|
||||
|
||||
@override
|
||||
String get id;
|
||||
@override
|
||||
num? get upload;
|
||||
@override
|
||||
num? get download;
|
||||
@override
|
||||
DateTime get start;
|
||||
@override
|
||||
Metadata get metadata;
|
||||
@override
|
||||
List<String> get chains;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$ConnectionImplCopyWith<_$ConnectionImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
ConnectionsAndKeywords _$ConnectionsAndKeywordsFromJson(
|
||||
Map<String, dynamic> json) {
|
||||
return _ConnectionsAndKeywords.fromJson(json);
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$ConnectionsAndKeywords {
|
||||
List<Connection> get connections => throw _privateConstructorUsedError;
|
||||
List<String> get keywords => throw _privateConstructorUsedError;
|
||||
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
$ConnectionsAndKeywordsCopyWith<ConnectionsAndKeywords> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $ConnectionsAndKeywordsCopyWith<$Res> {
|
||||
factory $ConnectionsAndKeywordsCopyWith(ConnectionsAndKeywords value,
|
||||
$Res Function(ConnectionsAndKeywords) then) =
|
||||
_$ConnectionsAndKeywordsCopyWithImpl<$Res, ConnectionsAndKeywords>;
|
||||
@useResult
|
||||
$Res call({List<Connection> connections, List<String> keywords});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$ConnectionsAndKeywordsCopyWithImpl<$Res,
|
||||
$Val extends ConnectionsAndKeywords>
|
||||
implements $ConnectionsAndKeywordsCopyWith<$Res> {
|
||||
_$ConnectionsAndKeywordsCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? connections = null,
|
||||
Object? keywords = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
connections: null == connections
|
||||
? _value.connections
|
||||
: connections // ignore: cast_nullable_to_non_nullable
|
||||
as List<Connection>,
|
||||
keywords: null == keywords
|
||||
? _value.keywords
|
||||
: keywords // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$ConnectionsAndKeywordsImplCopyWith<$Res>
|
||||
implements $ConnectionsAndKeywordsCopyWith<$Res> {
|
||||
factory _$$ConnectionsAndKeywordsImplCopyWith(
|
||||
_$ConnectionsAndKeywordsImpl value,
|
||||
$Res Function(_$ConnectionsAndKeywordsImpl) then) =
|
||||
__$$ConnectionsAndKeywordsImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({List<Connection> connections, List<String> keywords});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$ConnectionsAndKeywordsImplCopyWithImpl<$Res>
|
||||
extends _$ConnectionsAndKeywordsCopyWithImpl<$Res,
|
||||
_$ConnectionsAndKeywordsImpl>
|
||||
implements _$$ConnectionsAndKeywordsImplCopyWith<$Res> {
|
||||
__$$ConnectionsAndKeywordsImplCopyWithImpl(
|
||||
_$ConnectionsAndKeywordsImpl _value,
|
||||
$Res Function(_$ConnectionsAndKeywordsImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? connections = null,
|
||||
Object? keywords = null,
|
||||
}) {
|
||||
return _then(_$ConnectionsAndKeywordsImpl(
|
||||
connections: null == connections
|
||||
? _value._connections
|
||||
: connections // ignore: cast_nullable_to_non_nullable
|
||||
as List<Connection>,
|
||||
keywords: null == keywords
|
||||
? _value._keywords
|
||||
: keywords // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$ConnectionsAndKeywordsImpl implements _ConnectionsAndKeywords {
|
||||
const _$ConnectionsAndKeywordsImpl(
|
||||
{final List<Connection> connections = const [],
|
||||
final List<String> keywords = const []})
|
||||
: _connections = connections,
|
||||
_keywords = keywords;
|
||||
|
||||
factory _$ConnectionsAndKeywordsImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$ConnectionsAndKeywordsImplFromJson(json);
|
||||
|
||||
final List<Connection> _connections;
|
||||
@override
|
||||
@JsonKey()
|
||||
List<Connection> get connections {
|
||||
if (_connections is EqualUnmodifiableListView) return _connections;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_connections);
|
||||
}
|
||||
|
||||
final List<String> _keywords;
|
||||
@override
|
||||
@JsonKey()
|
||||
List<String> get keywords {
|
||||
if (_keywords is EqualUnmodifiableListView) return _keywords;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_keywords);
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'ConnectionsAndKeywords(connections: $connections, keywords: $keywords)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$ConnectionsAndKeywordsImpl &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other._connections, _connections) &&
|
||||
const DeepCollectionEquality().equals(other._keywords, _keywords));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
const DeepCollectionEquality().hash(_connections),
|
||||
const DeepCollectionEquality().hash(_keywords));
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$ConnectionsAndKeywordsImplCopyWith<_$ConnectionsAndKeywordsImpl>
|
||||
get copyWith => __$$ConnectionsAndKeywordsImplCopyWithImpl<
|
||||
_$ConnectionsAndKeywordsImpl>(this, _$identity);
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
return _$$ConnectionsAndKeywordsImplToJson(
|
||||
this,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _ConnectionsAndKeywords implements ConnectionsAndKeywords {
|
||||
const factory _ConnectionsAndKeywords(
|
||||
{final List<Connection> connections,
|
||||
final List<String> keywords}) = _$ConnectionsAndKeywordsImpl;
|
||||
|
||||
factory _ConnectionsAndKeywords.fromJson(Map<String, dynamic> json) =
|
||||
_$ConnectionsAndKeywordsImpl.fromJson;
|
||||
|
||||
@override
|
||||
List<Connection> get connections;
|
||||
@override
|
||||
List<String> get keywords;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$ConnectionsAndKeywordsImplCopyWith<_$ConnectionsAndKeywordsImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
@@ -1,74 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of '../connection.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
_$MetadataImpl _$$MetadataImplFromJson(Map<String, dynamic> json) =>
|
||||
_$MetadataImpl(
|
||||
uid: (json['uid'] as num).toInt(),
|
||||
network: json['network'] as String,
|
||||
sourceIP: json['sourceIP'] as String,
|
||||
sourcePort: json['sourcePort'] as String,
|
||||
destinationIP: json['destinationIP'] as String,
|
||||
destinationPort: json['destinationPort'] as String,
|
||||
host: json['host'] as String,
|
||||
process: json['process'] as String,
|
||||
remoteDestination: json['remoteDestination'] as String,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$MetadataImplToJson(_$MetadataImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'uid': instance.uid,
|
||||
'network': instance.network,
|
||||
'sourceIP': instance.sourceIP,
|
||||
'sourcePort': instance.sourcePort,
|
||||
'destinationIP': instance.destinationIP,
|
||||
'destinationPort': instance.destinationPort,
|
||||
'host': instance.host,
|
||||
'process': instance.process,
|
||||
'remoteDestination': instance.remoteDestination,
|
||||
};
|
||||
|
||||
_$ConnectionImpl _$$ConnectionImplFromJson(Map<String, dynamic> json) =>
|
||||
_$ConnectionImpl(
|
||||
id: json['id'] as String,
|
||||
upload: json['upload'] as num?,
|
||||
download: json['download'] as num?,
|
||||
start: DateTime.parse(json['start'] as String),
|
||||
metadata: Metadata.fromJson(json['metadata'] as Map<String, dynamic>),
|
||||
chains:
|
||||
(json['chains'] as List<dynamic>).map((e) => e as String).toList(),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$ConnectionImplToJson(_$ConnectionImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'id': instance.id,
|
||||
'upload': instance.upload,
|
||||
'download': instance.download,
|
||||
'start': instance.start.toIso8601String(),
|
||||
'metadata': instance.metadata,
|
||||
'chains': instance.chains,
|
||||
};
|
||||
|
||||
_$ConnectionsAndKeywordsImpl _$$ConnectionsAndKeywordsImplFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
_$ConnectionsAndKeywordsImpl(
|
||||
connections: (json['connections'] as List<dynamic>?)
|
||||
?.map((e) => Connection.fromJson(e as Map<String, dynamic>))
|
||||
.toList() ??
|
||||
const [],
|
||||
keywords: (json['keywords'] as List<dynamic>?)
|
||||
?.map((e) => e as String)
|
||||
.toList() ??
|
||||
const [],
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$ConnectionsAndKeywordsImplToJson(
|
||||
_$ConnectionsAndKeywordsImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'connections': instance.connections,
|
||||
'keywords': instance.keywords,
|
||||
};
|
||||
@@ -1,202 +0,0 @@
|
||||
// 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 '../dav.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.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
|
||||
|
||||
DAV _$DAVFromJson(Map<String, dynamic> json) {
|
||||
return _DAV.fromJson(json);
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$DAV {
|
||||
String get uri => throw _privateConstructorUsedError;
|
||||
String get user => throw _privateConstructorUsedError;
|
||||
String get password => throw _privateConstructorUsedError;
|
||||
String get fileName => throw _privateConstructorUsedError;
|
||||
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
$DAVCopyWith<DAV> get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $DAVCopyWith<$Res> {
|
||||
factory $DAVCopyWith(DAV value, $Res Function(DAV) then) =
|
||||
_$DAVCopyWithImpl<$Res, DAV>;
|
||||
@useResult
|
||||
$Res call({String uri, String user, String password, String fileName});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$DAVCopyWithImpl<$Res, $Val extends DAV> implements $DAVCopyWith<$Res> {
|
||||
_$DAVCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? uri = null,
|
||||
Object? user = null,
|
||||
Object? password = null,
|
||||
Object? fileName = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
uri: null == uri
|
||||
? _value.uri
|
||||
: uri // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
user: null == user
|
||||
? _value.user
|
||||
: user // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
password: null == password
|
||||
? _value.password
|
||||
: password // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
fileName: null == fileName
|
||||
? _value.fileName
|
||||
: fileName // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$DAVImplCopyWith<$Res> implements $DAVCopyWith<$Res> {
|
||||
factory _$$DAVImplCopyWith(_$DAVImpl value, $Res Function(_$DAVImpl) then) =
|
||||
__$$DAVImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({String uri, String user, String password, String fileName});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$DAVImplCopyWithImpl<$Res> extends _$DAVCopyWithImpl<$Res, _$DAVImpl>
|
||||
implements _$$DAVImplCopyWith<$Res> {
|
||||
__$$DAVImplCopyWithImpl(_$DAVImpl _value, $Res Function(_$DAVImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? uri = null,
|
||||
Object? user = null,
|
||||
Object? password = null,
|
||||
Object? fileName = null,
|
||||
}) {
|
||||
return _then(_$DAVImpl(
|
||||
uri: null == uri
|
||||
? _value.uri
|
||||
: uri // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
user: null == user
|
||||
? _value.user
|
||||
: user // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
password: null == password
|
||||
? _value.password
|
||||
: password // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
fileName: null == fileName
|
||||
? _value.fileName
|
||||
: fileName // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$DAVImpl implements _DAV {
|
||||
const _$DAVImpl(
|
||||
{required this.uri,
|
||||
required this.user,
|
||||
required this.password,
|
||||
this.fileName = defaultDavFileName});
|
||||
|
||||
factory _$DAVImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$DAVImplFromJson(json);
|
||||
|
||||
@override
|
||||
final String uri;
|
||||
@override
|
||||
final String user;
|
||||
@override
|
||||
final String password;
|
||||
@override
|
||||
@JsonKey()
|
||||
final String fileName;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'DAV(uri: $uri, user: $user, password: $password, fileName: $fileName)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$DAVImpl &&
|
||||
(identical(other.uri, uri) || other.uri == uri) &&
|
||||
(identical(other.user, user) || other.user == user) &&
|
||||
(identical(other.password, password) ||
|
||||
other.password == password) &&
|
||||
(identical(other.fileName, fileName) ||
|
||||
other.fileName == fileName));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, uri, user, password, fileName);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$DAVImplCopyWith<_$DAVImpl> get copyWith =>
|
||||
__$$DAVImplCopyWithImpl<_$DAVImpl>(this, _$identity);
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
return _$$DAVImplToJson(
|
||||
this,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _DAV implements DAV {
|
||||
const factory _DAV(
|
||||
{required final String uri,
|
||||
required final String user,
|
||||
required final String password,
|
||||
final String fileName}) = _$DAVImpl;
|
||||
|
||||
factory _DAV.fromJson(Map<String, dynamic> json) = _$DAVImpl.fromJson;
|
||||
|
||||
@override
|
||||
String get uri;
|
||||
@override
|
||||
String get user;
|
||||
@override
|
||||
String get password;
|
||||
@override
|
||||
String get fileName;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$DAVImplCopyWith<_$DAVImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of '../dav.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
_$DAVImpl _$$DAVImplFromJson(Map<String, dynamic> json) => _$DAVImpl(
|
||||
uri: json['uri'] as String,
|
||||
user: json['user'] as String,
|
||||
password: json['password'] as String,
|
||||
fileName: json['fileName'] as String? ?? defaultDavFileName,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$DAVImplToJson(_$DAVImpl instance) => <String, dynamic>{
|
||||
'uri': instance.uri,
|
||||
'user': instance.user,
|
||||
'password': instance.password,
|
||||
'fileName': instance.fileName,
|
||||
};
|
||||
@@ -1975,3 +1975,264 @@ abstract class _ExternalProvider implements ExternalProvider {
|
||||
_$$ExternalProviderImplCopyWith<_$ExternalProviderImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
TunProps _$TunPropsFromJson(Map<String, dynamic> json) {
|
||||
return _TunProps.fromJson(json);
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$TunProps {
|
||||
int get fd => throw _privateConstructorUsedError;
|
||||
String get gateway => throw _privateConstructorUsedError;
|
||||
String get gateway6 => throw _privateConstructorUsedError;
|
||||
String get portal => throw _privateConstructorUsedError;
|
||||
String get portal6 => throw _privateConstructorUsedError;
|
||||
String get dns => throw _privateConstructorUsedError;
|
||||
String get dns6 => throw _privateConstructorUsedError;
|
||||
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
$TunPropsCopyWith<TunProps> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $TunPropsCopyWith<$Res> {
|
||||
factory $TunPropsCopyWith(TunProps value, $Res Function(TunProps) then) =
|
||||
_$TunPropsCopyWithImpl<$Res, TunProps>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{int fd,
|
||||
String gateway,
|
||||
String gateway6,
|
||||
String portal,
|
||||
String portal6,
|
||||
String dns,
|
||||
String dns6});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$TunPropsCopyWithImpl<$Res, $Val extends TunProps>
|
||||
implements $TunPropsCopyWith<$Res> {
|
||||
_$TunPropsCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? fd = null,
|
||||
Object? gateway = null,
|
||||
Object? gateway6 = null,
|
||||
Object? portal = null,
|
||||
Object? portal6 = null,
|
||||
Object? dns = null,
|
||||
Object? dns6 = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
fd: null == fd
|
||||
? _value.fd
|
||||
: fd // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
gateway: null == gateway
|
||||
? _value.gateway
|
||||
: gateway // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
gateway6: null == gateway6
|
||||
? _value.gateway6
|
||||
: gateway6 // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
portal: null == portal
|
||||
? _value.portal
|
||||
: portal // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
portal6: null == portal6
|
||||
? _value.portal6
|
||||
: portal6 // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
dns: null == dns
|
||||
? _value.dns
|
||||
: dns // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
dns6: null == dns6
|
||||
? _value.dns6
|
||||
: dns6 // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$TunPropsImplCopyWith<$Res>
|
||||
implements $TunPropsCopyWith<$Res> {
|
||||
factory _$$TunPropsImplCopyWith(
|
||||
_$TunPropsImpl value, $Res Function(_$TunPropsImpl) then) =
|
||||
__$$TunPropsImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{int fd,
|
||||
String gateway,
|
||||
String gateway6,
|
||||
String portal,
|
||||
String portal6,
|
||||
String dns,
|
||||
String dns6});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$TunPropsImplCopyWithImpl<$Res>
|
||||
extends _$TunPropsCopyWithImpl<$Res, _$TunPropsImpl>
|
||||
implements _$$TunPropsImplCopyWith<$Res> {
|
||||
__$$TunPropsImplCopyWithImpl(
|
||||
_$TunPropsImpl _value, $Res Function(_$TunPropsImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? fd = null,
|
||||
Object? gateway = null,
|
||||
Object? gateway6 = null,
|
||||
Object? portal = null,
|
||||
Object? portal6 = null,
|
||||
Object? dns = null,
|
||||
Object? dns6 = null,
|
||||
}) {
|
||||
return _then(_$TunPropsImpl(
|
||||
fd: null == fd
|
||||
? _value.fd
|
||||
: fd // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
gateway: null == gateway
|
||||
? _value.gateway
|
||||
: gateway // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
gateway6: null == gateway6
|
||||
? _value.gateway6
|
||||
: gateway6 // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
portal: null == portal
|
||||
? _value.portal
|
||||
: portal // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
portal6: null == portal6
|
||||
? _value.portal6
|
||||
: portal6 // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
dns: null == dns
|
||||
? _value.dns
|
||||
: dns // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
dns6: null == dns6
|
||||
? _value.dns6
|
||||
: dns6 // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$TunPropsImpl implements _TunProps {
|
||||
const _$TunPropsImpl(
|
||||
{required this.fd,
|
||||
required this.gateway,
|
||||
required this.gateway6,
|
||||
required this.portal,
|
||||
required this.portal6,
|
||||
required this.dns,
|
||||
required this.dns6});
|
||||
|
||||
factory _$TunPropsImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$TunPropsImplFromJson(json);
|
||||
|
||||
@override
|
||||
final int fd;
|
||||
@override
|
||||
final String gateway;
|
||||
@override
|
||||
final String gateway6;
|
||||
@override
|
||||
final String portal;
|
||||
@override
|
||||
final String portal6;
|
||||
@override
|
||||
final String dns;
|
||||
@override
|
||||
final String dns6;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'TunProps(fd: $fd, gateway: $gateway, gateway6: $gateway6, portal: $portal, portal6: $portal6, dns: $dns, dns6: $dns6)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$TunPropsImpl &&
|
||||
(identical(other.fd, fd) || other.fd == fd) &&
|
||||
(identical(other.gateway, gateway) || other.gateway == gateway) &&
|
||||
(identical(other.gateway6, gateway6) ||
|
||||
other.gateway6 == gateway6) &&
|
||||
(identical(other.portal, portal) || other.portal == portal) &&
|
||||
(identical(other.portal6, portal6) || other.portal6 == portal6) &&
|
||||
(identical(other.dns, dns) || other.dns == dns) &&
|
||||
(identical(other.dns6, dns6) || other.dns6 == dns6));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType, fd, gateway, gateway6, portal, portal6, dns, dns6);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$TunPropsImplCopyWith<_$TunPropsImpl> get copyWith =>
|
||||
__$$TunPropsImplCopyWithImpl<_$TunPropsImpl>(this, _$identity);
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
return _$$TunPropsImplToJson(
|
||||
this,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _TunProps implements TunProps {
|
||||
const factory _TunProps(
|
||||
{required final int fd,
|
||||
required final String gateway,
|
||||
required final String gateway6,
|
||||
required final String portal,
|
||||
required final String portal6,
|
||||
required final String dns,
|
||||
required final String dns6}) = _$TunPropsImpl;
|
||||
|
||||
factory _TunProps.fromJson(Map<String, dynamic> json) =
|
||||
_$TunPropsImpl.fromJson;
|
||||
|
||||
@override
|
||||
int get fd;
|
||||
@override
|
||||
String get gateway;
|
||||
@override
|
||||
String get gateway6;
|
||||
@override
|
||||
String get portal;
|
||||
@override
|
||||
String get portal6;
|
||||
@override
|
||||
String get dns;
|
||||
@override
|
||||
String get dns6;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$TunPropsImplCopyWith<_$TunPropsImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
@@ -176,3 +176,25 @@ Map<String, dynamic> _$$ExternalProviderImplToJson(
|
||||
'vehicle-type': instance.vehicleType,
|
||||
'update-at': instance.updateAt.toIso8601String(),
|
||||
};
|
||||
|
||||
_$TunPropsImpl _$$TunPropsImplFromJson(Map<String, dynamic> json) =>
|
||||
_$TunPropsImpl(
|
||||
fd: (json['fd'] as num).toInt(),
|
||||
gateway: json['gateway'] as String,
|
||||
gateway6: json['gateway6'] as String,
|
||||
portal: json['portal'] as String,
|
||||
portal6: json['portal6'] as String,
|
||||
dns: json['dns'] as String,
|
||||
dns6: json['dns6'] as String,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$TunPropsImplToJson(_$TunPropsImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'fd': instance.fd,
|
||||
'gateway': instance.gateway,
|
||||
'gateway6': instance.gateway6,
|
||||
'portal': instance.portal,
|
||||
'portal6': instance.portal6,
|
||||
'dns': instance.dns,
|
||||
'dns6': instance.dns6,
|
||||
};
|
||||
|
||||
@@ -1,150 +0,0 @@
|
||||
// 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 '../file.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.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
|
||||
|
||||
/// @nodoc
|
||||
mixin _$FileInfo {
|
||||
int get size => throw _privateConstructorUsedError;
|
||||
DateTime get lastModified => throw _privateConstructorUsedError;
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
$FileInfoCopyWith<FileInfo> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $FileInfoCopyWith<$Res> {
|
||||
factory $FileInfoCopyWith(FileInfo value, $Res Function(FileInfo) then) =
|
||||
_$FileInfoCopyWithImpl<$Res, FileInfo>;
|
||||
@useResult
|
||||
$Res call({int size, DateTime lastModified});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$FileInfoCopyWithImpl<$Res, $Val extends FileInfo>
|
||||
implements $FileInfoCopyWith<$Res> {
|
||||
_$FileInfoCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? size = null,
|
||||
Object? lastModified = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
size: null == size
|
||||
? _value.size
|
||||
: size // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
lastModified: null == lastModified
|
||||
? _value.lastModified
|
||||
: lastModified // ignore: cast_nullable_to_non_nullable
|
||||
as DateTime,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$FileInfoImplCopyWith<$Res>
|
||||
implements $FileInfoCopyWith<$Res> {
|
||||
factory _$$FileInfoImplCopyWith(
|
||||
_$FileInfoImpl value, $Res Function(_$FileInfoImpl) then) =
|
||||
__$$FileInfoImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({int size, DateTime lastModified});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$FileInfoImplCopyWithImpl<$Res>
|
||||
extends _$FileInfoCopyWithImpl<$Res, _$FileInfoImpl>
|
||||
implements _$$FileInfoImplCopyWith<$Res> {
|
||||
__$$FileInfoImplCopyWithImpl(
|
||||
_$FileInfoImpl _value, $Res Function(_$FileInfoImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? size = null,
|
||||
Object? lastModified = null,
|
||||
}) {
|
||||
return _then(_$FileInfoImpl(
|
||||
size: null == size
|
||||
? _value.size
|
||||
: size // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
lastModified: null == lastModified
|
||||
? _value.lastModified
|
||||
: lastModified // ignore: cast_nullable_to_non_nullable
|
||||
as DateTime,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$FileInfoImpl implements _FileInfo {
|
||||
const _$FileInfoImpl({required this.size, required this.lastModified});
|
||||
|
||||
@override
|
||||
final int size;
|
||||
@override
|
||||
final DateTime lastModified;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'FileInfo(size: $size, lastModified: $lastModified)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$FileInfoImpl &&
|
||||
(identical(other.size, size) || other.size == size) &&
|
||||
(identical(other.lastModified, lastModified) ||
|
||||
other.lastModified == lastModified));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, size, lastModified);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$FileInfoImplCopyWith<_$FileInfoImpl> get copyWith =>
|
||||
__$$FileInfoImplCopyWithImpl<_$FileInfoImpl>(this, _$identity);
|
||||
}
|
||||
|
||||
abstract class _FileInfo implements FileInfo {
|
||||
const factory _FileInfo(
|
||||
{required final int size,
|
||||
required final DateTime lastModified}) = _$FileInfoImpl;
|
||||
|
||||
@override
|
||||
int get size;
|
||||
@override
|
||||
DateTime get lastModified;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$FileInfoImplCopyWith<_$FileInfoImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@@ -1,189 +0,0 @@
|
||||
// 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 '../log.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.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
|
||||
|
||||
LogsAndKeywords _$LogsAndKeywordsFromJson(Map<String, dynamic> json) {
|
||||
return _LogsAndKeywords.fromJson(json);
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$LogsAndKeywords {
|
||||
List<Log> get logs => throw _privateConstructorUsedError;
|
||||
List<String> get keywords => throw _privateConstructorUsedError;
|
||||
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
$LogsAndKeywordsCopyWith<LogsAndKeywords> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $LogsAndKeywordsCopyWith<$Res> {
|
||||
factory $LogsAndKeywordsCopyWith(
|
||||
LogsAndKeywords value, $Res Function(LogsAndKeywords) then) =
|
||||
_$LogsAndKeywordsCopyWithImpl<$Res, LogsAndKeywords>;
|
||||
@useResult
|
||||
$Res call({List<Log> logs, List<String> keywords});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$LogsAndKeywordsCopyWithImpl<$Res, $Val extends LogsAndKeywords>
|
||||
implements $LogsAndKeywordsCopyWith<$Res> {
|
||||
_$LogsAndKeywordsCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? logs = null,
|
||||
Object? keywords = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
logs: null == logs
|
||||
? _value.logs
|
||||
: logs // ignore: cast_nullable_to_non_nullable
|
||||
as List<Log>,
|
||||
keywords: null == keywords
|
||||
? _value.keywords
|
||||
: keywords // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$LogsAndKeywordsImplCopyWith<$Res>
|
||||
implements $LogsAndKeywordsCopyWith<$Res> {
|
||||
factory _$$LogsAndKeywordsImplCopyWith(_$LogsAndKeywordsImpl value,
|
||||
$Res Function(_$LogsAndKeywordsImpl) then) =
|
||||
__$$LogsAndKeywordsImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({List<Log> logs, List<String> keywords});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$LogsAndKeywordsImplCopyWithImpl<$Res>
|
||||
extends _$LogsAndKeywordsCopyWithImpl<$Res, _$LogsAndKeywordsImpl>
|
||||
implements _$$LogsAndKeywordsImplCopyWith<$Res> {
|
||||
__$$LogsAndKeywordsImplCopyWithImpl(
|
||||
_$LogsAndKeywordsImpl _value, $Res Function(_$LogsAndKeywordsImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? logs = null,
|
||||
Object? keywords = null,
|
||||
}) {
|
||||
return _then(_$LogsAndKeywordsImpl(
|
||||
logs: null == logs
|
||||
? _value._logs
|
||||
: logs // ignore: cast_nullable_to_non_nullable
|
||||
as List<Log>,
|
||||
keywords: null == keywords
|
||||
? _value._keywords
|
||||
: keywords // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$LogsAndKeywordsImpl implements _LogsAndKeywords {
|
||||
const _$LogsAndKeywordsImpl(
|
||||
{final List<Log> logs = const [], final List<String> keywords = const []})
|
||||
: _logs = logs,
|
||||
_keywords = keywords;
|
||||
|
||||
factory _$LogsAndKeywordsImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$LogsAndKeywordsImplFromJson(json);
|
||||
|
||||
final List<Log> _logs;
|
||||
@override
|
||||
@JsonKey()
|
||||
List<Log> get logs {
|
||||
if (_logs is EqualUnmodifiableListView) return _logs;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_logs);
|
||||
}
|
||||
|
||||
final List<String> _keywords;
|
||||
@override
|
||||
@JsonKey()
|
||||
List<String> get keywords {
|
||||
if (_keywords is EqualUnmodifiableListView) return _keywords;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_keywords);
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'LogsAndKeywords(logs: $logs, keywords: $keywords)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$LogsAndKeywordsImpl &&
|
||||
const DeepCollectionEquality().equals(other._logs, _logs) &&
|
||||
const DeepCollectionEquality().equals(other._keywords, _keywords));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
const DeepCollectionEquality().hash(_logs),
|
||||
const DeepCollectionEquality().hash(_keywords));
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$LogsAndKeywordsImplCopyWith<_$LogsAndKeywordsImpl> get copyWith =>
|
||||
__$$LogsAndKeywordsImplCopyWithImpl<_$LogsAndKeywordsImpl>(
|
||||
this, _$identity);
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
return _$$LogsAndKeywordsImplToJson(
|
||||
this,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _LogsAndKeywords implements LogsAndKeywords {
|
||||
const factory _LogsAndKeywords(
|
||||
{final List<Log> logs,
|
||||
final List<String> keywords}) = _$LogsAndKeywordsImpl;
|
||||
|
||||
factory _LogsAndKeywords.fromJson(Map<String, dynamic> json) =
|
||||
_$LogsAndKeywordsImpl.fromJson;
|
||||
|
||||
@override
|
||||
List<Log> get logs;
|
||||
@override
|
||||
List<String> get keywords;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$LogsAndKeywordsImplCopyWith<_$LogsAndKeywordsImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of '../log.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
Log _$LogFromJson(Map<String, dynamic> json) => Log(
|
||||
logLevel: $enumDecode(_$LogLevelEnumMap, json['LogLevel']),
|
||||
payload: json['Payload'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$LogToJson(Log instance) => <String, dynamic>{
|
||||
'LogLevel': _$LogLevelEnumMap[instance.logLevel]!,
|
||||
'Payload': instance.payload,
|
||||
};
|
||||
|
||||
const _$LogLevelEnumMap = {
|
||||
LogLevel.debug: 'debug',
|
||||
LogLevel.info: 'info',
|
||||
LogLevel.warning: 'warning',
|
||||
LogLevel.error: 'error',
|
||||
LogLevel.silent: 'silent',
|
||||
};
|
||||
|
||||
_$LogsAndKeywordsImpl _$$LogsAndKeywordsImplFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
_$LogsAndKeywordsImpl(
|
||||
logs: (json['logs'] as List<dynamic>?)
|
||||
?.map((e) => Log.fromJson(e as Map<String, dynamic>))
|
||||
.toList() ??
|
||||
const [],
|
||||
keywords: (json['keywords'] as List<dynamic>?)
|
||||
?.map((e) => e as String)
|
||||
.toList() ??
|
||||
const [],
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$LogsAndKeywordsImplToJson(
|
||||
_$LogsAndKeywordsImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'logs': instance.logs,
|
||||
'keywords': instance.keywords,
|
||||
};
|
||||
@@ -1,271 +0,0 @@
|
||||
// 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 '../navigation.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.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
|
||||
|
||||
/// @nodoc
|
||||
mixin _$NavigationItem {
|
||||
Icon get icon => throw _privateConstructorUsedError;
|
||||
String get label => throw _privateConstructorUsedError;
|
||||
String? get description => throw _privateConstructorUsedError;
|
||||
Widget get fragment => throw _privateConstructorUsedError;
|
||||
bool get keep => throw _privateConstructorUsedError;
|
||||
String? get path => throw _privateConstructorUsedError;
|
||||
List<NavigationItemMode> get modes => throw _privateConstructorUsedError;
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
$NavigationItemCopyWith<NavigationItem> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $NavigationItemCopyWith<$Res> {
|
||||
factory $NavigationItemCopyWith(
|
||||
NavigationItem value, $Res Function(NavigationItem) then) =
|
||||
_$NavigationItemCopyWithImpl<$Res, NavigationItem>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{Icon icon,
|
||||
String label,
|
||||
String? description,
|
||||
Widget fragment,
|
||||
bool keep,
|
||||
String? path,
|
||||
List<NavigationItemMode> modes});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$NavigationItemCopyWithImpl<$Res, $Val extends NavigationItem>
|
||||
implements $NavigationItemCopyWith<$Res> {
|
||||
_$NavigationItemCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? icon = null,
|
||||
Object? label = null,
|
||||
Object? description = freezed,
|
||||
Object? fragment = null,
|
||||
Object? keep = null,
|
||||
Object? path = freezed,
|
||||
Object? modes = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
icon: null == icon
|
||||
? _value.icon
|
||||
: icon // ignore: cast_nullable_to_non_nullable
|
||||
as Icon,
|
||||
label: null == label
|
||||
? _value.label
|
||||
: label // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
description: freezed == description
|
||||
? _value.description
|
||||
: description // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
fragment: null == fragment
|
||||
? _value.fragment
|
||||
: fragment // ignore: cast_nullable_to_non_nullable
|
||||
as Widget,
|
||||
keep: null == keep
|
||||
? _value.keep
|
||||
: keep // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
path: freezed == path
|
||||
? _value.path
|
||||
: path // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
modes: null == modes
|
||||
? _value.modes
|
||||
: modes // ignore: cast_nullable_to_non_nullable
|
||||
as List<NavigationItemMode>,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$NavigationItemImplCopyWith<$Res>
|
||||
implements $NavigationItemCopyWith<$Res> {
|
||||
factory _$$NavigationItemImplCopyWith(_$NavigationItemImpl value,
|
||||
$Res Function(_$NavigationItemImpl) then) =
|
||||
__$$NavigationItemImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{Icon icon,
|
||||
String label,
|
||||
String? description,
|
||||
Widget fragment,
|
||||
bool keep,
|
||||
String? path,
|
||||
List<NavigationItemMode> modes});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$NavigationItemImplCopyWithImpl<$Res>
|
||||
extends _$NavigationItemCopyWithImpl<$Res, _$NavigationItemImpl>
|
||||
implements _$$NavigationItemImplCopyWith<$Res> {
|
||||
__$$NavigationItemImplCopyWithImpl(
|
||||
_$NavigationItemImpl _value, $Res Function(_$NavigationItemImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? icon = null,
|
||||
Object? label = null,
|
||||
Object? description = freezed,
|
||||
Object? fragment = null,
|
||||
Object? keep = null,
|
||||
Object? path = freezed,
|
||||
Object? modes = null,
|
||||
}) {
|
||||
return _then(_$NavigationItemImpl(
|
||||
icon: null == icon
|
||||
? _value.icon
|
||||
: icon // ignore: cast_nullable_to_non_nullable
|
||||
as Icon,
|
||||
label: null == label
|
||||
? _value.label
|
||||
: label // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
description: freezed == description
|
||||
? _value.description
|
||||
: description // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
fragment: null == fragment
|
||||
? _value.fragment
|
||||
: fragment // ignore: cast_nullable_to_non_nullable
|
||||
as Widget,
|
||||
keep: null == keep
|
||||
? _value.keep
|
||||
: keep // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
path: freezed == path
|
||||
? _value.path
|
||||
: path // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
modes: null == modes
|
||||
? _value._modes
|
||||
: modes // ignore: cast_nullable_to_non_nullable
|
||||
as List<NavigationItemMode>,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$NavigationItemImpl implements _NavigationItem {
|
||||
const _$NavigationItemImpl(
|
||||
{required this.icon,
|
||||
required this.label,
|
||||
this.description,
|
||||
required this.fragment,
|
||||
this.keep = true,
|
||||
this.path,
|
||||
final List<NavigationItemMode> modes = const [
|
||||
NavigationItemMode.mobile,
|
||||
NavigationItemMode.desktop
|
||||
]})
|
||||
: _modes = modes;
|
||||
|
||||
@override
|
||||
final Icon icon;
|
||||
@override
|
||||
final String label;
|
||||
@override
|
||||
final String? description;
|
||||
@override
|
||||
final Widget fragment;
|
||||
@override
|
||||
@JsonKey()
|
||||
final bool keep;
|
||||
@override
|
||||
final String? path;
|
||||
final List<NavigationItemMode> _modes;
|
||||
@override
|
||||
@JsonKey()
|
||||
List<NavigationItemMode> get modes {
|
||||
if (_modes is EqualUnmodifiableListView) return _modes;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_modes);
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'NavigationItem(icon: $icon, label: $label, description: $description, fragment: $fragment, keep: $keep, path: $path, modes: $modes)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$NavigationItemImpl &&
|
||||
(identical(other.icon, icon) || other.icon == icon) &&
|
||||
(identical(other.label, label) || other.label == label) &&
|
||||
(identical(other.description, description) ||
|
||||
other.description == description) &&
|
||||
(identical(other.fragment, fragment) ||
|
||||
other.fragment == fragment) &&
|
||||
(identical(other.keep, keep) || other.keep == keep) &&
|
||||
(identical(other.path, path) || other.path == path) &&
|
||||
const DeepCollectionEquality().equals(other._modes, _modes));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, icon, label, description,
|
||||
fragment, keep, path, const DeepCollectionEquality().hash(_modes));
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$NavigationItemImplCopyWith<_$NavigationItemImpl> get copyWith =>
|
||||
__$$NavigationItemImplCopyWithImpl<_$NavigationItemImpl>(
|
||||
this, _$identity);
|
||||
}
|
||||
|
||||
abstract class _NavigationItem implements NavigationItem {
|
||||
const factory _NavigationItem(
|
||||
{required final Icon icon,
|
||||
required final String label,
|
||||
final String? description,
|
||||
required final Widget fragment,
|
||||
final bool keep,
|
||||
final String? path,
|
||||
final List<NavigationItemMode> modes}) = _$NavigationItemImpl;
|
||||
|
||||
@override
|
||||
Icon get icon;
|
||||
@override
|
||||
String get label;
|
||||
@override
|
||||
String? get description;
|
||||
@override
|
||||
Widget get fragment;
|
||||
@override
|
||||
bool get keep;
|
||||
@override
|
||||
String? get path;
|
||||
@override
|
||||
List<NavigationItemMode> get modes;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$NavigationItemImplCopyWith<_$NavigationItemImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@@ -1,209 +0,0 @@
|
||||
// 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 '../package.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.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
|
||||
|
||||
Package _$PackageFromJson(Map<String, dynamic> json) {
|
||||
return _Package.fromJson(json);
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$Package {
|
||||
String get packageName => throw _privateConstructorUsedError;
|
||||
String get label => throw _privateConstructorUsedError;
|
||||
bool get isSystem => throw _privateConstructorUsedError;
|
||||
int get firstInstallTime => throw _privateConstructorUsedError;
|
||||
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
$PackageCopyWith<Package> get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $PackageCopyWith<$Res> {
|
||||
factory $PackageCopyWith(Package value, $Res Function(Package) then) =
|
||||
_$PackageCopyWithImpl<$Res, Package>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{String packageName, String label, bool isSystem, int firstInstallTime});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$PackageCopyWithImpl<$Res, $Val extends Package>
|
||||
implements $PackageCopyWith<$Res> {
|
||||
_$PackageCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? packageName = null,
|
||||
Object? label = null,
|
||||
Object? isSystem = null,
|
||||
Object? firstInstallTime = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
packageName: null == packageName
|
||||
? _value.packageName
|
||||
: packageName // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
label: null == label
|
||||
? _value.label
|
||||
: label // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
isSystem: null == isSystem
|
||||
? _value.isSystem
|
||||
: isSystem // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
firstInstallTime: null == firstInstallTime
|
||||
? _value.firstInstallTime
|
||||
: firstInstallTime // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$PackageImplCopyWith<$Res> implements $PackageCopyWith<$Res> {
|
||||
factory _$$PackageImplCopyWith(
|
||||
_$PackageImpl value, $Res Function(_$PackageImpl) then) =
|
||||
__$$PackageImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{String packageName, String label, bool isSystem, int firstInstallTime});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$PackageImplCopyWithImpl<$Res>
|
||||
extends _$PackageCopyWithImpl<$Res, _$PackageImpl>
|
||||
implements _$$PackageImplCopyWith<$Res> {
|
||||
__$$PackageImplCopyWithImpl(
|
||||
_$PackageImpl _value, $Res Function(_$PackageImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? packageName = null,
|
||||
Object? label = null,
|
||||
Object? isSystem = null,
|
||||
Object? firstInstallTime = null,
|
||||
}) {
|
||||
return _then(_$PackageImpl(
|
||||
packageName: null == packageName
|
||||
? _value.packageName
|
||||
: packageName // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
label: null == label
|
||||
? _value.label
|
||||
: label // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
isSystem: null == isSystem
|
||||
? _value.isSystem
|
||||
: isSystem // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
firstInstallTime: null == firstInstallTime
|
||||
? _value.firstInstallTime
|
||||
: firstInstallTime // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$PackageImpl implements _Package {
|
||||
const _$PackageImpl(
|
||||
{required this.packageName,
|
||||
required this.label,
|
||||
required this.isSystem,
|
||||
required this.firstInstallTime});
|
||||
|
||||
factory _$PackageImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$PackageImplFromJson(json);
|
||||
|
||||
@override
|
||||
final String packageName;
|
||||
@override
|
||||
final String label;
|
||||
@override
|
||||
final bool isSystem;
|
||||
@override
|
||||
final int firstInstallTime;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'Package(packageName: $packageName, label: $label, isSystem: $isSystem, firstInstallTime: $firstInstallTime)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$PackageImpl &&
|
||||
(identical(other.packageName, packageName) ||
|
||||
other.packageName == packageName) &&
|
||||
(identical(other.label, label) || other.label == label) &&
|
||||
(identical(other.isSystem, isSystem) ||
|
||||
other.isSystem == isSystem) &&
|
||||
(identical(other.firstInstallTime, firstInstallTime) ||
|
||||
other.firstInstallTime == firstInstallTime));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
int get hashCode =>
|
||||
Object.hash(runtimeType, packageName, label, isSystem, firstInstallTime);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$PackageImplCopyWith<_$PackageImpl> get copyWith =>
|
||||
__$$PackageImplCopyWithImpl<_$PackageImpl>(this, _$identity);
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
return _$$PackageImplToJson(
|
||||
this,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _Package implements Package {
|
||||
const factory _Package(
|
||||
{required final String packageName,
|
||||
required final String label,
|
||||
required final bool isSystem,
|
||||
required final int firstInstallTime}) = _$PackageImpl;
|
||||
|
||||
factory _Package.fromJson(Map<String, dynamic> json) = _$PackageImpl.fromJson;
|
||||
|
||||
@override
|
||||
String get packageName;
|
||||
@override
|
||||
String get label;
|
||||
@override
|
||||
bool get isSystem;
|
||||
@override
|
||||
int get firstInstallTime;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$PackageImplCopyWith<_$PackageImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of '../package.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
_$PackageImpl _$$PackageImplFromJson(Map<String, dynamic> json) =>
|
||||
_$PackageImpl(
|
||||
packageName: json['packageName'] as String,
|
||||
label: json['label'] as String,
|
||||
isSystem: json['isSystem'] as bool,
|
||||
firstInstallTime: (json['firstInstallTime'] as num).toInt(),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$PackageImplToJson(_$PackageImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'packageName': instance.packageName,
|
||||
'label': instance.label,
|
||||
'isSystem': instance.isSystem,
|
||||
'firstInstallTime': instance.firstInstallTime,
|
||||
};
|
||||
@@ -1,428 +0,0 @@
|
||||
// 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 '../proxy.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.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
|
||||
|
||||
Group _$GroupFromJson(Map<String, dynamic> json) {
|
||||
return _Group.fromJson(json);
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$Group {
|
||||
GroupType get type => throw _privateConstructorUsedError;
|
||||
List<Proxy> get all => throw _privateConstructorUsedError;
|
||||
String? get now => throw _privateConstructorUsedError;
|
||||
bool? get hidden => throw _privateConstructorUsedError;
|
||||
String get icon => throw _privateConstructorUsedError;
|
||||
String get name => throw _privateConstructorUsedError;
|
||||
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
$GroupCopyWith<Group> get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $GroupCopyWith<$Res> {
|
||||
factory $GroupCopyWith(Group value, $Res Function(Group) then) =
|
||||
_$GroupCopyWithImpl<$Res, Group>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{GroupType type,
|
||||
List<Proxy> all,
|
||||
String? now,
|
||||
bool? hidden,
|
||||
String icon,
|
||||
String name});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$GroupCopyWithImpl<$Res, $Val extends Group>
|
||||
implements $GroupCopyWith<$Res> {
|
||||
_$GroupCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? type = null,
|
||||
Object? all = null,
|
||||
Object? now = freezed,
|
||||
Object? hidden = freezed,
|
||||
Object? icon = null,
|
||||
Object? name = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
type: null == type
|
||||
? _value.type
|
||||
: type // ignore: cast_nullable_to_non_nullable
|
||||
as GroupType,
|
||||
all: null == all
|
||||
? _value.all
|
||||
: all // ignore: cast_nullable_to_non_nullable
|
||||
as List<Proxy>,
|
||||
now: freezed == now
|
||||
? _value.now
|
||||
: now // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
hidden: freezed == hidden
|
||||
? _value.hidden
|
||||
: hidden // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
icon: null == icon
|
||||
? _value.icon
|
||||
: icon // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
name: null == name
|
||||
? _value.name
|
||||
: name // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$GroupImplCopyWith<$Res> implements $GroupCopyWith<$Res> {
|
||||
factory _$$GroupImplCopyWith(
|
||||
_$GroupImpl value, $Res Function(_$GroupImpl) then) =
|
||||
__$$GroupImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{GroupType type,
|
||||
List<Proxy> all,
|
||||
String? now,
|
||||
bool? hidden,
|
||||
String icon,
|
||||
String name});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$GroupImplCopyWithImpl<$Res>
|
||||
extends _$GroupCopyWithImpl<$Res, _$GroupImpl>
|
||||
implements _$$GroupImplCopyWith<$Res> {
|
||||
__$$GroupImplCopyWithImpl(
|
||||
_$GroupImpl _value, $Res Function(_$GroupImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? type = null,
|
||||
Object? all = null,
|
||||
Object? now = freezed,
|
||||
Object? hidden = freezed,
|
||||
Object? icon = null,
|
||||
Object? name = null,
|
||||
}) {
|
||||
return _then(_$GroupImpl(
|
||||
type: null == type
|
||||
? _value.type
|
||||
: type // ignore: cast_nullable_to_non_nullable
|
||||
as GroupType,
|
||||
all: null == all
|
||||
? _value._all
|
||||
: all // ignore: cast_nullable_to_non_nullable
|
||||
as List<Proxy>,
|
||||
now: freezed == now
|
||||
? _value.now
|
||||
: now // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
hidden: freezed == hidden
|
||||
? _value.hidden
|
||||
: hidden // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
icon: null == icon
|
||||
? _value.icon
|
||||
: icon // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
name: null == name
|
||||
? _value.name
|
||||
: name // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$GroupImpl implements _Group {
|
||||
const _$GroupImpl(
|
||||
{required this.type,
|
||||
final List<Proxy> all = const [],
|
||||
this.now,
|
||||
this.hidden,
|
||||
this.icon = "",
|
||||
required this.name})
|
||||
: _all = all;
|
||||
|
||||
factory _$GroupImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$GroupImplFromJson(json);
|
||||
|
||||
@override
|
||||
final GroupType type;
|
||||
final List<Proxy> _all;
|
||||
@override
|
||||
@JsonKey()
|
||||
List<Proxy> get all {
|
||||
if (_all is EqualUnmodifiableListView) return _all;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_all);
|
||||
}
|
||||
|
||||
@override
|
||||
final String? now;
|
||||
@override
|
||||
final bool? hidden;
|
||||
@override
|
||||
@JsonKey()
|
||||
final String icon;
|
||||
@override
|
||||
final String name;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'Group(type: $type, all: $all, now: $now, hidden: $hidden, icon: $icon, name: $name)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$GroupImpl &&
|
||||
(identical(other.type, type) || other.type == type) &&
|
||||
const DeepCollectionEquality().equals(other._all, _all) &&
|
||||
(identical(other.now, now) || other.now == now) &&
|
||||
(identical(other.hidden, hidden) || other.hidden == hidden) &&
|
||||
(identical(other.icon, icon) || other.icon == icon) &&
|
||||
(identical(other.name, name) || other.name == name));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, type,
|
||||
const DeepCollectionEquality().hash(_all), now, hidden, icon, name);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$GroupImplCopyWith<_$GroupImpl> get copyWith =>
|
||||
__$$GroupImplCopyWithImpl<_$GroupImpl>(this, _$identity);
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
return _$$GroupImplToJson(
|
||||
this,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _Group implements Group {
|
||||
const factory _Group(
|
||||
{required final GroupType type,
|
||||
final List<Proxy> all,
|
||||
final String? now,
|
||||
final bool? hidden,
|
||||
final String icon,
|
||||
required final String name}) = _$GroupImpl;
|
||||
|
||||
factory _Group.fromJson(Map<String, dynamic> json) = _$GroupImpl.fromJson;
|
||||
|
||||
@override
|
||||
GroupType get type;
|
||||
@override
|
||||
List<Proxy> get all;
|
||||
@override
|
||||
String? get now;
|
||||
@override
|
||||
bool? get hidden;
|
||||
@override
|
||||
String get icon;
|
||||
@override
|
||||
String get name;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$GroupImplCopyWith<_$GroupImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
Proxy _$ProxyFromJson(Map<String, dynamic> json) {
|
||||
return _Proxy.fromJson(json);
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$Proxy {
|
||||
String get name => throw _privateConstructorUsedError;
|
||||
String get type => throw _privateConstructorUsedError;
|
||||
String? get now => throw _privateConstructorUsedError;
|
||||
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
$ProxyCopyWith<Proxy> get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $ProxyCopyWith<$Res> {
|
||||
factory $ProxyCopyWith(Proxy value, $Res Function(Proxy) then) =
|
||||
_$ProxyCopyWithImpl<$Res, Proxy>;
|
||||
@useResult
|
||||
$Res call({String name, String type, String? now});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$ProxyCopyWithImpl<$Res, $Val extends Proxy>
|
||||
implements $ProxyCopyWith<$Res> {
|
||||
_$ProxyCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? name = null,
|
||||
Object? type = null,
|
||||
Object? now = freezed,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
name: null == name
|
||||
? _value.name
|
||||
: name // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
type: null == type
|
||||
? _value.type
|
||||
: type // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
now: freezed == now
|
||||
? _value.now
|
||||
: now // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$ProxyImplCopyWith<$Res> implements $ProxyCopyWith<$Res> {
|
||||
factory _$$ProxyImplCopyWith(
|
||||
_$ProxyImpl value, $Res Function(_$ProxyImpl) then) =
|
||||
__$$ProxyImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({String name, String type, String? now});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$ProxyImplCopyWithImpl<$Res>
|
||||
extends _$ProxyCopyWithImpl<$Res, _$ProxyImpl>
|
||||
implements _$$ProxyImplCopyWith<$Res> {
|
||||
__$$ProxyImplCopyWithImpl(
|
||||
_$ProxyImpl _value, $Res Function(_$ProxyImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? name = null,
|
||||
Object? type = null,
|
||||
Object? now = freezed,
|
||||
}) {
|
||||
return _then(_$ProxyImpl(
|
||||
name: null == name
|
||||
? _value.name
|
||||
: name // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
type: null == type
|
||||
? _value.type
|
||||
: type // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
now: freezed == now
|
||||
? _value.now
|
||||
: now // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$ProxyImpl implements _Proxy {
|
||||
const _$ProxyImpl({required this.name, required this.type, this.now});
|
||||
|
||||
factory _$ProxyImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$ProxyImplFromJson(json);
|
||||
|
||||
@override
|
||||
final String name;
|
||||
@override
|
||||
final String type;
|
||||
@override
|
||||
final String? now;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'Proxy(name: $name, type: $type, now: $now)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$ProxyImpl &&
|
||||
(identical(other.name, name) || other.name == name) &&
|
||||
(identical(other.type, type) || other.type == type) &&
|
||||
(identical(other.now, now) || other.now == now));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, name, type, now);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$ProxyImplCopyWith<_$ProxyImpl> get copyWith =>
|
||||
__$$ProxyImplCopyWithImpl<_$ProxyImpl>(this, _$identity);
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
return _$$ProxyImplToJson(
|
||||
this,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _Proxy implements Proxy {
|
||||
const factory _Proxy(
|
||||
{required final String name,
|
||||
required final String type,
|
||||
final String? now}) = _$ProxyImpl;
|
||||
|
||||
factory _Proxy.fromJson(Map<String, dynamic> json) = _$ProxyImpl.fromJson;
|
||||
|
||||
@override
|
||||
String get name;
|
||||
@override
|
||||
String get type;
|
||||
@override
|
||||
String? get now;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$ProxyImplCopyWith<_$ProxyImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@@ -1,50 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of '../proxy.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
_$GroupImpl _$$GroupImplFromJson(Map<String, dynamic> json) => _$GroupImpl(
|
||||
type: $enumDecode(_$GroupTypeEnumMap, json['type']),
|
||||
all: (json['all'] as List<dynamic>?)
|
||||
?.map((e) => Proxy.fromJson(e as Map<String, dynamic>))
|
||||
.toList() ??
|
||||
const [],
|
||||
now: json['now'] as String?,
|
||||
hidden: json['hidden'] as bool?,
|
||||
icon: json['icon'] as String? ?? "",
|
||||
name: json['name'] as String,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$GroupImplToJson(_$GroupImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'type': _$GroupTypeEnumMap[instance.type]!,
|
||||
'all': instance.all,
|
||||
'now': instance.now,
|
||||
'hidden': instance.hidden,
|
||||
'icon': instance.icon,
|
||||
'name': instance.name,
|
||||
};
|
||||
|
||||
const _$GroupTypeEnumMap = {
|
||||
GroupType.Selector: 'Selector',
|
||||
GroupType.URLTest: 'URLTest',
|
||||
GroupType.Fallback: 'Fallback',
|
||||
GroupType.LoadBalance: 'LoadBalance',
|
||||
GroupType.Relay: 'Relay',
|
||||
};
|
||||
|
||||
_$ProxyImpl _$$ProxyImplFromJson(Map<String, dynamic> json) => _$ProxyImpl(
|
||||
name: json['name'] as String,
|
||||
type: json['type'] as String,
|
||||
now: json['now'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$ProxyImplToJson(_$ProxyImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'name': instance.name,
|
||||
'type': instance.type,
|
||||
'now': instance.now,
|
||||
};
|
||||
@@ -957,25 +957,24 @@ abstract class _ApplicationSelectorState implements ApplicationSelectorState {
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$TrayContainerSelectorState {
|
||||
mixin _$TrayState {
|
||||
Mode get mode => throw _privateConstructorUsedError;
|
||||
bool get autoLaunch => throw _privateConstructorUsedError;
|
||||
bool get systemProxy => throw _privateConstructorUsedError;
|
||||
bool get tunEnable => throw _privateConstructorUsedError;
|
||||
bool get isStart => throw _privateConstructorUsedError;
|
||||
String? get locale => throw _privateConstructorUsedError;
|
||||
Brightness? get brightness => throw _privateConstructorUsedError;
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
$TrayContainerSelectorStateCopyWith<TrayContainerSelectorState>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
$TrayStateCopyWith<TrayState> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $TrayContainerSelectorStateCopyWith<$Res> {
|
||||
factory $TrayContainerSelectorStateCopyWith(TrayContainerSelectorState value,
|
||||
$Res Function(TrayContainerSelectorState) then) =
|
||||
_$TrayContainerSelectorStateCopyWithImpl<$Res,
|
||||
TrayContainerSelectorState>;
|
||||
abstract class $TrayStateCopyWith<$Res> {
|
||||
factory $TrayStateCopyWith(TrayState value, $Res Function(TrayState) then) =
|
||||
_$TrayStateCopyWithImpl<$Res, TrayState>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{Mode mode,
|
||||
@@ -983,14 +982,14 @@ abstract class $TrayContainerSelectorStateCopyWith<$Res> {
|
||||
bool systemProxy,
|
||||
bool tunEnable,
|
||||
bool isStart,
|
||||
String? locale});
|
||||
String? locale,
|
||||
Brightness? brightness});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$TrayContainerSelectorStateCopyWithImpl<$Res,
|
||||
$Val extends TrayContainerSelectorState>
|
||||
implements $TrayContainerSelectorStateCopyWith<$Res> {
|
||||
_$TrayContainerSelectorStateCopyWithImpl(this._value, this._then);
|
||||
class _$TrayStateCopyWithImpl<$Res, $Val extends TrayState>
|
||||
implements $TrayStateCopyWith<$Res> {
|
||||
_$TrayStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
@@ -1006,6 +1005,7 @@ class _$TrayContainerSelectorStateCopyWithImpl<$Res,
|
||||
Object? tunEnable = null,
|
||||
Object? isStart = null,
|
||||
Object? locale = freezed,
|
||||
Object? brightness = freezed,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
mode: null == mode
|
||||
@@ -1032,17 +1032,20 @@ class _$TrayContainerSelectorStateCopyWithImpl<$Res,
|
||||
? _value.locale
|
||||
: locale // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
brightness: freezed == brightness
|
||||
? _value.brightness
|
||||
: brightness // ignore: cast_nullable_to_non_nullable
|
||||
as Brightness?,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$TrayContainerSelectorStateImplCopyWith<$Res>
|
||||
implements $TrayContainerSelectorStateCopyWith<$Res> {
|
||||
factory _$$TrayContainerSelectorStateImplCopyWith(
|
||||
_$TrayContainerSelectorStateImpl value,
|
||||
$Res Function(_$TrayContainerSelectorStateImpl) then) =
|
||||
__$$TrayContainerSelectorStateImplCopyWithImpl<$Res>;
|
||||
abstract class _$$TrayStateImplCopyWith<$Res>
|
||||
implements $TrayStateCopyWith<$Res> {
|
||||
factory _$$TrayStateImplCopyWith(
|
||||
_$TrayStateImpl value, $Res Function(_$TrayStateImpl) then) =
|
||||
__$$TrayStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
@@ -1051,17 +1054,16 @@ abstract class _$$TrayContainerSelectorStateImplCopyWith<$Res>
|
||||
bool systemProxy,
|
||||
bool tunEnable,
|
||||
bool isStart,
|
||||
String? locale});
|
||||
String? locale,
|
||||
Brightness? brightness});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$TrayContainerSelectorStateImplCopyWithImpl<$Res>
|
||||
extends _$TrayContainerSelectorStateCopyWithImpl<$Res,
|
||||
_$TrayContainerSelectorStateImpl>
|
||||
implements _$$TrayContainerSelectorStateImplCopyWith<$Res> {
|
||||
__$$TrayContainerSelectorStateImplCopyWithImpl(
|
||||
_$TrayContainerSelectorStateImpl _value,
|
||||
$Res Function(_$TrayContainerSelectorStateImpl) _then)
|
||||
class __$$TrayStateImplCopyWithImpl<$Res>
|
||||
extends _$TrayStateCopyWithImpl<$Res, _$TrayStateImpl>
|
||||
implements _$$TrayStateImplCopyWith<$Res> {
|
||||
__$$TrayStateImplCopyWithImpl(
|
||||
_$TrayStateImpl _value, $Res Function(_$TrayStateImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@@ -1073,8 +1075,9 @@ class __$$TrayContainerSelectorStateImplCopyWithImpl<$Res>
|
||||
Object? tunEnable = null,
|
||||
Object? isStart = null,
|
||||
Object? locale = freezed,
|
||||
Object? brightness = freezed,
|
||||
}) {
|
||||
return _then(_$TrayContainerSelectorStateImpl(
|
||||
return _then(_$TrayStateImpl(
|
||||
mode: null == mode
|
||||
? _value.mode
|
||||
: mode // ignore: cast_nullable_to_non_nullable
|
||||
@@ -1099,20 +1102,25 @@ class __$$TrayContainerSelectorStateImplCopyWithImpl<$Res>
|
||||
? _value.locale
|
||||
: locale // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
brightness: freezed == brightness
|
||||
? _value.brightness
|
||||
: brightness // ignore: cast_nullable_to_non_nullable
|
||||
as Brightness?,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$TrayContainerSelectorStateImpl implements _TrayContainerSelectorState {
|
||||
const _$TrayContainerSelectorStateImpl(
|
||||
class _$TrayStateImpl implements _TrayState {
|
||||
const _$TrayStateImpl(
|
||||
{required this.mode,
|
||||
required this.autoLaunch,
|
||||
required this.systemProxy,
|
||||
required this.tunEnable,
|
||||
required this.isStart,
|
||||
required this.locale});
|
||||
required this.locale,
|
||||
required this.brightness});
|
||||
|
||||
@override
|
||||
final Mode mode;
|
||||
@@ -1126,17 +1134,19 @@ class _$TrayContainerSelectorStateImpl implements _TrayContainerSelectorState {
|
||||
final bool isStart;
|
||||
@override
|
||||
final String? locale;
|
||||
@override
|
||||
final Brightness? brightness;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'TrayContainerSelectorState(mode: $mode, autoLaunch: $autoLaunch, systemProxy: $systemProxy, tunEnable: $tunEnable, isStart: $isStart, locale: $locale)';
|
||||
return 'TrayState(mode: $mode, autoLaunch: $autoLaunch, systemProxy: $systemProxy, tunEnable: $tunEnable, isStart: $isStart, locale: $locale, brightness: $brightness)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$TrayContainerSelectorStateImpl &&
|
||||
other is _$TrayStateImpl &&
|
||||
(identical(other.mode, mode) || other.mode == mode) &&
|
||||
(identical(other.autoLaunch, autoLaunch) ||
|
||||
other.autoLaunch == autoLaunch) &&
|
||||
@@ -1145,30 +1155,31 @@ class _$TrayContainerSelectorStateImpl implements _TrayContainerSelectorState {
|
||||
(identical(other.tunEnable, tunEnable) ||
|
||||
other.tunEnable == tunEnable) &&
|
||||
(identical(other.isStart, isStart) || other.isStart == isStart) &&
|
||||
(identical(other.locale, locale) || other.locale == locale));
|
||||
(identical(other.locale, locale) || other.locale == locale) &&
|
||||
(identical(other.brightness, brightness) ||
|
||||
other.brightness == brightness));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType, mode, autoLaunch, systemProxy, tunEnable, isStart, locale);
|
||||
int get hashCode => Object.hash(runtimeType, mode, autoLaunch, systemProxy,
|
||||
tunEnable, isStart, locale, brightness);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$TrayContainerSelectorStateImplCopyWith<_$TrayContainerSelectorStateImpl>
|
||||
get copyWith => __$$TrayContainerSelectorStateImplCopyWithImpl<
|
||||
_$TrayContainerSelectorStateImpl>(this, _$identity);
|
||||
_$$TrayStateImplCopyWith<_$TrayStateImpl> get copyWith =>
|
||||
__$$TrayStateImplCopyWithImpl<_$TrayStateImpl>(this, _$identity);
|
||||
}
|
||||
|
||||
abstract class _TrayContainerSelectorState
|
||||
implements TrayContainerSelectorState {
|
||||
const factory _TrayContainerSelectorState(
|
||||
abstract class _TrayState implements TrayState {
|
||||
const factory _TrayState(
|
||||
{required final Mode mode,
|
||||
required final bool autoLaunch,
|
||||
required final bool systemProxy,
|
||||
required final bool tunEnable,
|
||||
required final bool isStart,
|
||||
required final String? locale}) = _$TrayContainerSelectorStateImpl;
|
||||
required final String? locale,
|
||||
required final Brightness? brightness}) = _$TrayStateImpl;
|
||||
|
||||
@override
|
||||
Mode get mode;
|
||||
@@ -1183,9 +1194,11 @@ abstract class _TrayContainerSelectorState
|
||||
@override
|
||||
String? get locale;
|
||||
@override
|
||||
Brightness? get brightness;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$TrayContainerSelectorStateImplCopyWith<_$TrayContainerSelectorStateImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
_$$TrayStateImplCopyWith<_$TrayStateImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -1332,7 +1345,7 @@ abstract class _UpdateNavigationsSelector implements UpdateNavigationsSelector {
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$HomeSelectorState {
|
||||
mixin _$HomeState {
|
||||
String get currentLabel => throw _privateConstructorUsedError;
|
||||
List<NavigationItem> get navigationItems =>
|
||||
throw _privateConstructorUsedError;
|
||||
@@ -1340,15 +1353,14 @@ mixin _$HomeSelectorState {
|
||||
String? get locale => throw _privateConstructorUsedError;
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
$HomeSelectorStateCopyWith<HomeSelectorState> get copyWith =>
|
||||
$HomeStateCopyWith<HomeState> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $HomeSelectorStateCopyWith<$Res> {
|
||||
factory $HomeSelectorStateCopyWith(
|
||||
HomeSelectorState value, $Res Function(HomeSelectorState) then) =
|
||||
_$HomeSelectorStateCopyWithImpl<$Res, HomeSelectorState>;
|
||||
abstract class $HomeStateCopyWith<$Res> {
|
||||
factory $HomeStateCopyWith(HomeState value, $Res Function(HomeState) then) =
|
||||
_$HomeStateCopyWithImpl<$Res, HomeState>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{String currentLabel,
|
||||
@@ -1358,9 +1370,9 @@ abstract class $HomeSelectorStateCopyWith<$Res> {
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$HomeSelectorStateCopyWithImpl<$Res, $Val extends HomeSelectorState>
|
||||
implements $HomeSelectorStateCopyWith<$Res> {
|
||||
_$HomeSelectorStateCopyWithImpl(this._value, this._then);
|
||||
class _$HomeStateCopyWithImpl<$Res, $Val extends HomeState>
|
||||
implements $HomeStateCopyWith<$Res> {
|
||||
_$HomeStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
@@ -1397,11 +1409,11 @@ class _$HomeSelectorStateCopyWithImpl<$Res, $Val extends HomeSelectorState>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$HomeSelectorStateImplCopyWith<$Res>
|
||||
implements $HomeSelectorStateCopyWith<$Res> {
|
||||
factory _$$HomeSelectorStateImplCopyWith(_$HomeSelectorStateImpl value,
|
||||
$Res Function(_$HomeSelectorStateImpl) then) =
|
||||
__$$HomeSelectorStateImplCopyWithImpl<$Res>;
|
||||
abstract class _$$HomeStateImplCopyWith<$Res>
|
||||
implements $HomeStateCopyWith<$Res> {
|
||||
factory _$$HomeStateImplCopyWith(
|
||||
_$HomeStateImpl value, $Res Function(_$HomeStateImpl) then) =
|
||||
__$$HomeStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
@@ -1412,11 +1424,11 @@ abstract class _$$HomeSelectorStateImplCopyWith<$Res>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$HomeSelectorStateImplCopyWithImpl<$Res>
|
||||
extends _$HomeSelectorStateCopyWithImpl<$Res, _$HomeSelectorStateImpl>
|
||||
implements _$$HomeSelectorStateImplCopyWith<$Res> {
|
||||
__$$HomeSelectorStateImplCopyWithImpl(_$HomeSelectorStateImpl _value,
|
||||
$Res Function(_$HomeSelectorStateImpl) _then)
|
||||
class __$$HomeStateImplCopyWithImpl<$Res>
|
||||
extends _$HomeStateCopyWithImpl<$Res, _$HomeStateImpl>
|
||||
implements _$$HomeStateImplCopyWith<$Res> {
|
||||
__$$HomeStateImplCopyWithImpl(
|
||||
_$HomeStateImpl _value, $Res Function(_$HomeStateImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@@ -1427,7 +1439,7 @@ class __$$HomeSelectorStateImplCopyWithImpl<$Res>
|
||||
Object? viewMode = null,
|
||||
Object? locale = freezed,
|
||||
}) {
|
||||
return _then(_$HomeSelectorStateImpl(
|
||||
return _then(_$HomeStateImpl(
|
||||
currentLabel: null == currentLabel
|
||||
? _value.currentLabel
|
||||
: currentLabel // ignore: cast_nullable_to_non_nullable
|
||||
@@ -1450,8 +1462,8 @@ class __$$HomeSelectorStateImplCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$HomeSelectorStateImpl implements _HomeSelectorState {
|
||||
const _$HomeSelectorStateImpl(
|
||||
class _$HomeStateImpl implements _HomeState {
|
||||
const _$HomeStateImpl(
|
||||
{required this.currentLabel,
|
||||
required final List<NavigationItem> navigationItems,
|
||||
required this.viewMode,
|
||||
@@ -1475,14 +1487,14 @@ class _$HomeSelectorStateImpl implements _HomeSelectorState {
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'HomeSelectorState(currentLabel: $currentLabel, navigationItems: $navigationItems, viewMode: $viewMode, locale: $locale)';
|
||||
return 'HomeState(currentLabel: $currentLabel, navigationItems: $navigationItems, viewMode: $viewMode, locale: $locale)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$HomeSelectorStateImpl &&
|
||||
other is _$HomeStateImpl &&
|
||||
(identical(other.currentLabel, currentLabel) ||
|
||||
other.currentLabel == currentLabel) &&
|
||||
const DeepCollectionEquality()
|
||||
@@ -1499,17 +1511,16 @@ class _$HomeSelectorStateImpl implements _HomeSelectorState {
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$HomeSelectorStateImplCopyWith<_$HomeSelectorStateImpl> get copyWith =>
|
||||
__$$HomeSelectorStateImplCopyWithImpl<_$HomeSelectorStateImpl>(
|
||||
this, _$identity);
|
||||
_$$HomeStateImplCopyWith<_$HomeStateImpl> get copyWith =>
|
||||
__$$HomeStateImplCopyWithImpl<_$HomeStateImpl>(this, _$identity);
|
||||
}
|
||||
|
||||
abstract class _HomeSelectorState implements HomeSelectorState {
|
||||
const factory _HomeSelectorState(
|
||||
abstract class _HomeState implements HomeState {
|
||||
const factory _HomeState(
|
||||
{required final String currentLabel,
|
||||
required final List<NavigationItem> navigationItems,
|
||||
required final ViewMode viewMode,
|
||||
required final String? locale}) = _$HomeSelectorStateImpl;
|
||||
required final String? locale}) = _$HomeStateImpl;
|
||||
|
||||
@override
|
||||
String get currentLabel;
|
||||
@@ -1521,143 +1532,10 @@ abstract class _HomeSelectorState implements HomeSelectorState {
|
||||
String? get locale;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$HomeSelectorStateImplCopyWith<_$HomeSelectorStateImpl> get copyWith =>
|
||||
_$$HomeStateImplCopyWith<_$HomeStateImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$HomeBodySelectorState {
|
||||
List<NavigationItem> get navigationItems =>
|
||||
throw _privateConstructorUsedError;
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
$HomeBodySelectorStateCopyWith<HomeBodySelectorState> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $HomeBodySelectorStateCopyWith<$Res> {
|
||||
factory $HomeBodySelectorStateCopyWith(HomeBodySelectorState value,
|
||||
$Res Function(HomeBodySelectorState) then) =
|
||||
_$HomeBodySelectorStateCopyWithImpl<$Res, HomeBodySelectorState>;
|
||||
@useResult
|
||||
$Res call({List<NavigationItem> navigationItems});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$HomeBodySelectorStateCopyWithImpl<$Res,
|
||||
$Val extends HomeBodySelectorState>
|
||||
implements $HomeBodySelectorStateCopyWith<$Res> {
|
||||
_$HomeBodySelectorStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? 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 _$$HomeBodySelectorStateImplCopyWith<$Res>
|
||||
implements $HomeBodySelectorStateCopyWith<$Res> {
|
||||
factory _$$HomeBodySelectorStateImplCopyWith(
|
||||
_$HomeBodySelectorStateImpl value,
|
||||
$Res Function(_$HomeBodySelectorStateImpl) then) =
|
||||
__$$HomeBodySelectorStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({List<NavigationItem> navigationItems});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$HomeBodySelectorStateImplCopyWithImpl<$Res>
|
||||
extends _$HomeBodySelectorStateCopyWithImpl<$Res,
|
||||
_$HomeBodySelectorStateImpl>
|
||||
implements _$$HomeBodySelectorStateImplCopyWith<$Res> {
|
||||
__$$HomeBodySelectorStateImplCopyWithImpl(_$HomeBodySelectorStateImpl _value,
|
||||
$Res Function(_$HomeBodySelectorStateImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? navigationItems = null,
|
||||
}) {
|
||||
return _then(_$HomeBodySelectorStateImpl(
|
||||
navigationItems: null == navigationItems
|
||||
? _value._navigationItems
|
||||
: navigationItems // ignore: cast_nullable_to_non_nullable
|
||||
as List<NavigationItem>,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$HomeBodySelectorStateImpl implements _HomeBodySelectorState {
|
||||
const _$HomeBodySelectorStateImpl(
|
||||
{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 'HomeBodySelectorState(navigationItems: $navigationItems)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$HomeBodySelectorStateImpl &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other._navigationItems, _navigationItems));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType, const DeepCollectionEquality().hash(_navigationItems));
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$HomeBodySelectorStateImplCopyWith<_$HomeBodySelectorStateImpl>
|
||||
get copyWith => __$$HomeBodySelectorStateImplCopyWithImpl<
|
||||
_$HomeBodySelectorStateImpl>(this, _$identity);
|
||||
}
|
||||
|
||||
abstract class _HomeBodySelectorState implements HomeBodySelectorState {
|
||||
const factory _HomeBodySelectorState(
|
||||
{required final List<NavigationItem> navigationItems}) =
|
||||
_$HomeBodySelectorStateImpl;
|
||||
|
||||
@override
|
||||
List<NavigationItem> get navigationItems;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$HomeBodySelectorStateImplCopyWith<_$HomeBodySelectorStateImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$ProxiesCardSelectorState {
|
||||
bool get isSelected => throw _privateConstructorUsedError;
|
||||
@@ -4003,3 +3881,152 @@ abstract class _ClashConfigState implements ClashConfigState {
|
||||
_$$ClashConfigStateImplCopyWith<_$ClashConfigStateImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$ThemeState {
|
||||
String? get locale => throw _privateConstructorUsedError;
|
||||
ScaleProps get scaleProps => throw _privateConstructorUsedError;
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
$ThemeStateCopyWith<ThemeState> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $ThemeStateCopyWith<$Res> {
|
||||
factory $ThemeStateCopyWith(
|
||||
ThemeState value, $Res Function(ThemeState) then) =
|
||||
_$ThemeStateCopyWithImpl<$Res, ThemeState>;
|
||||
@useResult
|
||||
$Res call({String? locale, ScaleProps scaleProps});
|
||||
|
||||
$ScalePropsCopyWith<$Res> get scaleProps;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$ThemeStateCopyWithImpl<$Res, $Val extends ThemeState>
|
||||
implements $ThemeStateCopyWith<$Res> {
|
||||
_$ThemeStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? locale = freezed,
|
||||
Object? scaleProps = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
locale: freezed == locale
|
||||
? _value.locale
|
||||
: locale // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
scaleProps: null == scaleProps
|
||||
? _value.scaleProps
|
||||
: scaleProps // ignore: cast_nullable_to_non_nullable
|
||||
as ScaleProps,
|
||||
) as $Val);
|
||||
}
|
||||
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$ScalePropsCopyWith<$Res> get scaleProps {
|
||||
return $ScalePropsCopyWith<$Res>(_value.scaleProps, (value) {
|
||||
return _then(_value.copyWith(scaleProps: value) as $Val);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$ThemeStateImplCopyWith<$Res>
|
||||
implements $ThemeStateCopyWith<$Res> {
|
||||
factory _$$ThemeStateImplCopyWith(
|
||||
_$ThemeStateImpl value, $Res Function(_$ThemeStateImpl) then) =
|
||||
__$$ThemeStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({String? locale, ScaleProps scaleProps});
|
||||
|
||||
@override
|
||||
$ScalePropsCopyWith<$Res> get scaleProps;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$ThemeStateImplCopyWithImpl<$Res>
|
||||
extends _$ThemeStateCopyWithImpl<$Res, _$ThemeStateImpl>
|
||||
implements _$$ThemeStateImplCopyWith<$Res> {
|
||||
__$$ThemeStateImplCopyWithImpl(
|
||||
_$ThemeStateImpl _value, $Res Function(_$ThemeStateImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? locale = freezed,
|
||||
Object? scaleProps = null,
|
||||
}) {
|
||||
return _then(_$ThemeStateImpl(
|
||||
locale: freezed == locale
|
||||
? _value.locale
|
||||
: locale // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
scaleProps: null == scaleProps
|
||||
? _value.scaleProps
|
||||
: scaleProps // ignore: cast_nullable_to_non_nullable
|
||||
as ScaleProps,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$ThemeStateImpl implements _ThemeState {
|
||||
const _$ThemeStateImpl({required this.locale, required this.scaleProps});
|
||||
|
||||
@override
|
||||
final String? locale;
|
||||
@override
|
||||
final ScaleProps scaleProps;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'ThemeState(locale: $locale, scaleProps: $scaleProps)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$ThemeStateImpl &&
|
||||
(identical(other.locale, locale) || other.locale == locale) &&
|
||||
(identical(other.scaleProps, scaleProps) ||
|
||||
other.scaleProps == scaleProps));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, locale, scaleProps);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$ThemeStateImplCopyWith<_$ThemeStateImpl> get copyWith =>
|
||||
__$$ThemeStateImplCopyWithImpl<_$ThemeStateImpl>(this, _$identity);
|
||||
}
|
||||
|
||||
abstract class _ThemeState implements ThemeState {
|
||||
const factory _ThemeState(
|
||||
{required final String? locale,
|
||||
required final ScaleProps scaleProps}) = _$ThemeStateImpl;
|
||||
|
||||
@override
|
||||
String? get locale;
|
||||
@override
|
||||
ScaleProps get scaleProps;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$ThemeStateImplCopyWith<_$ThemeStateImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
@@ -1,171 +0,0 @@
|
||||
// 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 '../version.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.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
|
||||
|
||||
VersionInfo _$VersionInfoFromJson(Map<String, dynamic> json) {
|
||||
return _VersionInfo.fromJson(json);
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$VersionInfo {
|
||||
String get clashName => throw _privateConstructorUsedError;
|
||||
String get version => throw _privateConstructorUsedError;
|
||||
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
$VersionInfoCopyWith<VersionInfo> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $VersionInfoCopyWith<$Res> {
|
||||
factory $VersionInfoCopyWith(
|
||||
VersionInfo value, $Res Function(VersionInfo) then) =
|
||||
_$VersionInfoCopyWithImpl<$Res, VersionInfo>;
|
||||
@useResult
|
||||
$Res call({String clashName, String version});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$VersionInfoCopyWithImpl<$Res, $Val extends VersionInfo>
|
||||
implements $VersionInfoCopyWith<$Res> {
|
||||
_$VersionInfoCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? clashName = null,
|
||||
Object? version = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
clashName: null == clashName
|
||||
? _value.clashName
|
||||
: clashName // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
version: null == version
|
||||
? _value.version
|
||||
: version // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$VersionInfoImplCopyWith<$Res>
|
||||
implements $VersionInfoCopyWith<$Res> {
|
||||
factory _$$VersionInfoImplCopyWith(
|
||||
_$VersionInfoImpl value, $Res Function(_$VersionInfoImpl) then) =
|
||||
__$$VersionInfoImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({String clashName, String version});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$VersionInfoImplCopyWithImpl<$Res>
|
||||
extends _$VersionInfoCopyWithImpl<$Res, _$VersionInfoImpl>
|
||||
implements _$$VersionInfoImplCopyWith<$Res> {
|
||||
__$$VersionInfoImplCopyWithImpl(
|
||||
_$VersionInfoImpl _value, $Res Function(_$VersionInfoImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? clashName = null,
|
||||
Object? version = null,
|
||||
}) {
|
||||
return _then(_$VersionInfoImpl(
|
||||
clashName: null == clashName
|
||||
? _value.clashName
|
||||
: clashName // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
version: null == version
|
||||
? _value.version
|
||||
: version // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$VersionInfoImpl implements _VersionInfo {
|
||||
const _$VersionInfoImpl({this.clashName = "", this.version = ""});
|
||||
|
||||
factory _$VersionInfoImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$VersionInfoImplFromJson(json);
|
||||
|
||||
@override
|
||||
@JsonKey()
|
||||
final String clashName;
|
||||
@override
|
||||
@JsonKey()
|
||||
final String version;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'VersionInfo(clashName: $clashName, version: $version)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$VersionInfoImpl &&
|
||||
(identical(other.clashName, clashName) ||
|
||||
other.clashName == clashName) &&
|
||||
(identical(other.version, version) || other.version == version));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, clashName, version);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$VersionInfoImplCopyWith<_$VersionInfoImpl> get copyWith =>
|
||||
__$$VersionInfoImplCopyWithImpl<_$VersionInfoImpl>(this, _$identity);
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
return _$$VersionInfoImplToJson(
|
||||
this,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _VersionInfo implements VersionInfo {
|
||||
const factory _VersionInfo({final String clashName, final String version}) =
|
||||
_$VersionInfoImpl;
|
||||
|
||||
factory _VersionInfo.fromJson(Map<String, dynamic> json) =
|
||||
_$VersionInfoImpl.fromJson;
|
||||
|
||||
@override
|
||||
String get clashName;
|
||||
@override
|
||||
String get version;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$VersionInfoImplCopyWith<_$VersionInfoImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of '../version.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
_$VersionInfoImpl _$$VersionInfoImplFromJson(Map<String, dynamic> json) =>
|
||||
_$VersionInfoImpl(
|
||||
clashName: json['clashName'] as String? ?? "",
|
||||
version: json['version'] as String? ?? "",
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$VersionInfoImplToJson(_$VersionInfoImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'clashName': instance.clashName,
|
||||
'version': instance.version,
|
||||
};
|
||||
Reference in New Issue
Block a user