1753 lines
52 KiB
Dart
1753 lines
52 KiB
Dart
// 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 '../config.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');
|
|
|
|
AppSetting _$AppSettingFromJson(Map<String, dynamic> json) {
|
|
return _AppSetting.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$AppSetting {
|
|
String? get locale => throw _privateConstructorUsedError;
|
|
bool get onlyProxy => throw _privateConstructorUsedError;
|
|
bool get autoLaunch => throw _privateConstructorUsedError;
|
|
bool get adminAutoLaunch => throw _privateConstructorUsedError;
|
|
bool get silentLaunch => throw _privateConstructorUsedError;
|
|
bool get autoRun => throw _privateConstructorUsedError;
|
|
bool get openLogs => throw _privateConstructorUsedError;
|
|
bool get closeConnections => throw _privateConstructorUsedError;
|
|
String get testUrl => throw _privateConstructorUsedError;
|
|
bool get isAnimateToPage => throw _privateConstructorUsedError;
|
|
bool get autoCheckUpdate => throw _privateConstructorUsedError;
|
|
bool get showLabel => throw _privateConstructorUsedError;
|
|
bool get disclaimerAccepted => throw _privateConstructorUsedError;
|
|
bool get minimizeOnExit => throw _privateConstructorUsedError;
|
|
bool get hidden => throw _privateConstructorUsedError;
|
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$AppSettingCopyWith<AppSetting> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $AppSettingCopyWith<$Res> {
|
|
factory $AppSettingCopyWith(
|
|
AppSetting value, $Res Function(AppSetting) then) =
|
|
_$AppSettingCopyWithImpl<$Res, AppSetting>;
|
|
@useResult
|
|
$Res call(
|
|
{String? locale,
|
|
bool onlyProxy,
|
|
bool autoLaunch,
|
|
bool adminAutoLaunch,
|
|
bool silentLaunch,
|
|
bool autoRun,
|
|
bool openLogs,
|
|
bool closeConnections,
|
|
String testUrl,
|
|
bool isAnimateToPage,
|
|
bool autoCheckUpdate,
|
|
bool showLabel,
|
|
bool disclaimerAccepted,
|
|
bool minimizeOnExit,
|
|
bool hidden});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$AppSettingCopyWithImpl<$Res, $Val extends AppSetting>
|
|
implements $AppSettingCopyWith<$Res> {
|
|
_$AppSettingCopyWithImpl(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? onlyProxy = null,
|
|
Object? autoLaunch = null,
|
|
Object? adminAutoLaunch = null,
|
|
Object? silentLaunch = null,
|
|
Object? autoRun = null,
|
|
Object? openLogs = null,
|
|
Object? closeConnections = null,
|
|
Object? testUrl = null,
|
|
Object? isAnimateToPage = null,
|
|
Object? autoCheckUpdate = null,
|
|
Object? showLabel = null,
|
|
Object? disclaimerAccepted = null,
|
|
Object? minimizeOnExit = null,
|
|
Object? hidden = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
locale: freezed == locale
|
|
? _value.locale
|
|
: locale // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
onlyProxy: null == onlyProxy
|
|
? _value.onlyProxy
|
|
: onlyProxy // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
autoLaunch: null == autoLaunch
|
|
? _value.autoLaunch
|
|
: autoLaunch // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
adminAutoLaunch: null == adminAutoLaunch
|
|
? _value.adminAutoLaunch
|
|
: adminAutoLaunch // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
silentLaunch: null == silentLaunch
|
|
? _value.silentLaunch
|
|
: silentLaunch // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
autoRun: null == autoRun
|
|
? _value.autoRun
|
|
: autoRun // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
openLogs: null == openLogs
|
|
? _value.openLogs
|
|
: openLogs // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
closeConnections: null == closeConnections
|
|
? _value.closeConnections
|
|
: closeConnections // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
testUrl: null == testUrl
|
|
? _value.testUrl
|
|
: testUrl // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
isAnimateToPage: null == isAnimateToPage
|
|
? _value.isAnimateToPage
|
|
: isAnimateToPage // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
autoCheckUpdate: null == autoCheckUpdate
|
|
? _value.autoCheckUpdate
|
|
: autoCheckUpdate // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
showLabel: null == showLabel
|
|
? _value.showLabel
|
|
: showLabel // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
disclaimerAccepted: null == disclaimerAccepted
|
|
? _value.disclaimerAccepted
|
|
: disclaimerAccepted // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
minimizeOnExit: null == minimizeOnExit
|
|
? _value.minimizeOnExit
|
|
: minimizeOnExit // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
hidden: null == hidden
|
|
? _value.hidden
|
|
: hidden // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$AppSettingImplCopyWith<$Res>
|
|
implements $AppSettingCopyWith<$Res> {
|
|
factory _$$AppSettingImplCopyWith(
|
|
_$AppSettingImpl value, $Res Function(_$AppSettingImpl) then) =
|
|
__$$AppSettingImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{String? locale,
|
|
bool onlyProxy,
|
|
bool autoLaunch,
|
|
bool adminAutoLaunch,
|
|
bool silentLaunch,
|
|
bool autoRun,
|
|
bool openLogs,
|
|
bool closeConnections,
|
|
String testUrl,
|
|
bool isAnimateToPage,
|
|
bool autoCheckUpdate,
|
|
bool showLabel,
|
|
bool disclaimerAccepted,
|
|
bool minimizeOnExit,
|
|
bool hidden});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$AppSettingImplCopyWithImpl<$Res>
|
|
extends _$AppSettingCopyWithImpl<$Res, _$AppSettingImpl>
|
|
implements _$$AppSettingImplCopyWith<$Res> {
|
|
__$$AppSettingImplCopyWithImpl(
|
|
_$AppSettingImpl _value, $Res Function(_$AppSettingImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? locale = freezed,
|
|
Object? onlyProxy = null,
|
|
Object? autoLaunch = null,
|
|
Object? adminAutoLaunch = null,
|
|
Object? silentLaunch = null,
|
|
Object? autoRun = null,
|
|
Object? openLogs = null,
|
|
Object? closeConnections = null,
|
|
Object? testUrl = null,
|
|
Object? isAnimateToPage = null,
|
|
Object? autoCheckUpdate = null,
|
|
Object? showLabel = null,
|
|
Object? disclaimerAccepted = null,
|
|
Object? minimizeOnExit = null,
|
|
Object? hidden = null,
|
|
}) {
|
|
return _then(_$AppSettingImpl(
|
|
locale: freezed == locale
|
|
? _value.locale
|
|
: locale // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
onlyProxy: null == onlyProxy
|
|
? _value.onlyProxy
|
|
: onlyProxy // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
autoLaunch: null == autoLaunch
|
|
? _value.autoLaunch
|
|
: autoLaunch // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
adminAutoLaunch: null == adminAutoLaunch
|
|
? _value.adminAutoLaunch
|
|
: adminAutoLaunch // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
silentLaunch: null == silentLaunch
|
|
? _value.silentLaunch
|
|
: silentLaunch // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
autoRun: null == autoRun
|
|
? _value.autoRun
|
|
: autoRun // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
openLogs: null == openLogs
|
|
? _value.openLogs
|
|
: openLogs // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
closeConnections: null == closeConnections
|
|
? _value.closeConnections
|
|
: closeConnections // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
testUrl: null == testUrl
|
|
? _value.testUrl
|
|
: testUrl // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
isAnimateToPage: null == isAnimateToPage
|
|
? _value.isAnimateToPage
|
|
: isAnimateToPage // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
autoCheckUpdate: null == autoCheckUpdate
|
|
? _value.autoCheckUpdate
|
|
: autoCheckUpdate // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
showLabel: null == showLabel
|
|
? _value.showLabel
|
|
: showLabel // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
disclaimerAccepted: null == disclaimerAccepted
|
|
? _value.disclaimerAccepted
|
|
: disclaimerAccepted // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
minimizeOnExit: null == minimizeOnExit
|
|
? _value.minimizeOnExit
|
|
: minimizeOnExit // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
hidden: null == hidden
|
|
? _value.hidden
|
|
: hidden // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$AppSettingImpl implements _AppSetting {
|
|
const _$AppSettingImpl(
|
|
{this.locale,
|
|
this.onlyProxy = false,
|
|
this.autoLaunch = false,
|
|
this.adminAutoLaunch = false,
|
|
this.silentLaunch = false,
|
|
this.autoRun = false,
|
|
this.openLogs = false,
|
|
this.closeConnections = true,
|
|
this.testUrl = defaultTestUrl,
|
|
this.isAnimateToPage = true,
|
|
this.autoCheckUpdate = true,
|
|
this.showLabel = false,
|
|
this.disclaimerAccepted = false,
|
|
this.minimizeOnExit = true,
|
|
this.hidden = false});
|
|
|
|
factory _$AppSettingImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$AppSettingImplFromJson(json);
|
|
|
|
@override
|
|
final String? locale;
|
|
@override
|
|
@JsonKey()
|
|
final bool onlyProxy;
|
|
@override
|
|
@JsonKey()
|
|
final bool autoLaunch;
|
|
@override
|
|
@JsonKey()
|
|
final bool adminAutoLaunch;
|
|
@override
|
|
@JsonKey()
|
|
final bool silentLaunch;
|
|
@override
|
|
@JsonKey()
|
|
final bool autoRun;
|
|
@override
|
|
@JsonKey()
|
|
final bool openLogs;
|
|
@override
|
|
@JsonKey()
|
|
final bool closeConnections;
|
|
@override
|
|
@JsonKey()
|
|
final String testUrl;
|
|
@override
|
|
@JsonKey()
|
|
final bool isAnimateToPage;
|
|
@override
|
|
@JsonKey()
|
|
final bool autoCheckUpdate;
|
|
@override
|
|
@JsonKey()
|
|
final bool showLabel;
|
|
@override
|
|
@JsonKey()
|
|
final bool disclaimerAccepted;
|
|
@override
|
|
@JsonKey()
|
|
final bool minimizeOnExit;
|
|
@override
|
|
@JsonKey()
|
|
final bool hidden;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'AppSetting(locale: $locale, onlyProxy: $onlyProxy, autoLaunch: $autoLaunch, adminAutoLaunch: $adminAutoLaunch, silentLaunch: $silentLaunch, autoRun: $autoRun, openLogs: $openLogs, closeConnections: $closeConnections, testUrl: $testUrl, isAnimateToPage: $isAnimateToPage, autoCheckUpdate: $autoCheckUpdate, showLabel: $showLabel, disclaimerAccepted: $disclaimerAccepted, minimizeOnExit: $minimizeOnExit, hidden: $hidden)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$AppSettingImpl &&
|
|
(identical(other.locale, locale) || other.locale == locale) &&
|
|
(identical(other.onlyProxy, onlyProxy) ||
|
|
other.onlyProxy == onlyProxy) &&
|
|
(identical(other.autoLaunch, autoLaunch) ||
|
|
other.autoLaunch == autoLaunch) &&
|
|
(identical(other.adminAutoLaunch, adminAutoLaunch) ||
|
|
other.adminAutoLaunch == adminAutoLaunch) &&
|
|
(identical(other.silentLaunch, silentLaunch) ||
|
|
other.silentLaunch == silentLaunch) &&
|
|
(identical(other.autoRun, autoRun) || other.autoRun == autoRun) &&
|
|
(identical(other.openLogs, openLogs) ||
|
|
other.openLogs == openLogs) &&
|
|
(identical(other.closeConnections, closeConnections) ||
|
|
other.closeConnections == closeConnections) &&
|
|
(identical(other.testUrl, testUrl) || other.testUrl == testUrl) &&
|
|
(identical(other.isAnimateToPage, isAnimateToPage) ||
|
|
other.isAnimateToPage == isAnimateToPage) &&
|
|
(identical(other.autoCheckUpdate, autoCheckUpdate) ||
|
|
other.autoCheckUpdate == autoCheckUpdate) &&
|
|
(identical(other.showLabel, showLabel) ||
|
|
other.showLabel == showLabel) &&
|
|
(identical(other.disclaimerAccepted, disclaimerAccepted) ||
|
|
other.disclaimerAccepted == disclaimerAccepted) &&
|
|
(identical(other.minimizeOnExit, minimizeOnExit) ||
|
|
other.minimizeOnExit == minimizeOnExit) &&
|
|
(identical(other.hidden, hidden) || other.hidden == hidden));
|
|
}
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
locale,
|
|
onlyProxy,
|
|
autoLaunch,
|
|
adminAutoLaunch,
|
|
silentLaunch,
|
|
autoRun,
|
|
openLogs,
|
|
closeConnections,
|
|
testUrl,
|
|
isAnimateToPage,
|
|
autoCheckUpdate,
|
|
showLabel,
|
|
disclaimerAccepted,
|
|
minimizeOnExit,
|
|
hidden);
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$AppSettingImplCopyWith<_$AppSettingImpl> get copyWith =>
|
|
__$$AppSettingImplCopyWithImpl<_$AppSettingImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$AppSettingImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _AppSetting implements AppSetting {
|
|
const factory _AppSetting(
|
|
{final String? locale,
|
|
final bool onlyProxy,
|
|
final bool autoLaunch,
|
|
final bool adminAutoLaunch,
|
|
final bool silentLaunch,
|
|
final bool autoRun,
|
|
final bool openLogs,
|
|
final bool closeConnections,
|
|
final String testUrl,
|
|
final bool isAnimateToPage,
|
|
final bool autoCheckUpdate,
|
|
final bool showLabel,
|
|
final bool disclaimerAccepted,
|
|
final bool minimizeOnExit,
|
|
final bool hidden}) = _$AppSettingImpl;
|
|
|
|
factory _AppSetting.fromJson(Map<String, dynamic> json) =
|
|
_$AppSettingImpl.fromJson;
|
|
|
|
@override
|
|
String? get locale;
|
|
@override
|
|
bool get onlyProxy;
|
|
@override
|
|
bool get autoLaunch;
|
|
@override
|
|
bool get adminAutoLaunch;
|
|
@override
|
|
bool get silentLaunch;
|
|
@override
|
|
bool get autoRun;
|
|
@override
|
|
bool get openLogs;
|
|
@override
|
|
bool get closeConnections;
|
|
@override
|
|
String get testUrl;
|
|
@override
|
|
bool get isAnimateToPage;
|
|
@override
|
|
bool get autoCheckUpdate;
|
|
@override
|
|
bool get showLabel;
|
|
@override
|
|
bool get disclaimerAccepted;
|
|
@override
|
|
bool get minimizeOnExit;
|
|
@override
|
|
bool get hidden;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$$AppSettingImplCopyWith<_$AppSettingImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
AccessControl _$AccessControlFromJson(Map<String, dynamic> json) {
|
|
return _AccessControl.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$AccessControl {
|
|
AccessControlMode get mode => throw _privateConstructorUsedError;
|
|
List<String> get acceptList => throw _privateConstructorUsedError;
|
|
List<String> get rejectList => throw _privateConstructorUsedError;
|
|
AccessSortType get sort => throw _privateConstructorUsedError;
|
|
bool get isFilterSystemApp => throw _privateConstructorUsedError;
|
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$AccessControlCopyWith<AccessControl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $AccessControlCopyWith<$Res> {
|
|
factory $AccessControlCopyWith(
|
|
AccessControl value, $Res Function(AccessControl) then) =
|
|
_$AccessControlCopyWithImpl<$Res, AccessControl>;
|
|
@useResult
|
|
$Res call(
|
|
{AccessControlMode mode,
|
|
List<String> acceptList,
|
|
List<String> rejectList,
|
|
AccessSortType sort,
|
|
bool isFilterSystemApp});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$AccessControlCopyWithImpl<$Res, $Val extends AccessControl>
|
|
implements $AccessControlCopyWith<$Res> {
|
|
_$AccessControlCopyWithImpl(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? mode = null,
|
|
Object? acceptList = null,
|
|
Object? rejectList = null,
|
|
Object? sort = null,
|
|
Object? isFilterSystemApp = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
mode: null == mode
|
|
? _value.mode
|
|
: mode // ignore: cast_nullable_to_non_nullable
|
|
as AccessControlMode,
|
|
acceptList: null == acceptList
|
|
? _value.acceptList
|
|
: acceptList // ignore: cast_nullable_to_non_nullable
|
|
as List<String>,
|
|
rejectList: null == rejectList
|
|
? _value.rejectList
|
|
: rejectList // ignore: cast_nullable_to_non_nullable
|
|
as List<String>,
|
|
sort: null == sort
|
|
? _value.sort
|
|
: sort // ignore: cast_nullable_to_non_nullable
|
|
as AccessSortType,
|
|
isFilterSystemApp: null == isFilterSystemApp
|
|
? _value.isFilterSystemApp
|
|
: isFilterSystemApp // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$AccessControlImplCopyWith<$Res>
|
|
implements $AccessControlCopyWith<$Res> {
|
|
factory _$$AccessControlImplCopyWith(
|
|
_$AccessControlImpl value, $Res Function(_$AccessControlImpl) then) =
|
|
__$$AccessControlImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{AccessControlMode mode,
|
|
List<String> acceptList,
|
|
List<String> rejectList,
|
|
AccessSortType sort,
|
|
bool isFilterSystemApp});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$AccessControlImplCopyWithImpl<$Res>
|
|
extends _$AccessControlCopyWithImpl<$Res, _$AccessControlImpl>
|
|
implements _$$AccessControlImplCopyWith<$Res> {
|
|
__$$AccessControlImplCopyWithImpl(
|
|
_$AccessControlImpl _value, $Res Function(_$AccessControlImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? mode = null,
|
|
Object? acceptList = null,
|
|
Object? rejectList = null,
|
|
Object? sort = null,
|
|
Object? isFilterSystemApp = null,
|
|
}) {
|
|
return _then(_$AccessControlImpl(
|
|
mode: null == mode
|
|
? _value.mode
|
|
: mode // ignore: cast_nullable_to_non_nullable
|
|
as AccessControlMode,
|
|
acceptList: null == acceptList
|
|
? _value._acceptList
|
|
: acceptList // ignore: cast_nullable_to_non_nullable
|
|
as List<String>,
|
|
rejectList: null == rejectList
|
|
? _value._rejectList
|
|
: rejectList // ignore: cast_nullable_to_non_nullable
|
|
as List<String>,
|
|
sort: null == sort
|
|
? _value.sort
|
|
: sort // ignore: cast_nullable_to_non_nullable
|
|
as AccessSortType,
|
|
isFilterSystemApp: null == isFilterSystemApp
|
|
? _value.isFilterSystemApp
|
|
: isFilterSystemApp // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$AccessControlImpl implements _AccessControl {
|
|
const _$AccessControlImpl(
|
|
{this.mode = AccessControlMode.rejectSelected,
|
|
final List<String> acceptList = const [],
|
|
final List<String> rejectList = const [],
|
|
this.sort = AccessSortType.none,
|
|
this.isFilterSystemApp = true})
|
|
: _acceptList = acceptList,
|
|
_rejectList = rejectList;
|
|
|
|
factory _$AccessControlImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$AccessControlImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey()
|
|
final AccessControlMode mode;
|
|
final List<String> _acceptList;
|
|
@override
|
|
@JsonKey()
|
|
List<String> get acceptList {
|
|
if (_acceptList is EqualUnmodifiableListView) return _acceptList;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_acceptList);
|
|
}
|
|
|
|
final List<String> _rejectList;
|
|
@override
|
|
@JsonKey()
|
|
List<String> get rejectList {
|
|
if (_rejectList is EqualUnmodifiableListView) return _rejectList;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_rejectList);
|
|
}
|
|
|
|
@override
|
|
@JsonKey()
|
|
final AccessSortType sort;
|
|
@override
|
|
@JsonKey()
|
|
final bool isFilterSystemApp;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'AccessControl(mode: $mode, acceptList: $acceptList, rejectList: $rejectList, sort: $sort, isFilterSystemApp: $isFilterSystemApp)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$AccessControlImpl &&
|
|
(identical(other.mode, mode) || other.mode == mode) &&
|
|
const DeepCollectionEquality()
|
|
.equals(other._acceptList, _acceptList) &&
|
|
const DeepCollectionEquality()
|
|
.equals(other._rejectList, _rejectList) &&
|
|
(identical(other.sort, sort) || other.sort == sort) &&
|
|
(identical(other.isFilterSystemApp, isFilterSystemApp) ||
|
|
other.isFilterSystemApp == isFilterSystemApp));
|
|
}
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
mode,
|
|
const DeepCollectionEquality().hash(_acceptList),
|
|
const DeepCollectionEquality().hash(_rejectList),
|
|
sort,
|
|
isFilterSystemApp);
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$AccessControlImplCopyWith<_$AccessControlImpl> get copyWith =>
|
|
__$$AccessControlImplCopyWithImpl<_$AccessControlImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$AccessControlImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _AccessControl implements AccessControl {
|
|
const factory _AccessControl(
|
|
{final AccessControlMode mode,
|
|
final List<String> acceptList,
|
|
final List<String> rejectList,
|
|
final AccessSortType sort,
|
|
final bool isFilterSystemApp}) = _$AccessControlImpl;
|
|
|
|
factory _AccessControl.fromJson(Map<String, dynamic> json) =
|
|
_$AccessControlImpl.fromJson;
|
|
|
|
@override
|
|
AccessControlMode get mode;
|
|
@override
|
|
List<String> get acceptList;
|
|
@override
|
|
List<String> get rejectList;
|
|
@override
|
|
AccessSortType get sort;
|
|
@override
|
|
bool get isFilterSystemApp;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$$AccessControlImplCopyWith<_$AccessControlImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
WindowProps _$WindowPropsFromJson(Map<String, dynamic> json) {
|
|
return _WindowProps.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$WindowProps {
|
|
double get width => throw _privateConstructorUsedError;
|
|
double get height => throw _privateConstructorUsedError;
|
|
double? get top => throw _privateConstructorUsedError;
|
|
double? get left => throw _privateConstructorUsedError;
|
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$WindowPropsCopyWith<WindowProps> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $WindowPropsCopyWith<$Res> {
|
|
factory $WindowPropsCopyWith(
|
|
WindowProps value, $Res Function(WindowProps) then) =
|
|
_$WindowPropsCopyWithImpl<$Res, WindowProps>;
|
|
@useResult
|
|
$Res call({double width, double height, double? top, double? left});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$WindowPropsCopyWithImpl<$Res, $Val extends WindowProps>
|
|
implements $WindowPropsCopyWith<$Res> {
|
|
_$WindowPropsCopyWithImpl(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? width = null,
|
|
Object? height = null,
|
|
Object? top = freezed,
|
|
Object? left = freezed,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
width: null == width
|
|
? _value.width
|
|
: width // ignore: cast_nullable_to_non_nullable
|
|
as double,
|
|
height: null == height
|
|
? _value.height
|
|
: height // ignore: cast_nullable_to_non_nullable
|
|
as double,
|
|
top: freezed == top
|
|
? _value.top
|
|
: top // ignore: cast_nullable_to_non_nullable
|
|
as double?,
|
|
left: freezed == left
|
|
? _value.left
|
|
: left // ignore: cast_nullable_to_non_nullable
|
|
as double?,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$WindowPropsImplCopyWith<$Res>
|
|
implements $WindowPropsCopyWith<$Res> {
|
|
factory _$$WindowPropsImplCopyWith(
|
|
_$WindowPropsImpl value, $Res Function(_$WindowPropsImpl) then) =
|
|
__$$WindowPropsImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({double width, double height, double? top, double? left});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$WindowPropsImplCopyWithImpl<$Res>
|
|
extends _$WindowPropsCopyWithImpl<$Res, _$WindowPropsImpl>
|
|
implements _$$WindowPropsImplCopyWith<$Res> {
|
|
__$$WindowPropsImplCopyWithImpl(
|
|
_$WindowPropsImpl _value, $Res Function(_$WindowPropsImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? width = null,
|
|
Object? height = null,
|
|
Object? top = freezed,
|
|
Object? left = freezed,
|
|
}) {
|
|
return _then(_$WindowPropsImpl(
|
|
width: null == width
|
|
? _value.width
|
|
: width // ignore: cast_nullable_to_non_nullable
|
|
as double,
|
|
height: null == height
|
|
? _value.height
|
|
: height // ignore: cast_nullable_to_non_nullable
|
|
as double,
|
|
top: freezed == top
|
|
? _value.top
|
|
: top // ignore: cast_nullable_to_non_nullable
|
|
as double?,
|
|
left: freezed == left
|
|
? _value.left
|
|
: left // ignore: cast_nullable_to_non_nullable
|
|
as double?,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$WindowPropsImpl implements _WindowProps {
|
|
const _$WindowPropsImpl(
|
|
{this.width = 1000, this.height = 600, this.top, this.left});
|
|
|
|
factory _$WindowPropsImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$WindowPropsImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey()
|
|
final double width;
|
|
@override
|
|
@JsonKey()
|
|
final double height;
|
|
@override
|
|
final double? top;
|
|
@override
|
|
final double? left;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'WindowProps(width: $width, height: $height, top: $top, left: $left)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$WindowPropsImpl &&
|
|
(identical(other.width, width) || other.width == width) &&
|
|
(identical(other.height, height) || other.height == height) &&
|
|
(identical(other.top, top) || other.top == top) &&
|
|
(identical(other.left, left) || other.left == left));
|
|
}
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, width, height, top, left);
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$WindowPropsImplCopyWith<_$WindowPropsImpl> get copyWith =>
|
|
__$$WindowPropsImplCopyWithImpl<_$WindowPropsImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$WindowPropsImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _WindowProps implements WindowProps {
|
|
const factory _WindowProps(
|
|
{final double width,
|
|
final double height,
|
|
final double? top,
|
|
final double? left}) = _$WindowPropsImpl;
|
|
|
|
factory _WindowProps.fromJson(Map<String, dynamic> json) =
|
|
_$WindowPropsImpl.fromJson;
|
|
|
|
@override
|
|
double get width;
|
|
@override
|
|
double get height;
|
|
@override
|
|
double? get top;
|
|
@override
|
|
double? get left;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$$WindowPropsImplCopyWith<_$WindowPropsImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
VpnProps _$VpnPropsFromJson(Map<String, dynamic> json) {
|
|
return _VpnProps.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$VpnProps {
|
|
bool get enable => throw _privateConstructorUsedError;
|
|
bool get systemProxy => throw _privateConstructorUsedError;
|
|
bool get ipv6 => throw _privateConstructorUsedError;
|
|
bool get allowBypass => throw _privateConstructorUsedError;
|
|
List<String> get bypassDomain => throw _privateConstructorUsedError;
|
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$VpnPropsCopyWith<VpnProps> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $VpnPropsCopyWith<$Res> {
|
|
factory $VpnPropsCopyWith(VpnProps value, $Res Function(VpnProps) then) =
|
|
_$VpnPropsCopyWithImpl<$Res, VpnProps>;
|
|
@useResult
|
|
$Res call(
|
|
{bool enable,
|
|
bool systemProxy,
|
|
bool ipv6,
|
|
bool allowBypass,
|
|
List<String> bypassDomain});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$VpnPropsCopyWithImpl<$Res, $Val extends VpnProps>
|
|
implements $VpnPropsCopyWith<$Res> {
|
|
_$VpnPropsCopyWithImpl(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? enable = null,
|
|
Object? systemProxy = null,
|
|
Object? ipv6 = null,
|
|
Object? allowBypass = null,
|
|
Object? bypassDomain = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
enable: null == enable
|
|
? _value.enable
|
|
: enable // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
systemProxy: null == systemProxy
|
|
? _value.systemProxy
|
|
: systemProxy // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
ipv6: null == ipv6
|
|
? _value.ipv6
|
|
: ipv6 // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
allowBypass: null == allowBypass
|
|
? _value.allowBypass
|
|
: allowBypass // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
bypassDomain: null == bypassDomain
|
|
? _value.bypassDomain
|
|
: bypassDomain // ignore: cast_nullable_to_non_nullable
|
|
as List<String>,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$VpnPropsImplCopyWith<$Res>
|
|
implements $VpnPropsCopyWith<$Res> {
|
|
factory _$$VpnPropsImplCopyWith(
|
|
_$VpnPropsImpl value, $Res Function(_$VpnPropsImpl) then) =
|
|
__$$VpnPropsImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{bool enable,
|
|
bool systemProxy,
|
|
bool ipv6,
|
|
bool allowBypass,
|
|
List<String> bypassDomain});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$VpnPropsImplCopyWithImpl<$Res>
|
|
extends _$VpnPropsCopyWithImpl<$Res, _$VpnPropsImpl>
|
|
implements _$$VpnPropsImplCopyWith<$Res> {
|
|
__$$VpnPropsImplCopyWithImpl(
|
|
_$VpnPropsImpl _value, $Res Function(_$VpnPropsImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? enable = null,
|
|
Object? systemProxy = null,
|
|
Object? ipv6 = null,
|
|
Object? allowBypass = null,
|
|
Object? bypassDomain = null,
|
|
}) {
|
|
return _then(_$VpnPropsImpl(
|
|
enable: null == enable
|
|
? _value.enable
|
|
: enable // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
systemProxy: null == systemProxy
|
|
? _value.systemProxy
|
|
: systemProxy // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
ipv6: null == ipv6
|
|
? _value.ipv6
|
|
: ipv6 // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
allowBypass: null == allowBypass
|
|
? _value.allowBypass
|
|
: allowBypass // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
bypassDomain: null == bypassDomain
|
|
? _value._bypassDomain
|
|
: bypassDomain // ignore: cast_nullable_to_non_nullable
|
|
as List<String>,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$VpnPropsImpl implements _VpnProps {
|
|
const _$VpnPropsImpl(
|
|
{this.enable = true,
|
|
this.systemProxy = true,
|
|
this.ipv6 = false,
|
|
this.allowBypass = true,
|
|
final List<String> bypassDomain = defaultBypassDomain})
|
|
: _bypassDomain = bypassDomain;
|
|
|
|
factory _$VpnPropsImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$VpnPropsImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey()
|
|
final bool enable;
|
|
@override
|
|
@JsonKey()
|
|
final bool systemProxy;
|
|
@override
|
|
@JsonKey()
|
|
final bool ipv6;
|
|
@override
|
|
@JsonKey()
|
|
final bool allowBypass;
|
|
final List<String> _bypassDomain;
|
|
@override
|
|
@JsonKey()
|
|
List<String> get bypassDomain {
|
|
if (_bypassDomain is EqualUnmodifiableListView) return _bypassDomain;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_bypassDomain);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'VpnProps(enable: $enable, systemProxy: $systemProxy, ipv6: $ipv6, allowBypass: $allowBypass, bypassDomain: $bypassDomain)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$VpnPropsImpl &&
|
|
(identical(other.enable, enable) || other.enable == enable) &&
|
|
(identical(other.systemProxy, systemProxy) ||
|
|
other.systemProxy == systemProxy) &&
|
|
(identical(other.ipv6, ipv6) || other.ipv6 == ipv6) &&
|
|
(identical(other.allowBypass, allowBypass) ||
|
|
other.allowBypass == allowBypass) &&
|
|
const DeepCollectionEquality()
|
|
.equals(other._bypassDomain, _bypassDomain));
|
|
}
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, enable, systemProxy, ipv6,
|
|
allowBypass, const DeepCollectionEquality().hash(_bypassDomain));
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$VpnPropsImplCopyWith<_$VpnPropsImpl> get copyWith =>
|
|
__$$VpnPropsImplCopyWithImpl<_$VpnPropsImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$VpnPropsImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _VpnProps implements VpnProps {
|
|
const factory _VpnProps(
|
|
{final bool enable,
|
|
final bool systemProxy,
|
|
final bool ipv6,
|
|
final bool allowBypass,
|
|
final List<String> bypassDomain}) = _$VpnPropsImpl;
|
|
|
|
factory _VpnProps.fromJson(Map<String, dynamic> json) =
|
|
_$VpnPropsImpl.fromJson;
|
|
|
|
@override
|
|
bool get enable;
|
|
@override
|
|
bool get systemProxy;
|
|
@override
|
|
bool get ipv6;
|
|
@override
|
|
bool get allowBypass;
|
|
@override
|
|
List<String> get bypassDomain;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$$VpnPropsImplCopyWith<_$VpnPropsImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
DesktopProps _$DesktopPropsFromJson(Map<String, dynamic> json) {
|
|
return _DesktopProps.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$DesktopProps {
|
|
bool get systemProxy => throw _privateConstructorUsedError;
|
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$DesktopPropsCopyWith<DesktopProps> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $DesktopPropsCopyWith<$Res> {
|
|
factory $DesktopPropsCopyWith(
|
|
DesktopProps value, $Res Function(DesktopProps) then) =
|
|
_$DesktopPropsCopyWithImpl<$Res, DesktopProps>;
|
|
@useResult
|
|
$Res call({bool systemProxy});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$DesktopPropsCopyWithImpl<$Res, $Val extends DesktopProps>
|
|
implements $DesktopPropsCopyWith<$Res> {
|
|
_$DesktopPropsCopyWithImpl(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? systemProxy = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
systemProxy: null == systemProxy
|
|
? _value.systemProxy
|
|
: systemProxy // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$DesktopPropsImplCopyWith<$Res>
|
|
implements $DesktopPropsCopyWith<$Res> {
|
|
factory _$$DesktopPropsImplCopyWith(
|
|
_$DesktopPropsImpl value, $Res Function(_$DesktopPropsImpl) then) =
|
|
__$$DesktopPropsImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({bool systemProxy});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$DesktopPropsImplCopyWithImpl<$Res>
|
|
extends _$DesktopPropsCopyWithImpl<$Res, _$DesktopPropsImpl>
|
|
implements _$$DesktopPropsImplCopyWith<$Res> {
|
|
__$$DesktopPropsImplCopyWithImpl(
|
|
_$DesktopPropsImpl _value, $Res Function(_$DesktopPropsImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? systemProxy = null,
|
|
}) {
|
|
return _then(_$DesktopPropsImpl(
|
|
systemProxy: null == systemProxy
|
|
? _value.systemProxy
|
|
: systemProxy // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$DesktopPropsImpl implements _DesktopProps {
|
|
const _$DesktopPropsImpl({this.systemProxy = true});
|
|
|
|
factory _$DesktopPropsImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$DesktopPropsImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey()
|
|
final bool systemProxy;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'DesktopProps(systemProxy: $systemProxy)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$DesktopPropsImpl &&
|
|
(identical(other.systemProxy, systemProxy) ||
|
|
other.systemProxy == systemProxy));
|
|
}
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, systemProxy);
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$DesktopPropsImplCopyWith<_$DesktopPropsImpl> get copyWith =>
|
|
__$$DesktopPropsImplCopyWithImpl<_$DesktopPropsImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$DesktopPropsImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _DesktopProps implements DesktopProps {
|
|
const factory _DesktopProps({final bool systemProxy}) = _$DesktopPropsImpl;
|
|
|
|
factory _DesktopProps.fromJson(Map<String, dynamic> json) =
|
|
_$DesktopPropsImpl.fromJson;
|
|
|
|
@override
|
|
bool get systemProxy;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$$DesktopPropsImplCopyWith<_$DesktopPropsImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
ProxiesStyle _$ProxiesStyleFromJson(Map<String, dynamic> json) {
|
|
return _ProxiesStyle.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$ProxiesStyle {
|
|
ProxiesType get type => throw _privateConstructorUsedError;
|
|
ProxiesSortType get sortType => throw _privateConstructorUsedError;
|
|
ProxiesLayout get layout => throw _privateConstructorUsedError;
|
|
ProxiesIconStyle get iconStyle => throw _privateConstructorUsedError;
|
|
ProxyCardType get cardType => throw _privateConstructorUsedError;
|
|
Map<String, String> get iconMap => throw _privateConstructorUsedError;
|
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$ProxiesStyleCopyWith<ProxiesStyle> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $ProxiesStyleCopyWith<$Res> {
|
|
factory $ProxiesStyleCopyWith(
|
|
ProxiesStyle value, $Res Function(ProxiesStyle) then) =
|
|
_$ProxiesStyleCopyWithImpl<$Res, ProxiesStyle>;
|
|
@useResult
|
|
$Res call(
|
|
{ProxiesType type,
|
|
ProxiesSortType sortType,
|
|
ProxiesLayout layout,
|
|
ProxiesIconStyle iconStyle,
|
|
ProxyCardType cardType,
|
|
Map<String, String> iconMap});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$ProxiesStyleCopyWithImpl<$Res, $Val extends ProxiesStyle>
|
|
implements $ProxiesStyleCopyWith<$Res> {
|
|
_$ProxiesStyleCopyWithImpl(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? sortType = null,
|
|
Object? layout = null,
|
|
Object? iconStyle = null,
|
|
Object? cardType = null,
|
|
Object? iconMap = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
type: null == type
|
|
? _value.type
|
|
: type // ignore: cast_nullable_to_non_nullable
|
|
as ProxiesType,
|
|
sortType: null == sortType
|
|
? _value.sortType
|
|
: sortType // ignore: cast_nullable_to_non_nullable
|
|
as ProxiesSortType,
|
|
layout: null == layout
|
|
? _value.layout
|
|
: layout // ignore: cast_nullable_to_non_nullable
|
|
as ProxiesLayout,
|
|
iconStyle: null == iconStyle
|
|
? _value.iconStyle
|
|
: iconStyle // ignore: cast_nullable_to_non_nullable
|
|
as ProxiesIconStyle,
|
|
cardType: null == cardType
|
|
? _value.cardType
|
|
: cardType // ignore: cast_nullable_to_non_nullable
|
|
as ProxyCardType,
|
|
iconMap: null == iconMap
|
|
? _value.iconMap
|
|
: iconMap // ignore: cast_nullable_to_non_nullable
|
|
as Map<String, String>,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$ProxiesStyleImplCopyWith<$Res>
|
|
implements $ProxiesStyleCopyWith<$Res> {
|
|
factory _$$ProxiesStyleImplCopyWith(
|
|
_$ProxiesStyleImpl value, $Res Function(_$ProxiesStyleImpl) then) =
|
|
__$$ProxiesStyleImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{ProxiesType type,
|
|
ProxiesSortType sortType,
|
|
ProxiesLayout layout,
|
|
ProxiesIconStyle iconStyle,
|
|
ProxyCardType cardType,
|
|
Map<String, String> iconMap});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$ProxiesStyleImplCopyWithImpl<$Res>
|
|
extends _$ProxiesStyleCopyWithImpl<$Res, _$ProxiesStyleImpl>
|
|
implements _$$ProxiesStyleImplCopyWith<$Res> {
|
|
__$$ProxiesStyleImplCopyWithImpl(
|
|
_$ProxiesStyleImpl _value, $Res Function(_$ProxiesStyleImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? type = null,
|
|
Object? sortType = null,
|
|
Object? layout = null,
|
|
Object? iconStyle = null,
|
|
Object? cardType = null,
|
|
Object? iconMap = null,
|
|
}) {
|
|
return _then(_$ProxiesStyleImpl(
|
|
type: null == type
|
|
? _value.type
|
|
: type // ignore: cast_nullable_to_non_nullable
|
|
as ProxiesType,
|
|
sortType: null == sortType
|
|
? _value.sortType
|
|
: sortType // ignore: cast_nullable_to_non_nullable
|
|
as ProxiesSortType,
|
|
layout: null == layout
|
|
? _value.layout
|
|
: layout // ignore: cast_nullable_to_non_nullable
|
|
as ProxiesLayout,
|
|
iconStyle: null == iconStyle
|
|
? _value.iconStyle
|
|
: iconStyle // ignore: cast_nullable_to_non_nullable
|
|
as ProxiesIconStyle,
|
|
cardType: null == cardType
|
|
? _value.cardType
|
|
: cardType // ignore: cast_nullable_to_non_nullable
|
|
as ProxyCardType,
|
|
iconMap: null == iconMap
|
|
? _value._iconMap
|
|
: iconMap // ignore: cast_nullable_to_non_nullable
|
|
as Map<String, String>,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$ProxiesStyleImpl implements _ProxiesStyle {
|
|
const _$ProxiesStyleImpl(
|
|
{this.type = ProxiesType.tab,
|
|
this.sortType = ProxiesSortType.none,
|
|
this.layout = ProxiesLayout.standard,
|
|
this.iconStyle = ProxiesIconStyle.standard,
|
|
this.cardType = ProxyCardType.expand,
|
|
final Map<String, String> iconMap = const {}})
|
|
: _iconMap = iconMap;
|
|
|
|
factory _$ProxiesStyleImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$ProxiesStyleImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey()
|
|
final ProxiesType type;
|
|
@override
|
|
@JsonKey()
|
|
final ProxiesSortType sortType;
|
|
@override
|
|
@JsonKey()
|
|
final ProxiesLayout layout;
|
|
@override
|
|
@JsonKey()
|
|
final ProxiesIconStyle iconStyle;
|
|
@override
|
|
@JsonKey()
|
|
final ProxyCardType cardType;
|
|
final Map<String, String> _iconMap;
|
|
@override
|
|
@JsonKey()
|
|
Map<String, String> get iconMap {
|
|
if (_iconMap is EqualUnmodifiableMapView) return _iconMap;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableMapView(_iconMap);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'ProxiesStyle(type: $type, sortType: $sortType, layout: $layout, iconStyle: $iconStyle, cardType: $cardType, iconMap: $iconMap)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$ProxiesStyleImpl &&
|
|
(identical(other.type, type) || other.type == type) &&
|
|
(identical(other.sortType, sortType) ||
|
|
other.sortType == sortType) &&
|
|
(identical(other.layout, layout) || other.layout == layout) &&
|
|
(identical(other.iconStyle, iconStyle) ||
|
|
other.iconStyle == iconStyle) &&
|
|
(identical(other.cardType, cardType) ||
|
|
other.cardType == cardType) &&
|
|
const DeepCollectionEquality().equals(other._iconMap, _iconMap));
|
|
}
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, type, sortType, layout,
|
|
iconStyle, cardType, const DeepCollectionEquality().hash(_iconMap));
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$ProxiesStyleImplCopyWith<_$ProxiesStyleImpl> get copyWith =>
|
|
__$$ProxiesStyleImplCopyWithImpl<_$ProxiesStyleImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$ProxiesStyleImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _ProxiesStyle implements ProxiesStyle {
|
|
const factory _ProxiesStyle(
|
|
{final ProxiesType type,
|
|
final ProxiesSortType sortType,
|
|
final ProxiesLayout layout,
|
|
final ProxiesIconStyle iconStyle,
|
|
final ProxyCardType cardType,
|
|
final Map<String, String> iconMap}) = _$ProxiesStyleImpl;
|
|
|
|
factory _ProxiesStyle.fromJson(Map<String, dynamic> json) =
|
|
_$ProxiesStyleImpl.fromJson;
|
|
|
|
@override
|
|
ProxiesType get type;
|
|
@override
|
|
ProxiesSortType get sortType;
|
|
@override
|
|
ProxiesLayout get layout;
|
|
@override
|
|
ProxiesIconStyle get iconStyle;
|
|
@override
|
|
ProxyCardType get cardType;
|
|
@override
|
|
Map<String, String> get iconMap;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$$ProxiesStyleImplCopyWith<_$ProxiesStyleImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
ThemeProps _$ThemePropsFromJson(Map<String, dynamic> json) {
|
|
return _ThemeProps.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$ThemeProps {
|
|
int? get primaryColor => throw _privateConstructorUsedError;
|
|
ThemeMode get themeMode => throw _privateConstructorUsedError;
|
|
bool get prueBlack => throw _privateConstructorUsedError;
|
|
FontFamily get fontFamily => throw _privateConstructorUsedError;
|
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$ThemePropsCopyWith<ThemeProps> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $ThemePropsCopyWith<$Res> {
|
|
factory $ThemePropsCopyWith(
|
|
ThemeProps value, $Res Function(ThemeProps) then) =
|
|
_$ThemePropsCopyWithImpl<$Res, ThemeProps>;
|
|
@useResult
|
|
$Res call(
|
|
{int? primaryColor,
|
|
ThemeMode themeMode,
|
|
bool prueBlack,
|
|
FontFamily fontFamily});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$ThemePropsCopyWithImpl<$Res, $Val extends ThemeProps>
|
|
implements $ThemePropsCopyWith<$Res> {
|
|
_$ThemePropsCopyWithImpl(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? primaryColor = freezed,
|
|
Object? themeMode = null,
|
|
Object? prueBlack = null,
|
|
Object? fontFamily = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
primaryColor: freezed == primaryColor
|
|
? _value.primaryColor
|
|
: primaryColor // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
themeMode: null == themeMode
|
|
? _value.themeMode
|
|
: themeMode // ignore: cast_nullable_to_non_nullable
|
|
as ThemeMode,
|
|
prueBlack: null == prueBlack
|
|
? _value.prueBlack
|
|
: prueBlack // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
fontFamily: null == fontFamily
|
|
? _value.fontFamily
|
|
: fontFamily // ignore: cast_nullable_to_non_nullable
|
|
as FontFamily,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$ThemePropsImplCopyWith<$Res>
|
|
implements $ThemePropsCopyWith<$Res> {
|
|
factory _$$ThemePropsImplCopyWith(
|
|
_$ThemePropsImpl value, $Res Function(_$ThemePropsImpl) then) =
|
|
__$$ThemePropsImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{int? primaryColor,
|
|
ThemeMode themeMode,
|
|
bool prueBlack,
|
|
FontFamily fontFamily});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$ThemePropsImplCopyWithImpl<$Res>
|
|
extends _$ThemePropsCopyWithImpl<$Res, _$ThemePropsImpl>
|
|
implements _$$ThemePropsImplCopyWith<$Res> {
|
|
__$$ThemePropsImplCopyWithImpl(
|
|
_$ThemePropsImpl _value, $Res Function(_$ThemePropsImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? primaryColor = freezed,
|
|
Object? themeMode = null,
|
|
Object? prueBlack = null,
|
|
Object? fontFamily = null,
|
|
}) {
|
|
return _then(_$ThemePropsImpl(
|
|
primaryColor: freezed == primaryColor
|
|
? _value.primaryColor
|
|
: primaryColor // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
themeMode: null == themeMode
|
|
? _value.themeMode
|
|
: themeMode // ignore: cast_nullable_to_non_nullable
|
|
as ThemeMode,
|
|
prueBlack: null == prueBlack
|
|
? _value.prueBlack
|
|
: prueBlack // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
fontFamily: null == fontFamily
|
|
? _value.fontFamily
|
|
: fontFamily // ignore: cast_nullable_to_non_nullable
|
|
as FontFamily,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$ThemePropsImpl implements _ThemeProps {
|
|
const _$ThemePropsImpl(
|
|
{this.primaryColor = 0xFF795548,
|
|
this.themeMode = ThemeMode.system,
|
|
this.prueBlack = false,
|
|
this.fontFamily = FontFamily.system});
|
|
|
|
factory _$ThemePropsImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$ThemePropsImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey()
|
|
final int? primaryColor;
|
|
@override
|
|
@JsonKey()
|
|
final ThemeMode themeMode;
|
|
@override
|
|
@JsonKey()
|
|
final bool prueBlack;
|
|
@override
|
|
@JsonKey()
|
|
final FontFamily fontFamily;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'ThemeProps(primaryColor: $primaryColor, themeMode: $themeMode, prueBlack: $prueBlack, fontFamily: $fontFamily)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$ThemePropsImpl &&
|
|
(identical(other.primaryColor, primaryColor) ||
|
|
other.primaryColor == primaryColor) &&
|
|
(identical(other.themeMode, themeMode) ||
|
|
other.themeMode == themeMode) &&
|
|
(identical(other.prueBlack, prueBlack) ||
|
|
other.prueBlack == prueBlack) &&
|
|
(identical(other.fontFamily, fontFamily) ||
|
|
other.fontFamily == fontFamily));
|
|
}
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
int get hashCode =>
|
|
Object.hash(runtimeType, primaryColor, themeMode, prueBlack, fontFamily);
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$ThemePropsImplCopyWith<_$ThemePropsImpl> get copyWith =>
|
|
__$$ThemePropsImplCopyWithImpl<_$ThemePropsImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$ThemePropsImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _ThemeProps implements ThemeProps {
|
|
const factory _ThemeProps(
|
|
{final int? primaryColor,
|
|
final ThemeMode themeMode,
|
|
final bool prueBlack,
|
|
final FontFamily fontFamily}) = _$ThemePropsImpl;
|
|
|
|
factory _ThemeProps.fromJson(Map<String, dynamic> json) =
|
|
_$ThemePropsImpl.fromJson;
|
|
|
|
@override
|
|
int? get primaryColor;
|
|
@override
|
|
ThemeMode get themeMode;
|
|
@override
|
|
bool get prueBlack;
|
|
@override
|
|
FontFamily get fontFamily;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$$ThemePropsImplCopyWith<_$ThemePropsImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|