Support override script
Support proxies search Support svg display Optimize config persistence Add some scenes auto close connections Update core Optimize more details
This commit is contained in:
@@ -17,6 +17,7 @@ final _privateConstructorUsedError = UnsupportedError(
|
||||
/// @nodoc
|
||||
mixin _$AppState {
|
||||
bool get isInit => throw _privateConstructorUsedError;
|
||||
bool get backBlock => throw _privateConstructorUsedError;
|
||||
PageLabel get pageLabel => throw _privateConstructorUsedError;
|
||||
List<Package> get packages => throw _privateConstructorUsedError;
|
||||
int get sortNum => throw _privateConstructorUsedError;
|
||||
@@ -34,7 +35,8 @@ mixin _$AppState {
|
||||
FixedList<Log> get logs => throw _privateConstructorUsedError;
|
||||
FixedList<Traffic> get traffics => throw _privateConstructorUsedError;
|
||||
Traffic get totalTraffic => throw _privateConstructorUsedError;
|
||||
bool get needApply => throw _privateConstructorUsedError;
|
||||
String get proxiesQuery => throw _privateConstructorUsedError;
|
||||
bool get realTunEnable => throw _privateConstructorUsedError;
|
||||
|
||||
/// Create a copy of AppState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@@ -50,6 +52,7 @@ abstract class $AppStateCopyWith<$Res> {
|
||||
@useResult
|
||||
$Res call(
|
||||
{bool isInit,
|
||||
bool backBlock,
|
||||
PageLabel pageLabel,
|
||||
List<Package> packages,
|
||||
int sortNum,
|
||||
@@ -66,7 +69,8 @@ abstract class $AppStateCopyWith<$Res> {
|
||||
FixedList<Log> logs,
|
||||
FixedList<Traffic> traffics,
|
||||
Traffic totalTraffic,
|
||||
bool needApply});
|
||||
String proxiesQuery,
|
||||
bool realTunEnable});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -85,6 +89,7 @@ class _$AppStateCopyWithImpl<$Res, $Val extends AppState>
|
||||
@override
|
||||
$Res call({
|
||||
Object? isInit = null,
|
||||
Object? backBlock = null,
|
||||
Object? pageLabel = null,
|
||||
Object? packages = null,
|
||||
Object? sortNum = null,
|
||||
@@ -101,13 +106,18 @@ class _$AppStateCopyWithImpl<$Res, $Val extends AppState>
|
||||
Object? logs = null,
|
||||
Object? traffics = null,
|
||||
Object? totalTraffic = null,
|
||||
Object? needApply = null,
|
||||
Object? proxiesQuery = null,
|
||||
Object? realTunEnable = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
isInit: null == isInit
|
||||
? _value.isInit
|
||||
: isInit // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
backBlock: null == backBlock
|
||||
? _value.backBlock
|
||||
: backBlock // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
pageLabel: null == pageLabel
|
||||
? _value.pageLabel
|
||||
: pageLabel // ignore: cast_nullable_to_non_nullable
|
||||
@@ -172,9 +182,13 @@ class _$AppStateCopyWithImpl<$Res, $Val extends AppState>
|
||||
? _value.totalTraffic
|
||||
: totalTraffic // ignore: cast_nullable_to_non_nullable
|
||||
as Traffic,
|
||||
needApply: null == needApply
|
||||
? _value.needApply
|
||||
: needApply // ignore: cast_nullable_to_non_nullable
|
||||
proxiesQuery: null == proxiesQuery
|
||||
? _value.proxiesQuery
|
||||
: proxiesQuery // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
realTunEnable: null == realTunEnable
|
||||
? _value.realTunEnable
|
||||
: realTunEnable // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
) as $Val);
|
||||
}
|
||||
@@ -190,6 +204,7 @@ abstract class _$$AppStateImplCopyWith<$Res>
|
||||
@useResult
|
||||
$Res call(
|
||||
{bool isInit,
|
||||
bool backBlock,
|
||||
PageLabel pageLabel,
|
||||
List<Package> packages,
|
||||
int sortNum,
|
||||
@@ -206,7 +221,8 @@ abstract class _$$AppStateImplCopyWith<$Res>
|
||||
FixedList<Log> logs,
|
||||
FixedList<Traffic> traffics,
|
||||
Traffic totalTraffic,
|
||||
bool needApply});
|
||||
String proxiesQuery,
|
||||
bool realTunEnable});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -223,6 +239,7 @@ class __$$AppStateImplCopyWithImpl<$Res>
|
||||
@override
|
||||
$Res call({
|
||||
Object? isInit = null,
|
||||
Object? backBlock = null,
|
||||
Object? pageLabel = null,
|
||||
Object? packages = null,
|
||||
Object? sortNum = null,
|
||||
@@ -239,13 +256,18 @@ class __$$AppStateImplCopyWithImpl<$Res>
|
||||
Object? logs = null,
|
||||
Object? traffics = null,
|
||||
Object? totalTraffic = null,
|
||||
Object? needApply = null,
|
||||
Object? proxiesQuery = null,
|
||||
Object? realTunEnable = null,
|
||||
}) {
|
||||
return _then(_$AppStateImpl(
|
||||
isInit: null == isInit
|
||||
? _value.isInit
|
||||
: isInit // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
backBlock: null == backBlock
|
||||
? _value.backBlock
|
||||
: backBlock // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
pageLabel: null == pageLabel
|
||||
? _value.pageLabel
|
||||
: pageLabel // ignore: cast_nullable_to_non_nullable
|
||||
@@ -310,9 +332,13 @@ class __$$AppStateImplCopyWithImpl<$Res>
|
||||
? _value.totalTraffic
|
||||
: totalTraffic // ignore: cast_nullable_to_non_nullable
|
||||
as Traffic,
|
||||
needApply: null == needApply
|
||||
? _value.needApply
|
||||
: needApply // ignore: cast_nullable_to_non_nullable
|
||||
proxiesQuery: null == proxiesQuery
|
||||
? _value.proxiesQuery
|
||||
: proxiesQuery // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
realTunEnable: null == realTunEnable
|
||||
? _value.realTunEnable
|
||||
: realTunEnable // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
));
|
||||
}
|
||||
@@ -323,6 +349,7 @@ class __$$AppStateImplCopyWithImpl<$Res>
|
||||
class _$AppStateImpl implements _AppState {
|
||||
const _$AppStateImpl(
|
||||
{this.isInit = false,
|
||||
this.backBlock = false,
|
||||
this.pageLabel = PageLabel.dashboard,
|
||||
final List<Package> packages = const [],
|
||||
this.sortNum = 0,
|
||||
@@ -339,7 +366,8 @@ class _$AppStateImpl implements _AppState {
|
||||
required this.logs,
|
||||
required this.traffics,
|
||||
required this.totalTraffic,
|
||||
this.needApply = false})
|
||||
this.proxiesQuery = "",
|
||||
this.realTunEnable = false})
|
||||
: _packages = packages,
|
||||
_delayMap = delayMap,
|
||||
_groups = groups,
|
||||
@@ -350,6 +378,9 @@ class _$AppStateImpl implements _AppState {
|
||||
final bool isInit;
|
||||
@override
|
||||
@JsonKey()
|
||||
final bool backBlock;
|
||||
@override
|
||||
@JsonKey()
|
||||
final PageLabel pageLabel;
|
||||
final List<Package> _packages;
|
||||
@override
|
||||
@@ -413,11 +444,14 @@ class _$AppStateImpl implements _AppState {
|
||||
final Traffic totalTraffic;
|
||||
@override
|
||||
@JsonKey()
|
||||
final bool needApply;
|
||||
final String proxiesQuery;
|
||||
@override
|
||||
@JsonKey()
|
||||
final bool realTunEnable;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'AppState(isInit: $isInit, pageLabel: $pageLabel, packages: $packages, sortNum: $sortNum, viewSize: $viewSize, delayMap: $delayMap, groups: $groups, checkIpNum: $checkIpNum, brightness: $brightness, runTime: $runTime, providers: $providers, localIp: $localIp, requests: $requests, version: $version, logs: $logs, traffics: $traffics, totalTraffic: $totalTraffic, needApply: $needApply)';
|
||||
return 'AppState(isInit: $isInit, backBlock: $backBlock, pageLabel: $pageLabel, packages: $packages, sortNum: $sortNum, viewSize: $viewSize, delayMap: $delayMap, groups: $groups, checkIpNum: $checkIpNum, brightness: $brightness, runTime: $runTime, providers: $providers, localIp: $localIp, requests: $requests, version: $version, logs: $logs, traffics: $traffics, totalTraffic: $totalTraffic, proxiesQuery: $proxiesQuery, realTunEnable: $realTunEnable)';
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -426,6 +460,8 @@ class _$AppStateImpl implements _AppState {
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$AppStateImpl &&
|
||||
(identical(other.isInit, isInit) || other.isInit == isInit) &&
|
||||
(identical(other.backBlock, backBlock) ||
|
||||
other.backBlock == backBlock) &&
|
||||
(identical(other.pageLabel, pageLabel) ||
|
||||
other.pageLabel == pageLabel) &&
|
||||
const DeepCollectionEquality().equals(other._packages, _packages) &&
|
||||
@@ -450,31 +486,36 @@ class _$AppStateImpl implements _AppState {
|
||||
other.traffics == traffics) &&
|
||||
(identical(other.totalTraffic, totalTraffic) ||
|
||||
other.totalTraffic == totalTraffic) &&
|
||||
(identical(other.needApply, needApply) ||
|
||||
other.needApply == needApply));
|
||||
(identical(other.proxiesQuery, proxiesQuery) ||
|
||||
other.proxiesQuery == proxiesQuery) &&
|
||||
(identical(other.realTunEnable, realTunEnable) ||
|
||||
other.realTunEnable == realTunEnable));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
isInit,
|
||||
pageLabel,
|
||||
const DeepCollectionEquality().hash(_packages),
|
||||
sortNum,
|
||||
viewSize,
|
||||
const DeepCollectionEquality().hash(_delayMap),
|
||||
const DeepCollectionEquality().hash(_groups),
|
||||
checkIpNum,
|
||||
brightness,
|
||||
runTime,
|
||||
const DeepCollectionEquality().hash(_providers),
|
||||
localIp,
|
||||
requests,
|
||||
version,
|
||||
logs,
|
||||
traffics,
|
||||
totalTraffic,
|
||||
needApply);
|
||||
int get hashCode => Object.hashAll([
|
||||
runtimeType,
|
||||
isInit,
|
||||
backBlock,
|
||||
pageLabel,
|
||||
const DeepCollectionEquality().hash(_packages),
|
||||
sortNum,
|
||||
viewSize,
|
||||
const DeepCollectionEquality().hash(_delayMap),
|
||||
const DeepCollectionEquality().hash(_groups),
|
||||
checkIpNum,
|
||||
brightness,
|
||||
runTime,
|
||||
const DeepCollectionEquality().hash(_providers),
|
||||
localIp,
|
||||
requests,
|
||||
version,
|
||||
logs,
|
||||
traffics,
|
||||
totalTraffic,
|
||||
proxiesQuery,
|
||||
realTunEnable
|
||||
]);
|
||||
|
||||
/// Create a copy of AppState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@@ -488,6 +529,7 @@ class _$AppStateImpl implements _AppState {
|
||||
abstract class _AppState implements AppState {
|
||||
const factory _AppState(
|
||||
{final bool isInit,
|
||||
final bool backBlock,
|
||||
final PageLabel pageLabel,
|
||||
final List<Package> packages,
|
||||
final int sortNum,
|
||||
@@ -504,11 +546,14 @@ abstract class _AppState implements AppState {
|
||||
required final FixedList<Log> logs,
|
||||
required final FixedList<Traffic> traffics,
|
||||
required final Traffic totalTraffic,
|
||||
final bool needApply}) = _$AppStateImpl;
|
||||
final String proxiesQuery,
|
||||
final bool realTunEnable}) = _$AppStateImpl;
|
||||
|
||||
@override
|
||||
bool get isInit;
|
||||
@override
|
||||
bool get backBlock;
|
||||
@override
|
||||
PageLabel get pageLabel;
|
||||
@override
|
||||
List<Package> get packages;
|
||||
@@ -541,7 +586,9 @@ abstract class _AppState implements AppState {
|
||||
@override
|
||||
Traffic get totalTraffic;
|
||||
@override
|
||||
bool get needApply;
|
||||
String get proxiesQuery;
|
||||
@override
|
||||
bool get realTunEnable;
|
||||
|
||||
/// Create a copy of AppState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
|
||||
Reference in New Issue
Block a user