bump: flutter 3.35.1

This commit is contained in:
xkeyC 2025-08-15 22:48:16 +08:00
parent 86b2411fe6
commit 44bf771f4c
51 changed files with 8759 additions and 8472 deletions

View File

@ -1,6 +1,5 @@
// dart format width=80
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// ignore_for_file: type=lint // 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 // 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
@ -12,83 +11,47 @@ part of 'app.dart';
// dart format off // dart format off
T _$identity<T>(T value) => value; T _$identity<T>(T value) => value;
/// @nodoc /// @nodoc
mixin _$AppGlobalState { mixin _$AppGlobalState {
String? get deviceUUID;
String? get applicationSupportDir;
String? get applicationBinaryModuleDir;
AppVersionData? get networkVersionData;
ThemeConf get themeConf;
Locale? get appLocale;
Box? get appConfBox;
String? get deviceUUID; String? get applicationSupportDir; String? get applicationBinaryModuleDir; AppVersionData? get networkVersionData; ThemeConf get themeConf; Locale? get appLocale; Box? get appConfBox;
/// Create a copy of AppGlobalState /// Create a copy of AppGlobalState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
$AppGlobalStateCopyWith<AppGlobalState> get copyWith => $AppGlobalStateCopyWith<AppGlobalState> get copyWith => _$AppGlobalStateCopyWithImpl<AppGlobalState>(this as AppGlobalState, _$identity);
_$AppGlobalStateCopyWithImpl<AppGlobalState>(
this as AppGlobalState, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is AppGlobalState&&(identical(other.deviceUUID, deviceUUID) || other.deviceUUID == deviceUUID)&&(identical(other.applicationSupportDir, applicationSupportDir) || other.applicationSupportDir == applicationSupportDir)&&(identical(other.applicationBinaryModuleDir, applicationBinaryModuleDir) || other.applicationBinaryModuleDir == applicationBinaryModuleDir)&&(identical(other.networkVersionData, networkVersionData) || other.networkVersionData == networkVersionData)&&(identical(other.themeConf, themeConf) || other.themeConf == themeConf)&&(identical(other.appLocale, appLocale) || other.appLocale == appLocale)&&(identical(other.appConfBox, appConfBox) || other.appConfBox == appConfBox));
(other.runtimeType == runtimeType &&
other is AppGlobalState &&
(identical(other.deviceUUID, deviceUUID) ||
other.deviceUUID == deviceUUID) &&
(identical(other.applicationSupportDir, applicationSupportDir) ||
other.applicationSupportDir == applicationSupportDir) &&
(identical(other.applicationBinaryModuleDir,
applicationBinaryModuleDir) ||
other.applicationBinaryModuleDir ==
applicationBinaryModuleDir) &&
(identical(other.networkVersionData, networkVersionData) ||
other.networkVersionData == networkVersionData) &&
(identical(other.themeConf, themeConf) ||
other.themeConf == themeConf) &&
(identical(other.appLocale, appLocale) ||
other.appLocale == appLocale) &&
(identical(other.appConfBox, appConfBox) ||
other.appConfBox == appConfBox));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,deviceUUID,applicationSupportDir,applicationBinaryModuleDir,networkVersionData,themeConf,appLocale,appConfBox);
runtimeType,
deviceUUID,
applicationSupportDir,
applicationBinaryModuleDir,
networkVersionData,
themeConf,
appLocale,
appConfBox);
@override @override
String toString() { String toString() {
return 'AppGlobalState(deviceUUID: $deviceUUID, applicationSupportDir: $applicationSupportDir, applicationBinaryModuleDir: $applicationBinaryModuleDir, networkVersionData: $networkVersionData, themeConf: $themeConf, appLocale: $appLocale, appConfBox: $appConfBox)'; return 'AppGlobalState(deviceUUID: $deviceUUID, applicationSupportDir: $applicationSupportDir, applicationBinaryModuleDir: $applicationBinaryModuleDir, networkVersionData: $networkVersionData, themeConf: $themeConf, appLocale: $appLocale, appConfBox: $appConfBox)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class $AppGlobalStateCopyWith<$Res> { abstract mixin class $AppGlobalStateCopyWith<$Res> {
factory $AppGlobalStateCopyWith( factory $AppGlobalStateCopyWith(AppGlobalState value, $Res Function(AppGlobalState) _then) = _$AppGlobalStateCopyWithImpl;
AppGlobalState value, $Res Function(AppGlobalState) _then) =
_$AppGlobalStateCopyWithImpl;
@useResult @useResult
$Res call( $Res call({
{String? deviceUUID, String? deviceUUID, String? applicationSupportDir, String? applicationBinaryModuleDir, AppVersionData? networkVersionData, ThemeConf themeConf, Locale? appLocale, Box? appConfBox
String? applicationSupportDir, });
String? applicationBinaryModuleDir,
AppVersionData? networkVersionData,
ThemeConf themeConf,
Locale? appLocale,
Box? appConfBox});
$ThemeConfCopyWith<$Res> get themeConf; $ThemeConfCopyWith<$Res> get themeConf;
}
}
/// @nodoc /// @nodoc
class _$AppGlobalStateCopyWithImpl<$Res> class _$AppGlobalStateCopyWithImpl<$Res>
implements $AppGlobalStateCopyWith<$Res> { implements $AppGlobalStateCopyWith<$Res> {
@ -99,157 +62,213 @@ class _$AppGlobalStateCopyWithImpl<$Res>
/// Create a copy of AppGlobalState /// Create a copy of AppGlobalState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline') @override $Res call({Object? deviceUUID = freezed,Object? applicationSupportDir = freezed,Object? applicationBinaryModuleDir = freezed,Object? networkVersionData = freezed,Object? themeConf = null,Object? appLocale = freezed,Object? appConfBox = freezed,}) {
@override
$Res call({
Object? deviceUUID = freezed,
Object? applicationSupportDir = freezed,
Object? applicationBinaryModuleDir = freezed,
Object? networkVersionData = freezed,
Object? themeConf = null,
Object? appLocale = freezed,
Object? appConfBox = freezed,
}) {
return _then(_self.copyWith( return _then(_self.copyWith(
deviceUUID: freezed == deviceUUID deviceUUID: freezed == deviceUUID ? _self.deviceUUID : deviceUUID // ignore: cast_nullable_to_non_nullable
? _self.deviceUUID as String?,applicationSupportDir: freezed == applicationSupportDir ? _self.applicationSupportDir : applicationSupportDir // ignore: cast_nullable_to_non_nullable
: deviceUUID // ignore: cast_nullable_to_non_nullable as String?,applicationBinaryModuleDir: freezed == applicationBinaryModuleDir ? _self.applicationBinaryModuleDir : applicationBinaryModuleDir // ignore: cast_nullable_to_non_nullable
as String?, as String?,networkVersionData: freezed == networkVersionData ? _self.networkVersionData : networkVersionData // ignore: cast_nullable_to_non_nullable
applicationSupportDir: freezed == applicationSupportDir as AppVersionData?,themeConf: null == themeConf ? _self.themeConf : themeConf // ignore: cast_nullable_to_non_nullable
? _self.applicationSupportDir as ThemeConf,appLocale: freezed == appLocale ? _self.appLocale : appLocale // ignore: cast_nullable_to_non_nullable
: applicationSupportDir // ignore: cast_nullable_to_non_nullable as Locale?,appConfBox: freezed == appConfBox ? _self.appConfBox : appConfBox // ignore: cast_nullable_to_non_nullable
as String?,
applicationBinaryModuleDir: freezed == applicationBinaryModuleDir
? _self.applicationBinaryModuleDir
: applicationBinaryModuleDir // ignore: cast_nullable_to_non_nullable
as String?,
networkVersionData: freezed == networkVersionData
? _self.networkVersionData
: networkVersionData // ignore: cast_nullable_to_non_nullable
as AppVersionData?,
themeConf: null == themeConf
? _self.themeConf
: themeConf // ignore: cast_nullable_to_non_nullable
as ThemeConf,
appLocale: freezed == appLocale
? _self.appLocale
: appLocale // ignore: cast_nullable_to_non_nullable
as Locale?,
appConfBox: freezed == appConfBox
? _self.appConfBox
: appConfBox // ignore: cast_nullable_to_non_nullable
as Box?, as Box?,
)); ));
} }
/// Create a copy of AppGlobalState /// Create a copy of AppGlobalState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
$ThemeConfCopyWith<$Res> get themeConf { $ThemeConfCopyWith<$Res> get themeConf {
return $ThemeConfCopyWith<$Res>(_self.themeConf, (value) { return $ThemeConfCopyWith<$Res>(_self.themeConf, (value) {
return _then(_self.copyWith(themeConf: value)); return _then(_self.copyWith(themeConf: value));
}); });
} }
} }
/// Adds pattern-matching-related methods to [AppGlobalState].
extension AppGlobalStatePatterns on AppGlobalState {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _AppGlobalState value)? $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _AppGlobalState() when $default != null:
return $default(_that);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _AppGlobalState value) $default,){
final _that = this;
switch (_that) {
case _AppGlobalState():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _AppGlobalState value)? $default,){
final _that = this;
switch (_that) {
case _AppGlobalState() when $default != null:
return $default(_that);case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String? deviceUUID, String? applicationSupportDir, String? applicationBinaryModuleDir, AppVersionData? networkVersionData, ThemeConf themeConf, Locale? appLocale, Box? appConfBox)? $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _AppGlobalState() when $default != null:
return $default(_that.deviceUUID,_that.applicationSupportDir,_that.applicationBinaryModuleDir,_that.networkVersionData,_that.themeConf,_that.appLocale,_that.appConfBox);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String? deviceUUID, String? applicationSupportDir, String? applicationBinaryModuleDir, AppVersionData? networkVersionData, ThemeConf themeConf, Locale? appLocale, Box? appConfBox) $default,) {final _that = this;
switch (_that) {
case _AppGlobalState():
return $default(_that.deviceUUID,_that.applicationSupportDir,_that.applicationBinaryModuleDir,_that.networkVersionData,_that.themeConf,_that.appLocale,_that.appConfBox);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String? deviceUUID, String? applicationSupportDir, String? applicationBinaryModuleDir, AppVersionData? networkVersionData, ThemeConf themeConf, Locale? appLocale, Box? appConfBox)? $default,) {final _that = this;
switch (_that) {
case _AppGlobalState() when $default != null:
return $default(_that.deviceUUID,_that.applicationSupportDir,_that.applicationBinaryModuleDir,_that.networkVersionData,_that.themeConf,_that.appLocale,_that.appConfBox);case _:
return null;
}
}
}
/// @nodoc /// @nodoc
class _AppGlobalState implements AppGlobalState {
const _AppGlobalState(
{this.deviceUUID,
this.applicationSupportDir,
this.applicationBinaryModuleDir,
this.networkVersionData,
this.themeConf = const ThemeConf(),
this.appLocale,
this.appConfBox});
@override class _AppGlobalState implements AppGlobalState {
final String? deviceUUID; const _AppGlobalState({this.deviceUUID, this.applicationSupportDir, this.applicationBinaryModuleDir, this.networkVersionData, this.themeConf = const ThemeConf(), this.appLocale, this.appConfBox});
@override
final String? applicationSupportDir;
@override @override final String? deviceUUID;
final String? applicationBinaryModuleDir; @override final String? applicationSupportDir;
@override @override final String? applicationBinaryModuleDir;
final AppVersionData? networkVersionData; @override final AppVersionData? networkVersionData;
@override @override@JsonKey() final ThemeConf themeConf;
@JsonKey() @override final Locale? appLocale;
final ThemeConf themeConf; @override final Box? appConfBox;
@override
final Locale? appLocale;
@override
final Box? appConfBox;
/// Create a copy of AppGlobalState /// Create a copy of AppGlobalState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
_$AppGlobalStateCopyWith<_AppGlobalState> get copyWith => _$AppGlobalStateCopyWith<_AppGlobalState> get copyWith => __$AppGlobalStateCopyWithImpl<_AppGlobalState>(this, _$identity);
__$AppGlobalStateCopyWithImpl<_AppGlobalState>(this, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is _AppGlobalState&&(identical(other.deviceUUID, deviceUUID) || other.deviceUUID == deviceUUID)&&(identical(other.applicationSupportDir, applicationSupportDir) || other.applicationSupportDir == applicationSupportDir)&&(identical(other.applicationBinaryModuleDir, applicationBinaryModuleDir) || other.applicationBinaryModuleDir == applicationBinaryModuleDir)&&(identical(other.networkVersionData, networkVersionData) || other.networkVersionData == networkVersionData)&&(identical(other.themeConf, themeConf) || other.themeConf == themeConf)&&(identical(other.appLocale, appLocale) || other.appLocale == appLocale)&&(identical(other.appConfBox, appConfBox) || other.appConfBox == appConfBox));
(other.runtimeType == runtimeType &&
other is _AppGlobalState &&
(identical(other.deviceUUID, deviceUUID) ||
other.deviceUUID == deviceUUID) &&
(identical(other.applicationSupportDir, applicationSupportDir) ||
other.applicationSupportDir == applicationSupportDir) &&
(identical(other.applicationBinaryModuleDir,
applicationBinaryModuleDir) ||
other.applicationBinaryModuleDir ==
applicationBinaryModuleDir) &&
(identical(other.networkVersionData, networkVersionData) ||
other.networkVersionData == networkVersionData) &&
(identical(other.themeConf, themeConf) ||
other.themeConf == themeConf) &&
(identical(other.appLocale, appLocale) ||
other.appLocale == appLocale) &&
(identical(other.appConfBox, appConfBox) ||
other.appConfBox == appConfBox));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,deviceUUID,applicationSupportDir,applicationBinaryModuleDir,networkVersionData,themeConf,appLocale,appConfBox);
runtimeType,
deviceUUID,
applicationSupportDir,
applicationBinaryModuleDir,
networkVersionData,
themeConf,
appLocale,
appConfBox);
@override @override
String toString() { String toString() {
return 'AppGlobalState(deviceUUID: $deviceUUID, applicationSupportDir: $applicationSupportDir, applicationBinaryModuleDir: $applicationBinaryModuleDir, networkVersionData: $networkVersionData, themeConf: $themeConf, appLocale: $appLocale, appConfBox: $appConfBox)'; return 'AppGlobalState(deviceUUID: $deviceUUID, applicationSupportDir: $applicationSupportDir, applicationBinaryModuleDir: $applicationBinaryModuleDir, networkVersionData: $networkVersionData, themeConf: $themeConf, appLocale: $appLocale, appConfBox: $appConfBox)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class _$AppGlobalStateCopyWith<$Res> abstract mixin class _$AppGlobalStateCopyWith<$Res> implements $AppGlobalStateCopyWith<$Res> {
implements $AppGlobalStateCopyWith<$Res> { factory _$AppGlobalStateCopyWith(_AppGlobalState value, $Res Function(_AppGlobalState) _then) = __$AppGlobalStateCopyWithImpl;
factory _$AppGlobalStateCopyWith( @override @useResult
_AppGlobalState value, $Res Function(_AppGlobalState) _then) = $Res call({
__$AppGlobalStateCopyWithImpl; String? deviceUUID, String? applicationSupportDir, String? applicationBinaryModuleDir, AppVersionData? networkVersionData, ThemeConf themeConf, Locale? appLocale, Box? appConfBox
@override });
@useResult
$Res call(
{String? deviceUUID, @override $ThemeConfCopyWith<$Res> get themeConf;
String? applicationSupportDir,
String? applicationBinaryModuleDir,
AppVersionData? networkVersionData,
ThemeConf themeConf,
Locale? appLocale,
Box? appConfBox});
@override
$ThemeConfCopyWith<$Res> get themeConf;
} }
/// @nodoc /// @nodoc
class __$AppGlobalStateCopyWithImpl<$Res> class __$AppGlobalStateCopyWithImpl<$Res>
implements _$AppGlobalStateCopyWith<$Res> { implements _$AppGlobalStateCopyWith<$Res> {
@ -260,45 +279,15 @@ class __$AppGlobalStateCopyWithImpl<$Res>
/// Create a copy of AppGlobalState /// Create a copy of AppGlobalState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @pragma('vm:prefer-inline') $Res call({Object? deviceUUID = freezed,Object? applicationSupportDir = freezed,Object? applicationBinaryModuleDir = freezed,Object? networkVersionData = freezed,Object? themeConf = null,Object? appLocale = freezed,Object? appConfBox = freezed,}) {
@pragma('vm:prefer-inline')
$Res call({
Object? deviceUUID = freezed,
Object? applicationSupportDir = freezed,
Object? applicationBinaryModuleDir = freezed,
Object? networkVersionData = freezed,
Object? themeConf = null,
Object? appLocale = freezed,
Object? appConfBox = freezed,
}) {
return _then(_AppGlobalState( return _then(_AppGlobalState(
deviceUUID: freezed == deviceUUID deviceUUID: freezed == deviceUUID ? _self.deviceUUID : deviceUUID // ignore: cast_nullable_to_non_nullable
? _self.deviceUUID as String?,applicationSupportDir: freezed == applicationSupportDir ? _self.applicationSupportDir : applicationSupportDir // ignore: cast_nullable_to_non_nullable
: deviceUUID // ignore: cast_nullable_to_non_nullable as String?,applicationBinaryModuleDir: freezed == applicationBinaryModuleDir ? _self.applicationBinaryModuleDir : applicationBinaryModuleDir // ignore: cast_nullable_to_non_nullable
as String?, as String?,networkVersionData: freezed == networkVersionData ? _self.networkVersionData : networkVersionData // ignore: cast_nullable_to_non_nullable
applicationSupportDir: freezed == applicationSupportDir as AppVersionData?,themeConf: null == themeConf ? _self.themeConf : themeConf // ignore: cast_nullable_to_non_nullable
? _self.applicationSupportDir as ThemeConf,appLocale: freezed == appLocale ? _self.appLocale : appLocale // ignore: cast_nullable_to_non_nullable
: applicationSupportDir // ignore: cast_nullable_to_non_nullable as Locale?,appConfBox: freezed == appConfBox ? _self.appConfBox : appConfBox // ignore: cast_nullable_to_non_nullable
as String?,
applicationBinaryModuleDir: freezed == applicationBinaryModuleDir
? _self.applicationBinaryModuleDir
: applicationBinaryModuleDir // ignore: cast_nullable_to_non_nullable
as String?,
networkVersionData: freezed == networkVersionData
? _self.networkVersionData
: networkVersionData // ignore: cast_nullable_to_non_nullable
as AppVersionData?,
themeConf: null == themeConf
? _self.themeConf
: themeConf // ignore: cast_nullable_to_non_nullable
as ThemeConf,
appLocale: freezed == appLocale
? _self.appLocale
: appLocale // ignore: cast_nullable_to_non_nullable
as Locale?,
appConfBox: freezed == appConfBox
? _self.appConfBox
: appConfBox // ignore: cast_nullable_to_non_nullable
as Box?, as Box?,
)); ));
} }
@ -308,6 +297,7 @@ class __$AppGlobalStateCopyWithImpl<$Res>
@override @override
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
$ThemeConfCopyWith<$Res> get themeConf { $ThemeConfCopyWith<$Res> get themeConf {
return $ThemeConfCopyWith<$Res>(_self.themeConf, (value) { return $ThemeConfCopyWith<$Res>(_self.themeConf, (value) {
return _then(_self.copyWith(themeConf: value)); return _then(_self.copyWith(themeConf: value));
}); });
@ -316,50 +306,48 @@ class __$AppGlobalStateCopyWithImpl<$Res>
/// @nodoc /// @nodoc
mixin _$ThemeConf { mixin _$ThemeConf {
Color get backgroundColor;
Color get menuColor;
Color get micaColor;
Color get backgroundColor; Color get menuColor; Color get micaColor;
/// Create a copy of ThemeConf /// Create a copy of ThemeConf
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
$ThemeConfCopyWith<ThemeConf> get copyWith => $ThemeConfCopyWith<ThemeConf> get copyWith => _$ThemeConfCopyWithImpl<ThemeConf>(this as ThemeConf, _$identity);
_$ThemeConfCopyWithImpl<ThemeConf>(this as ThemeConf, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is ThemeConf&&(identical(other.backgroundColor, backgroundColor) || other.backgroundColor == backgroundColor)&&(identical(other.menuColor, menuColor) || other.menuColor == menuColor)&&(identical(other.micaColor, micaColor) || other.micaColor == micaColor));
(other.runtimeType == runtimeType &&
other is ThemeConf &&
(identical(other.backgroundColor, backgroundColor) ||
other.backgroundColor == backgroundColor) &&
(identical(other.menuColor, menuColor) ||
other.menuColor == menuColor) &&
(identical(other.micaColor, micaColor) ||
other.micaColor == micaColor));
} }
@override @override
int get hashCode => int get hashCode => Object.hash(runtimeType,backgroundColor,menuColor,micaColor);
Object.hash(runtimeType, backgroundColor, menuColor, micaColor);
@override @override
String toString() { String toString() {
return 'ThemeConf(backgroundColor: $backgroundColor, menuColor: $menuColor, micaColor: $micaColor)'; return 'ThemeConf(backgroundColor: $backgroundColor, menuColor: $menuColor, micaColor: $micaColor)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class $ThemeConfCopyWith<$Res> { abstract mixin class $ThemeConfCopyWith<$Res> {
factory $ThemeConfCopyWith(ThemeConf value, $Res Function(ThemeConf) _then) = factory $ThemeConfCopyWith(ThemeConf value, $Res Function(ThemeConf) _then) = _$ThemeConfCopyWithImpl;
_$ThemeConfCopyWithImpl;
@useResult @useResult
$Res call({Color backgroundColor, Color menuColor, Color micaColor}); $Res call({
} Color backgroundColor, Color menuColor, Color micaColor
});
}
/// @nodoc /// @nodoc
class _$ThemeConfCopyWithImpl<$Res> implements $ThemeConfCopyWith<$Res> { class _$ThemeConfCopyWithImpl<$Res>
implements $ThemeConfCopyWith<$Res> {
_$ThemeConfCopyWithImpl(this._self, this._then); _$ThemeConfCopyWithImpl(this._self, this._then);
final ThemeConf _self; final ThemeConf _self;
@ -367,92 +355,199 @@ class _$ThemeConfCopyWithImpl<$Res> implements $ThemeConfCopyWith<$Res> {
/// Create a copy of ThemeConf /// Create a copy of ThemeConf
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline') @override $Res call({Object? backgroundColor = null,Object? menuColor = null,Object? micaColor = null,}) {
@override
$Res call({
Object? backgroundColor = null,
Object? menuColor = null,
Object? micaColor = null,
}) {
return _then(_self.copyWith( return _then(_self.copyWith(
backgroundColor: null == backgroundColor backgroundColor: null == backgroundColor ? _self.backgroundColor : backgroundColor // ignore: cast_nullable_to_non_nullable
? _self.backgroundColor as Color,menuColor: null == menuColor ? _self.menuColor : menuColor // ignore: cast_nullable_to_non_nullable
: backgroundColor // ignore: cast_nullable_to_non_nullable as Color,micaColor: null == micaColor ? _self.micaColor : micaColor // ignore: cast_nullable_to_non_nullable
as Color,
menuColor: null == menuColor
? _self.menuColor
: menuColor // ignore: cast_nullable_to_non_nullable
as Color,
micaColor: null == micaColor
? _self.micaColor
: micaColor // ignore: cast_nullable_to_non_nullable
as Color, as Color,
)); ));
} }
}
/// Adds pattern-matching-related methods to [ThemeConf].
extension ThemeConfPatterns on ThemeConf {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _ThemeConf value)? $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _ThemeConf() when $default != null:
return $default(_that);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _ThemeConf value) $default,){
final _that = this;
switch (_that) {
case _ThemeConf():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _ThemeConf value)? $default,){
final _that = this;
switch (_that) {
case _ThemeConf() when $default != null:
return $default(_that);case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( Color backgroundColor, Color menuColor, Color micaColor)? $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _ThemeConf() when $default != null:
return $default(_that.backgroundColor,_that.menuColor,_that.micaColor);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( Color backgroundColor, Color menuColor, Color micaColor) $default,) {final _that = this;
switch (_that) {
case _ThemeConf():
return $default(_that.backgroundColor,_that.menuColor,_that.micaColor);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( Color backgroundColor, Color menuColor, Color micaColor)? $default,) {final _that = this;
switch (_that) {
case _ThemeConf() when $default != null:
return $default(_that.backgroundColor,_that.menuColor,_that.micaColor);case _:
return null;
}
}
} }
/// @nodoc /// @nodoc
class _ThemeConf implements ThemeConf {
const _ThemeConf(
{this.backgroundColor = const Color(0xbf132431),
this.menuColor = const Color(0xf2132431),
this.micaColor = const Color(0xff0a3142)});
@override class _ThemeConf implements ThemeConf {
@JsonKey() const _ThemeConf({this.backgroundColor = const Color(0xbf132431), this.menuColor = const Color(0xf2132431), this.micaColor = const Color(0xff0a3142)});
final Color backgroundColor;
@override
@JsonKey() @override@JsonKey() final Color backgroundColor;
final Color menuColor; @override@JsonKey() final Color menuColor;
@override @override@JsonKey() final Color micaColor;
@JsonKey()
final Color micaColor;
/// Create a copy of ThemeConf /// Create a copy of ThemeConf
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
_$ThemeConfCopyWith<_ThemeConf> get copyWith => _$ThemeConfCopyWith<_ThemeConf> get copyWith => __$ThemeConfCopyWithImpl<_ThemeConf>(this, _$identity);
__$ThemeConfCopyWithImpl<_ThemeConf>(this, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is _ThemeConf&&(identical(other.backgroundColor, backgroundColor) || other.backgroundColor == backgroundColor)&&(identical(other.menuColor, menuColor) || other.menuColor == menuColor)&&(identical(other.micaColor, micaColor) || other.micaColor == micaColor));
(other.runtimeType == runtimeType &&
other is _ThemeConf &&
(identical(other.backgroundColor, backgroundColor) ||
other.backgroundColor == backgroundColor) &&
(identical(other.menuColor, menuColor) ||
other.menuColor == menuColor) &&
(identical(other.micaColor, micaColor) ||
other.micaColor == micaColor));
} }
@override @override
int get hashCode => int get hashCode => Object.hash(runtimeType,backgroundColor,menuColor,micaColor);
Object.hash(runtimeType, backgroundColor, menuColor, micaColor);
@override @override
String toString() { String toString() {
return 'ThemeConf(backgroundColor: $backgroundColor, menuColor: $menuColor, micaColor: $micaColor)'; return 'ThemeConf(backgroundColor: $backgroundColor, menuColor: $menuColor, micaColor: $micaColor)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class _$ThemeConfCopyWith<$Res> abstract mixin class _$ThemeConfCopyWith<$Res> implements $ThemeConfCopyWith<$Res> {
implements $ThemeConfCopyWith<$Res> { factory _$ThemeConfCopyWith(_ThemeConf value, $Res Function(_ThemeConf) _then) = __$ThemeConfCopyWithImpl;
factory _$ThemeConfCopyWith( @override @useResult
_ThemeConf value, $Res Function(_ThemeConf) _then) = $Res call({
__$ThemeConfCopyWithImpl; Color backgroundColor, Color menuColor, Color micaColor
@override });
@useResult
$Res call({Color backgroundColor, Color menuColor, Color micaColor});
}
}
/// @nodoc /// @nodoc
class __$ThemeConfCopyWithImpl<$Res> implements _$ThemeConfCopyWith<$Res> { class __$ThemeConfCopyWithImpl<$Res>
implements _$ThemeConfCopyWith<$Res> {
__$ThemeConfCopyWithImpl(this._self, this._then); __$ThemeConfCopyWithImpl(this._self, this._then);
final _ThemeConf _self; final _ThemeConf _self;
@ -460,28 +555,16 @@ class __$ThemeConfCopyWithImpl<$Res> implements _$ThemeConfCopyWith<$Res> {
/// Create a copy of ThemeConf /// Create a copy of ThemeConf
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @pragma('vm:prefer-inline') $Res call({Object? backgroundColor = null,Object? menuColor = null,Object? micaColor = null,}) {
@pragma('vm:prefer-inline')
$Res call({
Object? backgroundColor = null,
Object? menuColor = null,
Object? micaColor = null,
}) {
return _then(_ThemeConf( return _then(_ThemeConf(
backgroundColor: null == backgroundColor backgroundColor: null == backgroundColor ? _self.backgroundColor : backgroundColor // ignore: cast_nullable_to_non_nullable
? _self.backgroundColor as Color,menuColor: null == menuColor ? _self.menuColor : menuColor // ignore: cast_nullable_to_non_nullable
: backgroundColor // ignore: cast_nullable_to_non_nullable as Color,micaColor: null == micaColor ? _self.micaColor : micaColor // ignore: cast_nullable_to_non_nullable
as Color,
menuColor: null == menuColor
? _self.menuColor
: menuColor // ignore: cast_nullable_to_non_nullable
as Color,
micaColor: null == micaColor
? _self.micaColor
: micaColor // ignore: cast_nullable_to_non_nullable
as Color, as Color,
)); ));
} }
} }
// dart format on // dart format on

View File

@ -13,8 +13,9 @@ String _$routerHash() => r'cdf659da46a6dfbab2368a85be2f803f54823142';
final routerProvider = AutoDisposeProvider<GoRouter>.internal( final routerProvider = AutoDisposeProvider<GoRouter>.internal(
router, router,
name: r'routerProvider', name: r'routerProvider',
debugGetCreateSourceHash: debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
const bool.fromEnvironment('dart.vm.product') ? null : _$routerHash, ? null
: _$routerHash,
dependencies: null, dependencies: null,
allTransitiveDependencies: null, allTransitiveDependencies: null,
); );
@ -22,7 +23,7 @@ final routerProvider = AutoDisposeProvider<GoRouter>.internal(
@Deprecated('Will be removed in 3.0. Use Ref instead') @Deprecated('Will be removed in 3.0. Use Ref instead')
// ignore: unused_element // ignore: unused_element
typedef RouterRef = AutoDisposeProviderRef<GoRouter>; typedef RouterRef = AutoDisposeProviderRef<GoRouter>;
String _$appGlobalModelHash() => r'4e372bc744903960e4e7b146dbb394ded15e2c18'; String _$appGlobalModelHash() => r'6cb5e8398329c7bcbaa65daf426979cf54d1bfff';
/// See also [AppGlobalModel]. /// See also [AppGlobalModel].
@ProviderFor(AppGlobalModel) @ProviderFor(AppGlobalModel)

View File

@ -1,15 +1,16 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.10.0. // @generated by `flutter_rust_bridge`@ 2.11.1.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
import '../frb_generated.dart'; import '../frb_generated.dart';
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
Future<RsiLauncherAsarData> getRsiLauncherAsarData( Future<RsiLauncherAsarData> getRsiLauncherAsarData({
{required String asarPath}) => required String asarPath,
RustLib.instance.api }) => RustLib.instance.api.crateApiAsarApiGetRsiLauncherAsarData(
.crateApiAsarApiGetRsiLauncherAsarData(asarPath: asarPath); asarPath: asarPath,
);
class RsiLauncherAsarData { class RsiLauncherAsarData {
final String asarPath; final String asarPath;
@ -24,7 +25,9 @@ class RsiLauncherAsarData {
Future<void> writeMainJs({required List<int> content}) => Future<void> writeMainJs({required List<int> content}) =>
RustLib.instance.api.crateApiAsarApiRsiLauncherAsarDataWriteMainJs( RustLib.instance.api.crateApiAsarApiRsiLauncherAsarDataWriteMainJs(
that: this, content: content); that: this,
content: content,
);
@override @override
int get hashCode => int get hashCode =>

View File

@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.10.0. // @generated by `flutter_rust_bridge`@ 2.11.1.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
@ -12,20 +12,21 @@ import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
Future<void> setDefaultHeader({required Map<String, String> headers}) => Future<void> setDefaultHeader({required Map<String, String> headers}) =>
RustLib.instance.api.crateApiHttpApiSetDefaultHeader(headers: headers); RustLib.instance.api.crateApiHttpApiSetDefaultHeader(headers: headers);
Future<RustHttpResponse> fetch( Future<RustHttpResponse> fetch({
{required MyMethod method, required MyMethod method,
required String url, required String url,
Map<String, String>? headers, Map<String, String>? headers,
Uint8List? inputData, Uint8List? inputData,
String? withIpAddress, String? withIpAddress,
bool? withCustomDns}) => bool? withCustomDns,
RustLib.instance.api.crateApiHttpApiFetch( }) => RustLib.instance.api.crateApiHttpApiFetch(
method: method, method: method,
url: url, url: url,
headers: headers, headers: headers,
inputData: inputData, inputData: inputData,
withIpAddress: withIpAddress, withIpAddress: withIpAddress,
withCustomDns: withCustomDns); withCustomDns: withCustomDns,
);
Future<List<String>> dnsLookupTxt({required String host}) => Future<List<String>> dnsLookupTxt({required String host}) =>
RustLib.instance.api.crateApiHttpApiDnsLookupTxt(host: host); RustLib.instance.api.crateApiHttpApiDnsLookupTxt(host: host);
@ -33,15 +34,4 @@ Future<List<String>> dnsLookupTxt({required String host}) =>
Future<List<String>> dnsLookupIps({required String host}) => Future<List<String>> dnsLookupIps({required String host}) =>
RustLib.instance.api.crateApiHttpApiDnsLookupIps(host: host); RustLib.instance.api.crateApiHttpApiDnsLookupIps(host: host);
enum MyMethod { enum MyMethod { options, gets, post, put, delete, head, trace, connect, patch }
options,
gets,
post,
put,
delete,
head,
trace,
connect,
patch,
;
}

View File

@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.10.0. // @generated by `flutter_rust_bridge`@ 2.11.1.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
@ -10,14 +10,15 @@ import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
// These types are ignored because they are neither used by any `pub` functions nor (for structs and enums) marked `#[frb(unignore)]`: `RsProcess` // These types are ignored because they are neither used by any `pub` functions nor (for structs and enums) marked `#[frb(unignore)]`: `RsProcess`
// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `clone` // These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `clone`
Stream<RsProcessStreamData> start( Stream<RsProcessStreamData> start({
{required String executable, required String executable,
required List<String> arguments, required List<String> arguments,
required String workingDirectory}) => required String workingDirectory,
RustLib.instance.api.crateApiRsProcessStart( }) => RustLib.instance.api.crateApiRsProcessStart(
executable: executable, executable: executable,
arguments: arguments, arguments: arguments,
workingDirectory: workingDirectory); workingDirectory: workingDirectory,
);
Future<void> write({required int rsPid, required String data}) => Future<void> write({required int rsPid, required String data}) =>
RustLib.instance.api.crateApiRsProcessWrite(rsPid: rsPid, data: data); RustLib.instance.api.crateApiRsProcessWrite(rsPid: rsPid, data: data);
@ -46,9 +47,4 @@ class RsProcessStreamData {
rsPid == other.rsPid; rsPid == other.rsPid;
} }
enum RsProcessStreamDataType { enum RsProcessStreamDataType { output, error, exit }
output,
error,
exit,
;
}

View File

@ -1,16 +1,24 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.10.0. // @generated by `flutter_rust_bridge`@ 2.11.1.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
import '../frb_generated.dart'; import '../frb_generated.dart';
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
Future<void> sendNotify( Future<void> sendNotify({
{String? summary, String? body, String? appName, String? appId}) => String? summary,
RustLib.instance.api.crateApiWin32ApiSendNotify( String? body,
summary: summary, body: body, appName: appName, appId: appId); String? appName,
String? appId,
}) => RustLib.instance.api.crateApiWin32ApiSendNotify(
summary: summary,
body: body,
appName: appName,
appId: appId,
);
Future<bool> setForegroundWindow({required String windowName}) => Future<bool> setForegroundWindow({required String windowName}) => RustLib
RustLib.instance.api .instance
.api
.crateApiWin32ApiSetForegroundWindow(windowName: windowName); .crateApiWin32ApiSetForegroundWindow(windowName: windowName);

View File

@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.10.0. // @generated by `flutter_rust_bridge`@ 2.11.1.
// ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field // ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field
@ -27,22 +27,20 @@ class RustLib extends BaseEntrypoint<RustLibApi, RustLibApiImpl, RustLibWire> {
RustLibApi? api, RustLibApi? api,
BaseHandler? handler, BaseHandler? handler,
ExternalLibrary? externalLibrary, ExternalLibrary? externalLibrary,
bool forceSameCodegenVersion = true,
}) async { }) async {
await instance.initImpl( await instance.initImpl(
api: api, api: api,
handler: handler, handler: handler,
externalLibrary: externalLibrary, externalLibrary: externalLibrary,
forceSameCodegenVersion: forceSameCodegenVersion,
); );
} }
/// Initialize flutter_rust_bridge in mock mode. /// Initialize flutter_rust_bridge in mock mode.
/// No libraries for FFI are loaded. /// No libraries for FFI are loaded.
static void initMock({ static void initMock({required RustLibApi api}) {
required RustLibApi api, instance.initMockImpl(api: api);
}) {
instance.initMockImpl(
api: api,
);
} }
/// Dispose flutter_rust_bridge /// Dispose flutter_rust_bridge
@ -67,7 +65,7 @@ class RustLib extends BaseEntrypoint<RustLibApi, RustLibApiImpl, RustLibWire> {
kDefaultExternalLibraryLoaderConfig; kDefaultExternalLibraryLoaderConfig;
@override @override
String get codegenVersion => '2.10.0'; String get codegenVersion => '2.11.1';
@override @override
int get rustContentHash => 1832496273; int get rustContentHash => 1832496273;
@ -85,36 +83,49 @@ abstract class RustLibApi extends BaseApi {
Future<List<String>> crateApiHttpApiDnsLookupTxt({required String host}); Future<List<String>> crateApiHttpApiDnsLookupTxt({required String host});
Future<RustHttpResponse> crateApiHttpApiFetch( Future<RustHttpResponse> crateApiHttpApiFetch({
{required MyMethod method, required MyMethod method,
required String url, required String url,
Map<String, String>? headers, Map<String, String>? headers,
Uint8List? inputData, Uint8List? inputData,
String? withIpAddress, String? withIpAddress,
bool? withCustomDns}); bool? withCustomDns,
});
Future<RsiLauncherAsarData> crateApiAsarApiGetRsiLauncherAsarData( Future<RsiLauncherAsarData> crateApiAsarApiGetRsiLauncherAsarData({
{required String asarPath}); required String asarPath,
});
Future<void> crateApiAsarApiRsiLauncherAsarDataWriteMainJs( Future<void> crateApiAsarApiRsiLauncherAsarDataWriteMainJs({
{required RsiLauncherAsarData that, required List<int> content}); required RsiLauncherAsarData that,
required List<int> content,
});
Future<void> crateApiWin32ApiSendNotify( Future<void> crateApiWin32ApiSendNotify({
{String? summary, String? body, String? appName, String? appId}); String? summary,
String? body,
String? appName,
String? appId,
});
Future<void> crateApiHttpApiSetDefaultHeader( Future<void> crateApiHttpApiSetDefaultHeader({
{required Map<String, String> headers}); required Map<String, String> headers,
});
Future<bool> crateApiWin32ApiSetForegroundWindow( Future<bool> crateApiWin32ApiSetForegroundWindow({
{required String windowName}); required String windowName,
});
Stream<RsProcessStreamData> crateApiRsProcessStart( Stream<RsProcessStreamData> crateApiRsProcessStart({
{required String executable, required String executable,
required List<String> arguments, required List<String> arguments,
required String workingDirectory}); required String workingDirectory,
});
Future<void> crateApiRsProcessWrite( Future<void> crateApiRsProcessWrite({
{required int rsPid, required String data}); required int rsPid,
required String data,
});
} }
class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@ -127,7 +138,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@override @override
Future<List<String>> crateApiHttpApiDnsLookupIps({required String host}) { Future<List<String>> crateApiHttpApiDnsLookupIps({required String host}) {
return handler.executeNormal(NormalTask( return handler.executeNormal(
NormalTask(
callFfi: (port_) { callFfi: (port_) {
var arg0 = cst_encode_String(host); var arg0 = cst_encode_String(host);
return wire.wire__crate__api__http_api__dns_lookup_ips(port_, arg0); return wire.wire__crate__api__http_api__dns_lookup_ips(port_, arg0);
@ -139,18 +151,17 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
constMeta: kCrateApiHttpApiDnsLookupIpsConstMeta, constMeta: kCrateApiHttpApiDnsLookupIpsConstMeta,
argValues: [host], argValues: [host],
apiImpl: this, apiImpl: this,
)); ),
);
} }
TaskConstMeta get kCrateApiHttpApiDnsLookupIpsConstMeta => TaskConstMeta get kCrateApiHttpApiDnsLookupIpsConstMeta =>
const TaskConstMeta( const TaskConstMeta(debugName: "dns_lookup_ips", argNames: ["host"]);
debugName: "dns_lookup_ips",
argNames: ["host"],
);
@override @override
Future<List<String>> crateApiHttpApiDnsLookupTxt({required String host}) { Future<List<String>> crateApiHttpApiDnsLookupTxt({required String host}) {
return handler.executeNormal(NormalTask( return handler.executeNormal(
NormalTask(
callFfi: (port_) { callFfi: (port_) {
var arg0 = cst_encode_String(host); var arg0 = cst_encode_String(host);
return wire.wire__crate__api__http_api__dns_lookup_txt(port_, arg0); return wire.wire__crate__api__http_api__dns_lookup_txt(port_, arg0);
@ -162,24 +173,24 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
constMeta: kCrateApiHttpApiDnsLookupTxtConstMeta, constMeta: kCrateApiHttpApiDnsLookupTxtConstMeta,
argValues: [host], argValues: [host],
apiImpl: this, apiImpl: this,
)); ),
);
} }
TaskConstMeta get kCrateApiHttpApiDnsLookupTxtConstMeta => TaskConstMeta get kCrateApiHttpApiDnsLookupTxtConstMeta =>
const TaskConstMeta( const TaskConstMeta(debugName: "dns_lookup_txt", argNames: ["host"]);
debugName: "dns_lookup_txt",
argNames: ["host"],
);
@override @override
Future<RustHttpResponse> crateApiHttpApiFetch( Future<RustHttpResponse> crateApiHttpApiFetch({
{required MyMethod method, required MyMethod method,
required String url, required String url,
Map<String, String>? headers, Map<String, String>? headers,
Uint8List? inputData, Uint8List? inputData,
String? withIpAddress, String? withIpAddress,
bool? withCustomDns}) { bool? withCustomDns,
return handler.executeNormal(NormalTask( }) {
return handler.executeNormal(
NormalTask(
callFfi: (port_) { callFfi: (port_) {
var arg0 = cst_encode_my_method(method); var arg0 = cst_encode_my_method(method);
var arg1 = cst_encode_String(url); var arg1 = cst_encode_String(url);
@ -188,7 +199,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
var arg4 = cst_encode_opt_String(withIpAddress); var arg4 = cst_encode_opt_String(withIpAddress);
var arg5 = cst_encode_opt_box_autoadd_bool(withCustomDns); var arg5 = cst_encode_opt_box_autoadd_bool(withCustomDns);
return wire.wire__crate__api__http_api__fetch( return wire.wire__crate__api__http_api__fetch(
port_, arg0, arg1, arg2, arg3, arg4, arg5); port_,
arg0,
arg1,
arg2,
arg3,
arg4,
arg5,
);
}, },
codec: DcoCodec( codec: DcoCodec(
decodeSuccessData: dco_decode_rust_http_response, decodeSuccessData: dco_decode_rust_http_response,
@ -201,10 +219,11 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
headers, headers,
inputData, inputData,
withIpAddress, withIpAddress,
withCustomDns withCustomDns,
], ],
apiImpl: this, apiImpl: this,
)); ),
);
} }
TaskConstMeta get kCrateApiHttpApiFetchConstMeta => const TaskConstMeta( TaskConstMeta get kCrateApiHttpApiFetchConstMeta => const TaskConstMeta(
@ -215,18 +234,22 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
"headers", "headers",
"inputData", "inputData",
"withIpAddress", "withIpAddress",
"withCustomDns" "withCustomDns",
], ],
); );
@override @override
Future<RsiLauncherAsarData> crateApiAsarApiGetRsiLauncherAsarData( Future<RsiLauncherAsarData> crateApiAsarApiGetRsiLauncherAsarData({
{required String asarPath}) { required String asarPath,
return handler.executeNormal(NormalTask( }) {
return handler.executeNormal(
NormalTask(
callFfi: (port_) { callFfi: (port_) {
var arg0 = cst_encode_String(asarPath); var arg0 = cst_encode_String(asarPath);
return wire.wire__crate__api__asar_api__get_rsi_launcher_asar_data( return wire.wire__crate__api__asar_api__get_rsi_launcher_asar_data(
port_, arg0); port_,
arg0,
);
}, },
codec: DcoCodec( codec: DcoCodec(
decodeSuccessData: dco_decode_rsi_launcher_asar_data, decodeSuccessData: dco_decode_rsi_launcher_asar_data,
@ -235,7 +258,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
constMeta: kCrateApiAsarApiGetRsiLauncherAsarDataConstMeta, constMeta: kCrateApiAsarApiGetRsiLauncherAsarDataConstMeta,
argValues: [asarPath], argValues: [asarPath],
apiImpl: this, apiImpl: this,
)); ),
);
} }
TaskConstMeta get kCrateApiAsarApiGetRsiLauncherAsarDataConstMeta => TaskConstMeta get kCrateApiAsarApiGetRsiLauncherAsarDataConstMeta =>
@ -245,15 +269,21 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
); );
@override @override
Future<void> crateApiAsarApiRsiLauncherAsarDataWriteMainJs( Future<void> crateApiAsarApiRsiLauncherAsarDataWriteMainJs({
{required RsiLauncherAsarData that, required List<int> content}) { required RsiLauncherAsarData that,
return handler.executeNormal(NormalTask( required List<int> content,
}) {
return handler.executeNormal(
NormalTask(
callFfi: (port_) { callFfi: (port_) {
var arg0 = cst_encode_box_autoadd_rsi_launcher_asar_data(that); var arg0 = cst_encode_box_autoadd_rsi_launcher_asar_data(that);
var arg1 = cst_encode_list_prim_u_8_loose(content); var arg1 = cst_encode_list_prim_u_8_loose(content);
return wire return wire
.wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js( .wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js(
port_, arg0, arg1); port_,
arg0,
arg1,
);
}, },
codec: DcoCodec( codec: DcoCodec(
decodeSuccessData: dco_decode_unit, decodeSuccessData: dco_decode_unit,
@ -262,7 +292,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
constMeta: kCrateApiAsarApiRsiLauncherAsarDataWriteMainJsConstMeta, constMeta: kCrateApiAsarApiRsiLauncherAsarDataWriteMainJsConstMeta,
argValues: [that, content], argValues: [that, content],
apiImpl: this, apiImpl: this,
)); ),
);
} }
TaskConstMeta get kCrateApiAsarApiRsiLauncherAsarDataWriteMainJsConstMeta => TaskConstMeta get kCrateApiAsarApiRsiLauncherAsarDataWriteMainJsConstMeta =>
@ -272,16 +303,26 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
); );
@override @override
Future<void> crateApiWin32ApiSendNotify( Future<void> crateApiWin32ApiSendNotify({
{String? summary, String? body, String? appName, String? appId}) { String? summary,
return handler.executeNormal(NormalTask( String? body,
String? appName,
String? appId,
}) {
return handler.executeNormal(
NormalTask(
callFfi: (port_) { callFfi: (port_) {
var arg0 = cst_encode_opt_String(summary); var arg0 = cst_encode_opt_String(summary);
var arg1 = cst_encode_opt_String(body); var arg1 = cst_encode_opt_String(body);
var arg2 = cst_encode_opt_String(appName); var arg2 = cst_encode_opt_String(appName);
var arg3 = cst_encode_opt_String(appId); var arg3 = cst_encode_opt_String(appId);
return wire.wire__crate__api__win32_api__send_notify( return wire.wire__crate__api__win32_api__send_notify(
port_, arg0, arg1, arg2, arg3); port_,
arg0,
arg1,
arg2,
arg3,
);
}, },
codec: DcoCodec( codec: DcoCodec(
decodeSuccessData: dco_decode_unit, decodeSuccessData: dco_decode_unit,
@ -290,7 +331,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
constMeta: kCrateApiWin32ApiSendNotifyConstMeta, constMeta: kCrateApiWin32ApiSendNotifyConstMeta,
argValues: [summary, body, appName, appId], argValues: [summary, body, appName, appId],
apiImpl: this, apiImpl: this,
)); ),
);
} }
TaskConstMeta get kCrateApiWin32ApiSendNotifyConstMeta => const TaskConstMeta( TaskConstMeta get kCrateApiWin32ApiSendNotifyConstMeta => const TaskConstMeta(
@ -299,12 +341,17 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
); );
@override @override
Future<void> crateApiHttpApiSetDefaultHeader( Future<void> crateApiHttpApiSetDefaultHeader({
{required Map<String, String> headers}) { required Map<String, String> headers,
return handler.executeNormal(NormalTask( }) {
return handler.executeNormal(
NormalTask(
callFfi: (port_) { callFfi: (port_) {
var arg0 = cst_encode_Map_String_String_None(headers); var arg0 = cst_encode_Map_String_String_None(headers);
return wire.wire__crate__api__http_api__set_default_header(port_, arg0); return wire.wire__crate__api__http_api__set_default_header(
port_,
arg0,
);
}, },
codec: DcoCodec( codec: DcoCodec(
decodeSuccessData: dco_decode_unit, decodeSuccessData: dco_decode_unit,
@ -313,7 +360,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
constMeta: kCrateApiHttpApiSetDefaultHeaderConstMeta, constMeta: kCrateApiHttpApiSetDefaultHeaderConstMeta,
argValues: [headers], argValues: [headers],
apiImpl: this, apiImpl: this,
)); ),
);
} }
TaskConstMeta get kCrateApiHttpApiSetDefaultHeaderConstMeta => TaskConstMeta get kCrateApiHttpApiSetDefaultHeaderConstMeta =>
@ -323,13 +371,17 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
); );
@override @override
Future<bool> crateApiWin32ApiSetForegroundWindow( Future<bool> crateApiWin32ApiSetForegroundWindow({
{required String windowName}) { required String windowName,
return handler.executeNormal(NormalTask( }) {
return handler.executeNormal(
NormalTask(
callFfi: (port_) { callFfi: (port_) {
var arg0 = cst_encode_String(windowName); var arg0 = cst_encode_String(windowName);
return wire.wire__crate__api__win32_api__set_foreground_window( return wire.wire__crate__api__win32_api__set_foreground_window(
port_, arg0); port_,
arg0,
);
}, },
codec: DcoCodec( codec: DcoCodec(
decodeSuccessData: dco_decode_bool, decodeSuccessData: dco_decode_bool,
@ -338,7 +390,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
constMeta: kCrateApiWin32ApiSetForegroundWindowConstMeta, constMeta: kCrateApiWin32ApiSetForegroundWindowConstMeta,
argValues: [windowName], argValues: [windowName],
apiImpl: this, apiImpl: this,
)); ),
);
} }
TaskConstMeta get kCrateApiWin32ApiSetForegroundWindowConstMeta => TaskConstMeta get kCrateApiWin32ApiSetForegroundWindowConstMeta =>
@ -348,19 +401,29 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
); );
@override @override
Stream<RsProcessStreamData> crateApiRsProcessStart( Stream<RsProcessStreamData> crateApiRsProcessStart({
{required String executable, required String executable,
required List<String> arguments, required List<String> arguments,
required String workingDirectory}) { required String workingDirectory,
}) {
final streamSink = RustStreamSink<RsProcessStreamData>(); final streamSink = RustStreamSink<RsProcessStreamData>();
unawaited(handler.executeNormal(NormalTask( unawaited(
handler.executeNormal(
NormalTask(
callFfi: (port_) { callFfi: (port_) {
var arg0 = cst_encode_String(executable); var arg0 = cst_encode_String(executable);
var arg1 = cst_encode_list_String(arguments); var arg1 = cst_encode_list_String(arguments);
var arg2 = cst_encode_String(workingDirectory); var arg2 = cst_encode_String(workingDirectory);
var arg3 = cst_encode_StreamSink_rs_process_stream_data_Dco(streamSink); var arg3 = cst_encode_StreamSink_rs_process_stream_data_Dco(
streamSink,
);
return wire.wire__crate__api__rs_process__start( return wire.wire__crate__api__rs_process__start(
port_, arg0, arg1, arg2, arg3); port_,
arg0,
arg1,
arg2,
arg3,
);
}, },
codec: DcoCodec( codec: DcoCodec(
decodeSuccessData: dco_decode_unit, decodeSuccessData: dco_decode_unit,
@ -369,7 +432,9 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
constMeta: kCrateApiRsProcessStartConstMeta, constMeta: kCrateApiRsProcessStartConstMeta,
argValues: [executable, arguments, workingDirectory, streamSink], argValues: [executable, arguments, workingDirectory, streamSink],
apiImpl: this, apiImpl: this,
))); ),
),
);
return streamSink.stream; return streamSink.stream;
} }
@ -379,9 +444,12 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
); );
@override @override
Future<void> crateApiRsProcessWrite( Future<void> crateApiRsProcessWrite({
{required int rsPid, required String data}) { required int rsPid,
return handler.executeNormal(NormalTask( required String data,
}) {
return handler.executeNormal(
NormalTask(
callFfi: (port_) { callFfi: (port_) {
var arg0 = cst_encode_u_32(rsPid); var arg0 = cst_encode_u_32(rsPid);
var arg1 = cst_encode_String(data); var arg1 = cst_encode_String(data);
@ -394,13 +462,12 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
constMeta: kCrateApiRsProcessWriteConstMeta, constMeta: kCrateApiRsProcessWriteConstMeta,
argValues: [rsPid, data], argValues: [rsPid, data],
apiImpl: this, apiImpl: this,
)); ),
);
} }
TaskConstMeta get kCrateApiRsProcessWriteConstMeta => const TaskConstMeta( TaskConstMeta get kCrateApiRsProcessWriteConstMeta =>
debugName: "write", const TaskConstMeta(debugName: "write", argNames: ["rsPid", "data"]);
argNames: ["rsPid", "data"],
);
@protected @protected
AnyhowException dco_decode_AnyhowException(dynamic raw) { AnyhowException dco_decode_AnyhowException(dynamic raw) {
@ -411,8 +478,11 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@protected @protected
Map<String, String> dco_decode_Map_String_String_None(dynamic raw) { Map<String, String> dco_decode_Map_String_String_None(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs // Codec=Dco (DartCObject based), see doc to use other codecs
return Map.fromEntries(dco_decode_list_record_string_string(raw) return Map.fromEntries(
.map((e) => MapEntry(e.$1, e.$2))); dco_decode_list_record_string_string(
raw,
).map((e) => MapEntry(e.$1, e.$2)),
);
} }
@protected @protected
@ -442,7 +512,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@protected @protected
RsiLauncherAsarData dco_decode_box_autoadd_rsi_launcher_asar_data( RsiLauncherAsarData dco_decode_box_autoadd_rsi_launcher_asar_data(
dynamic raw) { dynamic raw,
) {
// Codec=Dco (DartCObject based), see doc to use other codecs // Codec=Dco (DartCObject based), see doc to use other codecs
return dco_decode_rsi_launcher_asar_data(raw); return dco_decode_rsi_launcher_asar_data(raw);
} }
@ -532,10 +603,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
if (arr.length != 2) { if (arr.length != 2) {
throw Exception('Expected 2 elements, got ${arr.length}'); throw Exception('Expected 2 elements, got ${arr.length}');
} }
return ( return (dco_decode_String(arr[0]), dco_decode_String(arr[1]));
dco_decode_String(arr[0]),
dco_decode_String(arr[1]),
);
} }
@protected @protected
@ -626,7 +694,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@protected @protected
Map<String, String> sse_decode_Map_String_String_None( Map<String, String> sse_decode_Map_String_String_None(
SseDeserializer deserializer) { SseDeserializer deserializer,
) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
var inner = sse_decode_list_record_string_string(deserializer); var inner = sse_decode_list_record_string_string(deserializer);
return Map.fromEntries(inner.map((e) => MapEntry(e.$1, e.$2))); return Map.fromEntries(inner.map((e) => MapEntry(e.$1, e.$2)));
@ -635,7 +704,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@protected @protected
RustStreamSink<RsProcessStreamData> RustStreamSink<RsProcessStreamData>
sse_decode_StreamSink_rs_process_stream_data_Dco( sse_decode_StreamSink_rs_process_stream_data_Dco(
SseDeserializer deserializer) { SseDeserializer deserializer,
) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
throw UnimplementedError('Unreachable ()'); throw UnimplementedError('Unreachable ()');
} }
@ -661,7 +731,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@protected @protected
RsiLauncherAsarData sse_decode_box_autoadd_rsi_launcher_asar_data( RsiLauncherAsarData sse_decode_box_autoadd_rsi_launcher_asar_data(
SseDeserializer deserializer) { SseDeserializer deserializer,
) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
return (sse_decode_rsi_launcher_asar_data(deserializer)); return (sse_decode_rsi_launcher_asar_data(deserializer));
} }
@ -706,7 +777,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@protected @protected
List<(String, String)> sse_decode_list_record_string_string( List<(String, String)> sse_decode_list_record_string_string(
SseDeserializer deserializer) { SseDeserializer deserializer,
) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
var len_ = sse_decode_i_32(deserializer); var len_ = sse_decode_i_32(deserializer);
@ -733,7 +805,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@protected @protected
Map<String, String>? sse_decode_opt_Map_String_String_None( Map<String, String>? sse_decode_opt_Map_String_String_None(
SseDeserializer deserializer) { SseDeserializer deserializer,
) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
if (sse_decode_bool(deserializer)) { if (sse_decode_bool(deserializer)) {
@ -789,7 +862,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@protected @protected
(String, String) sse_decode_record_string_string( (String, String) sse_decode_record_string_string(
SseDeserializer deserializer) { SseDeserializer deserializer,
) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
var var_field0 = sse_decode_String(deserializer); var var_field0 = sse_decode_String(deserializer);
var var_field1 = sse_decode_String(deserializer); var var_field1 = sse_decode_String(deserializer);
@ -798,18 +872,23 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@protected @protected
RsProcessStreamData sse_decode_rs_process_stream_data( RsProcessStreamData sse_decode_rs_process_stream_data(
SseDeserializer deserializer) { SseDeserializer deserializer,
) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
var var_dataType = sse_decode_rs_process_stream_data_type(deserializer); var var_dataType = sse_decode_rs_process_stream_data_type(deserializer);
var var_data = sse_decode_String(deserializer); var var_data = sse_decode_String(deserializer);
var var_rsPid = sse_decode_u_32(deserializer); var var_rsPid = sse_decode_u_32(deserializer);
return RsProcessStreamData( return RsProcessStreamData(
dataType: var_dataType, data: var_data, rsPid: var_rsPid); dataType: var_dataType,
data: var_data,
rsPid: var_rsPid,
);
} }
@protected @protected
RsProcessStreamDataType sse_decode_rs_process_stream_data_type( RsProcessStreamDataType sse_decode_rs_process_stream_data_type(
SseDeserializer deserializer) { SseDeserializer deserializer,
) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
var inner = sse_decode_i_32(deserializer); var inner = sse_decode_i_32(deserializer);
return RsProcessStreamDataType.values[inner]; return RsProcessStreamDataType.values[inner];
@ -817,7 +896,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@protected @protected
RsiLauncherAsarData sse_decode_rsi_launcher_asar_data( RsiLauncherAsarData sse_decode_rsi_launcher_asar_data(
SseDeserializer deserializer) { SseDeserializer deserializer,
) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
var var_asarPath = sse_decode_String(deserializer); var var_asarPath = sse_decode_String(deserializer);
var var_mainJsPath = sse_decode_String(deserializer); var var_mainJsPath = sse_decode_String(deserializer);
@ -825,7 +905,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
return RsiLauncherAsarData( return RsiLauncherAsarData(
asarPath: var_asarPath, asarPath: var_asarPath,
mainJsPath: var_mainJsPath, mainJsPath: var_mainJsPath,
mainJsContent: var_mainJsContent); mainJsContent: var_mainJsContent,
);
} }
@protected @protected
@ -845,7 +926,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
contentLength: var_contentLength, contentLength: var_contentLength,
version: var_version, version: var_version,
remoteAddr: var_remoteAddr, remoteAddr: var_remoteAddr,
data: var_data); data: var_data,
);
} }
@protected @protected
@ -933,30 +1015,40 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@protected @protected
void sse_encode_AnyhowException( void sse_encode_AnyhowException(
AnyhowException self, SseSerializer serializer) { AnyhowException self,
SseSerializer serializer,
) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_String(self.message, serializer); sse_encode_String(self.message, serializer);
} }
@protected @protected
void sse_encode_Map_String_String_None( void sse_encode_Map_String_String_None(
Map<String, String> self, SseSerializer serializer) { Map<String, String> self,
SseSerializer serializer,
) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_list_record_string_string( sse_encode_list_record_string_string(
self.entries.map((e) => (e.key, e.value)).toList(), serializer); self.entries.map((e) => (e.key, e.value)).toList(),
serializer,
);
} }
@protected @protected
void sse_encode_StreamSink_rs_process_stream_data_Dco( void sse_encode_StreamSink_rs_process_stream_data_Dco(
RustStreamSink<RsProcessStreamData> self, SseSerializer serializer) { RustStreamSink<RsProcessStreamData> self,
SseSerializer serializer,
) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_String( sse_encode_String(
self.setupAndSerialize( self.setupAndSerialize(
codec: DcoCodec( codec: DcoCodec(
decodeSuccessData: dco_decode_rs_process_stream_data, decodeSuccessData: dco_decode_rs_process_stream_data,
decodeErrorData: dco_decode_AnyhowException, decodeErrorData: dco_decode_AnyhowException,
)), ),
serializer); ),
serializer,
);
} }
@protected @protected
@ -979,7 +1071,9 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@protected @protected
void sse_encode_box_autoadd_rsi_launcher_asar_data( void sse_encode_box_autoadd_rsi_launcher_asar_data(
RsiLauncherAsarData self, SseSerializer serializer) { RsiLauncherAsarData self,
SseSerializer serializer,
) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_rsi_launcher_asar_data(self, serializer); sse_encode_rsi_launcher_asar_data(self, serializer);
} }
@ -1007,16 +1101,21 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@protected @protected
void sse_encode_list_prim_u_8_loose( void sse_encode_list_prim_u_8_loose(
List<int> self, SseSerializer serializer) { List<int> self,
SseSerializer serializer,
) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_i_32(self.length, serializer); sse_encode_i_32(self.length, serializer);
serializer.buffer serializer.buffer.putUint8List(
.putUint8List(self is Uint8List ? self : Uint8List.fromList(self)); self is Uint8List ? self : Uint8List.fromList(self),
);
} }
@protected @protected
void sse_encode_list_prim_u_8_strict( void sse_encode_list_prim_u_8_strict(
Uint8List self, SseSerializer serializer) { Uint8List self,
SseSerializer serializer,
) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_i_32(self.length, serializer); sse_encode_i_32(self.length, serializer);
serializer.buffer.putUint8List(self); serializer.buffer.putUint8List(self);
@ -1024,7 +1123,9 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@protected @protected
void sse_encode_list_record_string_string( void sse_encode_list_record_string_string(
List<(String, String)> self, SseSerializer serializer) { List<(String, String)> self,
SseSerializer serializer,
) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_i_32(self.length, serializer); sse_encode_i_32(self.length, serializer);
for (final item in self) { for (final item in self) {
@ -1034,7 +1135,9 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@protected @protected
void sse_encode_my_http_version( void sse_encode_my_http_version(
MyHttpVersion self, SseSerializer serializer) { MyHttpVersion self,
SseSerializer serializer,
) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_i_32(self.index, serializer); sse_encode_i_32(self.index, serializer);
} }
@ -1047,7 +1150,9 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@protected @protected
void sse_encode_opt_Map_String_String_None( void sse_encode_opt_Map_String_String_None(
Map<String, String>? self, SseSerializer serializer) { Map<String, String>? self,
SseSerializer serializer,
) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_bool(self != null, serializer); sse_encode_bool(self != null, serializer);
@ -1088,7 +1193,9 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@protected @protected
void sse_encode_opt_list_prim_u_8_strict( void sse_encode_opt_list_prim_u_8_strict(
Uint8List? self, SseSerializer serializer) { Uint8List? self,
SseSerializer serializer,
) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_bool(self != null, serializer); sse_encode_bool(self != null, serializer);
@ -1099,7 +1206,9 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@protected @protected
void sse_encode_record_string_string( void sse_encode_record_string_string(
(String, String) self, SseSerializer serializer) { (String, String) self,
SseSerializer serializer,
) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_String(self.$1, serializer); sse_encode_String(self.$1, serializer);
sse_encode_String(self.$2, serializer); sse_encode_String(self.$2, serializer);
@ -1107,7 +1216,9 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@protected @protected
void sse_encode_rs_process_stream_data( void sse_encode_rs_process_stream_data(
RsProcessStreamData self, SseSerializer serializer) { RsProcessStreamData self,
SseSerializer serializer,
) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_rs_process_stream_data_type(self.dataType, serializer); sse_encode_rs_process_stream_data_type(self.dataType, serializer);
sse_encode_String(self.data, serializer); sse_encode_String(self.data, serializer);
@ -1116,14 +1227,18 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@protected @protected
void sse_encode_rs_process_stream_data_type( void sse_encode_rs_process_stream_data_type(
RsProcessStreamDataType self, SseSerializer serializer) { RsProcessStreamDataType self,
SseSerializer serializer,
) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_i_32(self.index, serializer); sse_encode_i_32(self.index, serializer);
} }
@protected @protected
void sse_encode_rsi_launcher_asar_data( void sse_encode_rsi_launcher_asar_data(
RsiLauncherAsarData self, SseSerializer serializer) { RsiLauncherAsarData self,
SseSerializer serializer,
) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_String(self.asarPath, serializer); sse_encode_String(self.asarPath, serializer);
sse_encode_String(self.mainJsPath, serializer); sse_encode_String(self.mainJsPath, serializer);
@ -1132,7 +1247,9 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@protected @protected
void sse_encode_rust_http_response( void sse_encode_rust_http_response(
RustHttpResponse self, SseSerializer serializer) { RustHttpResponse self,
SseSerializer serializer,
) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_u_16(self.statusCode, serializer); sse_encode_u_16(self.statusCode, serializer);
sse_encode_Map_String_String_None(self.headers, serializer); sse_encode_Map_String_String_None(self.headers, serializer);

View File

@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.10.0. // @generated by `flutter_rust_bridge`@ 2.11.1.
// ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field // ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field
@ -43,7 +43,8 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected @protected
RsiLauncherAsarData dco_decode_box_autoadd_rsi_launcher_asar_data( RsiLauncherAsarData dco_decode_box_autoadd_rsi_launcher_asar_data(
dynamic raw); dynamic raw,
);
@protected @protected
BigInt dco_decode_box_autoadd_u_64(dynamic raw); BigInt dco_decode_box_autoadd_u_64(dynamic raw);
@ -119,12 +120,14 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected @protected
Map<String, String> sse_decode_Map_String_String_None( Map<String, String> sse_decode_Map_String_String_None(
SseDeserializer deserializer); SseDeserializer deserializer,
);
@protected @protected
RustStreamSink<RsProcessStreamData> RustStreamSink<RsProcessStreamData>
sse_decode_StreamSink_rs_process_stream_data_Dco( sse_decode_StreamSink_rs_process_stream_data_Dco(
SseDeserializer deserializer); SseDeserializer deserializer,
);
@protected @protected
String sse_decode_String(SseDeserializer deserializer); String sse_decode_String(SseDeserializer deserializer);
@ -137,7 +140,8 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected @protected
RsiLauncherAsarData sse_decode_box_autoadd_rsi_launcher_asar_data( RsiLauncherAsarData sse_decode_box_autoadd_rsi_launcher_asar_data(
SseDeserializer deserializer); SseDeserializer deserializer,
);
@protected @protected
BigInt sse_decode_box_autoadd_u_64(SseDeserializer deserializer); BigInt sse_decode_box_autoadd_u_64(SseDeserializer deserializer);
@ -156,7 +160,8 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected @protected
List<(String, String)> sse_decode_list_record_string_string( List<(String, String)> sse_decode_list_record_string_string(
SseDeserializer deserializer); SseDeserializer deserializer,
);
@protected @protected
MyHttpVersion sse_decode_my_http_version(SseDeserializer deserializer); MyHttpVersion sse_decode_my_http_version(SseDeserializer deserializer);
@ -166,7 +171,8 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected @protected
Map<String, String>? sse_decode_opt_Map_String_String_None( Map<String, String>? sse_decode_opt_Map_String_String_None(
SseDeserializer deserializer); SseDeserializer deserializer,
);
@protected @protected
String? sse_decode_opt_String(SseDeserializer deserializer); String? sse_decode_opt_String(SseDeserializer deserializer);
@ -182,19 +188,23 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected @protected
(String, String) sse_decode_record_string_string( (String, String) sse_decode_record_string_string(
SseDeserializer deserializer); SseDeserializer deserializer,
);
@protected @protected
RsProcessStreamData sse_decode_rs_process_stream_data( RsProcessStreamData sse_decode_rs_process_stream_data(
SseDeserializer deserializer); SseDeserializer deserializer,
);
@protected @protected
RsProcessStreamDataType sse_decode_rs_process_stream_data_type( RsProcessStreamDataType sse_decode_rs_process_stream_data_type(
SseDeserializer deserializer); SseDeserializer deserializer,
);
@protected @protected
RsiLauncherAsarData sse_decode_rsi_launcher_asar_data( RsiLauncherAsarData sse_decode_rsi_launcher_asar_data(
SseDeserializer deserializer); SseDeserializer deserializer,
);
@protected @protected
RustHttpResponse sse_decode_rust_http_response(SseDeserializer deserializer); RustHttpResponse sse_decode_rust_http_response(SseDeserializer deserializer);
@ -216,7 +226,8 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected @protected
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_AnyhowException( ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_AnyhowException(
AnyhowException raw) { AnyhowException raw,
) {
// Codec=Cst (C-struct based), see doc to use other codecs // Codec=Cst (C-struct based), see doc to use other codecs
throw UnimplementedError(); throw UnimplementedError();
} }
@ -226,19 +237,24 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
cst_encode_Map_String_String_None(Map<String, String> raw) { cst_encode_Map_String_String_None(Map<String, String> raw) {
// Codec=Cst (C-struct based), see doc to use other codecs // Codec=Cst (C-struct based), see doc to use other codecs
return cst_encode_list_record_string_string( return cst_encode_list_record_string_string(
raw.entries.map((e) => (e.key, e.value)).toList()); raw.entries.map((e) => (e.key, e.value)).toList(),
);
} }
@protected @protected
ffi.Pointer<wire_cst_list_prim_u_8_strict> ffi.Pointer<wire_cst_list_prim_u_8_strict>
cst_encode_StreamSink_rs_process_stream_data_Dco( cst_encode_StreamSink_rs_process_stream_data_Dco(
RustStreamSink<RsProcessStreamData> raw) { RustStreamSink<RsProcessStreamData> raw,
) {
// Codec=Cst (C-struct based), see doc to use other codecs // Codec=Cst (C-struct based), see doc to use other codecs
return cst_encode_String(raw.setupAndSerialize( return cst_encode_String(
raw.setupAndSerialize(
codec: DcoCodec( codec: DcoCodec(
decodeSuccessData: dco_decode_rs_process_stream_data, decodeSuccessData: dco_decode_rs_process_stream_data,
decodeErrorData: dco_decode_AnyhowException, decodeErrorData: dco_decode_AnyhowException,
))); ),
),
);
} }
@protected @protected
@ -280,7 +296,8 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected @protected
ffi.Pointer<wire_cst_list_prim_u_8_loose> cst_encode_list_prim_u_8_loose( ffi.Pointer<wire_cst_list_prim_u_8_loose> cst_encode_list_prim_u_8_loose(
List<int> raw) { List<int> raw,
) {
// Codec=Cst (C-struct based), see doc to use other codecs // Codec=Cst (C-struct based), see doc to use other codecs
final ans = wire.cst_new_list_prim_u_8_loose(raw.length); final ans = wire.cst_new_list_prim_u_8_loose(raw.length);
ans.ref.ptr.asTypedList(raw.length).setAll(0, raw); ans.ref.ptr.asTypedList(raw.length).setAll(0, raw);
@ -289,7 +306,8 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected @protected
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_list_prim_u_8_strict( ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_list_prim_u_8_strict(
Uint8List raw) { Uint8List raw,
) {
// Codec=Cst (C-struct based), see doc to use other codecs // Codec=Cst (C-struct based), see doc to use other codecs
final ans = wire.cst_new_list_prim_u_8_strict(raw.length); final ans = wire.cst_new_list_prim_u_8_strict(raw.length);
ans.ref.ptr.asTypedList(raw.length).setAll(0, raw); ans.ref.ptr.asTypedList(raw.length).setAll(0, raw);
@ -316,7 +334,8 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected @protected
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_opt_String( ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_opt_String(
String? raw) { String? raw,
) {
// Codec=Cst (C-struct based), see doc to use other codecs // Codec=Cst (C-struct based), see doc to use other codecs
return raw == null ? ffi.nullptr : cst_encode_String(raw); return raw == null ? ffi.nullptr : cst_encode_String(raw);
} }
@ -349,20 +368,25 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected @protected
void cst_api_fill_to_wire_box_autoadd_rsi_launcher_asar_data( void cst_api_fill_to_wire_box_autoadd_rsi_launcher_asar_data(
RsiLauncherAsarData apiObj, RsiLauncherAsarData apiObj,
ffi.Pointer<wire_cst_rsi_launcher_asar_data> wireObj) { ffi.Pointer<wire_cst_rsi_launcher_asar_data> wireObj,
) {
cst_api_fill_to_wire_rsi_launcher_asar_data(apiObj, wireObj.ref); cst_api_fill_to_wire_rsi_launcher_asar_data(apiObj, wireObj.ref);
} }
@protected @protected
void cst_api_fill_to_wire_record_string_string( void cst_api_fill_to_wire_record_string_string(
(String, String) apiObj, wire_cst_record_string_string wireObj) { (String, String) apiObj,
wire_cst_record_string_string wireObj,
) {
wireObj.field0 = cst_encode_String(apiObj.$1); wireObj.field0 = cst_encode_String(apiObj.$1);
wireObj.field1 = cst_encode_String(apiObj.$2); wireObj.field1 = cst_encode_String(apiObj.$2);
} }
@protected @protected
void cst_api_fill_to_wire_rs_process_stream_data( void cst_api_fill_to_wire_rs_process_stream_data(
RsProcessStreamData apiObj, wire_cst_rs_process_stream_data wireObj) { RsProcessStreamData apiObj,
wire_cst_rs_process_stream_data wireObj,
) {
wireObj.data_type = cst_encode_rs_process_stream_data_type(apiObj.dataType); wireObj.data_type = cst_encode_rs_process_stream_data_type(apiObj.dataType);
wireObj.data = cst_encode_String(apiObj.data); wireObj.data = cst_encode_String(apiObj.data);
wireObj.rs_pid = cst_encode_u_32(apiObj.rsPid); wireObj.rs_pid = cst_encode_u_32(apiObj.rsPid);
@ -370,21 +394,27 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected @protected
void cst_api_fill_to_wire_rsi_launcher_asar_data( void cst_api_fill_to_wire_rsi_launcher_asar_data(
RsiLauncherAsarData apiObj, wire_cst_rsi_launcher_asar_data wireObj) { RsiLauncherAsarData apiObj,
wire_cst_rsi_launcher_asar_data wireObj,
) {
wireObj.asar_path = cst_encode_String(apiObj.asarPath); wireObj.asar_path = cst_encode_String(apiObj.asarPath);
wireObj.main_js_path = cst_encode_String(apiObj.mainJsPath); wireObj.main_js_path = cst_encode_String(apiObj.mainJsPath);
wireObj.main_js_content = wireObj.main_js_content = cst_encode_list_prim_u_8_strict(
cst_encode_list_prim_u_8_strict(apiObj.mainJsContent); apiObj.mainJsContent,
);
} }
@protected @protected
void cst_api_fill_to_wire_rust_http_response( void cst_api_fill_to_wire_rust_http_response(
RustHttpResponse apiObj, wire_cst_rust_http_response wireObj) { RustHttpResponse apiObj,
wire_cst_rust_http_response wireObj,
) {
wireObj.status_code = cst_encode_u_16(apiObj.statusCode); wireObj.status_code = cst_encode_u_16(apiObj.statusCode);
wireObj.headers = cst_encode_Map_String_String_None(apiObj.headers); wireObj.headers = cst_encode_Map_String_String_None(apiObj.headers);
wireObj.url = cst_encode_String(apiObj.url); wireObj.url = cst_encode_String(apiObj.url);
wireObj.content_length = wireObj.content_length = cst_encode_opt_box_autoadd_u_64(
cst_encode_opt_box_autoadd_u_64(apiObj.contentLength); apiObj.contentLength,
);
wireObj.version = cst_encode_my_http_version(apiObj.version); wireObj.version = cst_encode_my_http_version(apiObj.version);
wireObj.remote_addr = cst_encode_String(apiObj.remoteAddr); wireObj.remote_addr = cst_encode_String(apiObj.remoteAddr);
wireObj.data = cst_encode_opt_list_prim_u_8_strict(apiObj.data); wireObj.data = cst_encode_opt_list_prim_u_8_strict(apiObj.data);
@ -419,15 +449,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected @protected
void sse_encode_AnyhowException( void sse_encode_AnyhowException(
AnyhowException self, SseSerializer serializer); AnyhowException self,
SseSerializer serializer,
);
@protected @protected
void sse_encode_Map_String_String_None( void sse_encode_Map_String_String_None(
Map<String, String> self, SseSerializer serializer); Map<String, String> self,
SseSerializer serializer,
);
@protected @protected
void sse_encode_StreamSink_rs_process_stream_data_Dco( void sse_encode_StreamSink_rs_process_stream_data_Dco(
RustStreamSink<RsProcessStreamData> self, SseSerializer serializer); RustStreamSink<RsProcessStreamData> self,
SseSerializer serializer,
);
@protected @protected
void sse_encode_String(String self, SseSerializer serializer); void sse_encode_String(String self, SseSerializer serializer);
@ -440,7 +476,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected @protected
void sse_encode_box_autoadd_rsi_launcher_asar_data( void sse_encode_box_autoadd_rsi_launcher_asar_data(
RsiLauncherAsarData self, SseSerializer serializer); RsiLauncherAsarData self,
SseSerializer serializer,
);
@protected @protected
void sse_encode_box_autoadd_u_64(BigInt self, SseSerializer serializer); void sse_encode_box_autoadd_u_64(BigInt self, SseSerializer serializer);
@ -456,11 +494,15 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected @protected
void sse_encode_list_prim_u_8_strict( void sse_encode_list_prim_u_8_strict(
Uint8List self, SseSerializer serializer); Uint8List self,
SseSerializer serializer,
);
@protected @protected
void sse_encode_list_record_string_string( void sse_encode_list_record_string_string(
List<(String, String)> self, SseSerializer serializer); List<(String, String)> self,
SseSerializer serializer,
);
@protected @protected
void sse_encode_my_http_version(MyHttpVersion self, SseSerializer serializer); void sse_encode_my_http_version(MyHttpVersion self, SseSerializer serializer);
@ -470,7 +512,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected @protected
void sse_encode_opt_Map_String_String_None( void sse_encode_opt_Map_String_String_None(
Map<String, String>? self, SseSerializer serializer); Map<String, String>? self,
SseSerializer serializer,
);
@protected @protected
void sse_encode_opt_String(String? self, SseSerializer serializer); void sse_encode_opt_String(String? self, SseSerializer serializer);
@ -483,27 +527,39 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected @protected
void sse_encode_opt_list_prim_u_8_strict( void sse_encode_opt_list_prim_u_8_strict(
Uint8List? self, SseSerializer serializer); Uint8List? self,
SseSerializer serializer,
);
@protected @protected
void sse_encode_record_string_string( void sse_encode_record_string_string(
(String, String) self, SseSerializer serializer); (String, String) self,
SseSerializer serializer,
);
@protected @protected
void sse_encode_rs_process_stream_data( void sse_encode_rs_process_stream_data(
RsProcessStreamData self, SseSerializer serializer); RsProcessStreamData self,
SseSerializer serializer,
);
@protected @protected
void sse_encode_rs_process_stream_data_type( void sse_encode_rs_process_stream_data_type(
RsProcessStreamDataType self, SseSerializer serializer); RsProcessStreamDataType self,
SseSerializer serializer,
);
@protected @protected
void sse_encode_rsi_launcher_asar_data( void sse_encode_rsi_launcher_asar_data(
RsiLauncherAsarData self, SseSerializer serializer); RsiLauncherAsarData self,
SseSerializer serializer,
);
@protected @protected
void sse_encode_rust_http_response( void sse_encode_rust_http_response(
RustHttpResponse self, SseSerializer serializer); RustHttpResponse self,
SseSerializer serializer,
);
@protected @protected
void sse_encode_u_16(int self, SseSerializer serializer); void sse_encode_u_16(int self, SseSerializer serializer);
@ -544,21 +600,17 @@ class RustLibWire implements BaseWire {
/// The symbols are looked up with [lookup]. /// The symbols are looked up with [lookup].
RustLibWire.fromLookup( RustLibWire.fromLookup(
ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName) ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName) lookup,
lookup) ) : _lookup = lookup;
: _lookup = lookup;
void store_dart_post_cobject( void store_dart_post_cobject(DartPostCObjectFnType ptr) {
DartPostCObjectFnType ptr, return _store_dart_post_cobject(ptr);
) {
return _store_dart_post_cobject(
ptr,
);
} }
late final _store_dart_post_cobjectPtr = late final _store_dart_post_cobjectPtr =
_lookup<ffi.NativeFunction<ffi.Void Function(DartPostCObjectFnType)>>( _lookup<ffi.NativeFunction<ffi.Void Function(DartPostCObjectFnType)>>(
'store_dart_post_cobject'); 'store_dart_post_cobject',
);
late final _store_dart_post_cobject = _store_dart_post_cobjectPtr late final _store_dart_post_cobject = _store_dart_post_cobjectPtr
.asFunction<void Function(DartPostCObjectFnType)>(); .asFunction<void Function(DartPostCObjectFnType)>();
@ -566,39 +618,45 @@ class RustLibWire implements BaseWire {
int port_, int port_,
ffi.Pointer<wire_cst_list_prim_u_8_strict> host, ffi.Pointer<wire_cst_list_prim_u_8_strict> host,
) { ) {
return _wire__crate__api__http_api__dns_lookup_ips( return _wire__crate__api__http_api__dns_lookup_ips(port_, host);
port_,
host,
);
} }
late final _wire__crate__api__http_api__dns_lookup_ipsPtr = _lookup< late final _wire__crate__api__http_api__dns_lookup_ipsPtr =
_lookup<
ffi.NativeFunction< ffi.NativeFunction<
ffi.Void Function( ffi.Void Function(
ffi.Int64, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>( ffi.Int64,
'frbgen_starcitizen_doctor_wire__crate__api__http_api__dns_lookup_ips'); ffi.Pointer<wire_cst_list_prim_u_8_strict>,
)
>
>('frbgen_starcitizen_doctor_wire__crate__api__http_api__dns_lookup_ips');
late final _wire__crate__api__http_api__dns_lookup_ips = late final _wire__crate__api__http_api__dns_lookup_ips =
_wire__crate__api__http_api__dns_lookup_ipsPtr.asFunction< _wire__crate__api__http_api__dns_lookup_ipsPtr
void Function(int, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>(); .asFunction<
void Function(int, ffi.Pointer<wire_cst_list_prim_u_8_strict>)
>();
void wire__crate__api__http_api__dns_lookup_txt( void wire__crate__api__http_api__dns_lookup_txt(
int port_, int port_,
ffi.Pointer<wire_cst_list_prim_u_8_strict> host, ffi.Pointer<wire_cst_list_prim_u_8_strict> host,
) { ) {
return _wire__crate__api__http_api__dns_lookup_txt( return _wire__crate__api__http_api__dns_lookup_txt(port_, host);
port_,
host,
);
} }
late final _wire__crate__api__http_api__dns_lookup_txtPtr = _lookup< late final _wire__crate__api__http_api__dns_lookup_txtPtr =
_lookup<
ffi.NativeFunction< ffi.NativeFunction<
ffi.Void Function( ffi.Void Function(
ffi.Int64, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>( ffi.Int64,
'frbgen_starcitizen_doctor_wire__crate__api__http_api__dns_lookup_txt'); ffi.Pointer<wire_cst_list_prim_u_8_strict>,
)
>
>('frbgen_starcitizen_doctor_wire__crate__api__http_api__dns_lookup_txt');
late final _wire__crate__api__http_api__dns_lookup_txt = late final _wire__crate__api__http_api__dns_lookup_txt =
_wire__crate__api__http_api__dns_lookup_txtPtr.asFunction< _wire__crate__api__http_api__dns_lookup_txtPtr
void Function(int, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>(); .asFunction<
void Function(int, ffi.Pointer<wire_cst_list_prim_u_8_strict>)
>();
void wire__crate__api__http_api__fetch( void wire__crate__api__http_api__fetch(
int port_, int port_,
@ -620,7 +678,8 @@ class RustLibWire implements BaseWire {
); );
} }
late final _wire__crate__api__http_api__fetchPtr = _lookup< late final _wire__crate__api__http_api__fetchPtr =
_lookup<
ffi.NativeFunction< ffi.NativeFunction<
ffi.Void Function( ffi.Void Function(
ffi.Int64, ffi.Int64,
@ -629,10 +688,13 @@ class RustLibWire implements BaseWire {
ffi.Pointer<wire_cst_list_record_string_string>, ffi.Pointer<wire_cst_list_record_string_string>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>, ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>, ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<ffi.Bool>)>>( ffi.Pointer<ffi.Bool>,
'frbgen_starcitizen_doctor_wire__crate__api__http_api__fetch'); )
>
>('frbgen_starcitizen_doctor_wire__crate__api__http_api__fetch');
late final _wire__crate__api__http_api__fetch = late final _wire__crate__api__http_api__fetch =
_wire__crate__api__http_api__fetchPtr.asFunction< _wire__crate__api__http_api__fetchPtr
.asFunction<
void Function( void Function(
int, int,
int, int,
@ -640,7 +702,9 @@ class RustLibWire implements BaseWire {
ffi.Pointer<wire_cst_list_record_string_string>, ffi.Pointer<wire_cst_list_record_string_string>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>, ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>, ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<ffi.Bool>)>(); ffi.Pointer<ffi.Bool>,
)
>();
void wire__crate__api__asar_api__get_rsi_launcher_asar_data( void wire__crate__api__asar_api__get_rsi_launcher_asar_data(
int port_, int port_,
@ -652,14 +716,22 @@ class RustLibWire implements BaseWire {
); );
} }
late final _wire__crate__api__asar_api__get_rsi_launcher_asar_dataPtr = _lookup< late final _wire__crate__api__asar_api__get_rsi_launcher_asar_dataPtr =
_lookup<
ffi.NativeFunction< ffi.NativeFunction<
ffi.Void Function( ffi.Void Function(
ffi.Int64, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>( ffi.Int64,
'frbgen_starcitizen_doctor_wire__crate__api__asar_api__get_rsi_launcher_asar_data'); ffi.Pointer<wire_cst_list_prim_u_8_strict>,
)
>
>(
'frbgen_starcitizen_doctor_wire__crate__api__asar_api__get_rsi_launcher_asar_data',
);
late final _wire__crate__api__asar_api__get_rsi_launcher_asar_data = late final _wire__crate__api__asar_api__get_rsi_launcher_asar_data =
_wire__crate__api__asar_api__get_rsi_launcher_asar_dataPtr.asFunction< _wire__crate__api__asar_api__get_rsi_launcher_asar_dataPtr
void Function(int, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>(); .asFunction<
void Function(int, ffi.Pointer<wire_cst_list_prim_u_8_strict>)
>();
void wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js( void wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js(
int port_, int port_,
@ -679,13 +751,21 @@ class RustLibWire implements BaseWire {
ffi.Void Function( ffi.Void Function(
ffi.Int64, ffi.Int64,
ffi.Pointer<wire_cst_rsi_launcher_asar_data>, ffi.Pointer<wire_cst_rsi_launcher_asar_data>,
ffi.Pointer<wire_cst_list_prim_u_8_loose>)>>( ffi.Pointer<wire_cst_list_prim_u_8_loose>,
'frbgen_starcitizen_doctor_wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js'); )
>
>(
'frbgen_starcitizen_doctor_wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js',
);
late final _wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js = late final _wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js =
_wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_jsPtr _wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_jsPtr
.asFunction< .asFunction<
void Function(int, ffi.Pointer<wire_cst_rsi_launcher_asar_data>, void Function(
ffi.Pointer<wire_cst_list_prim_u_8_loose>)>(); int,
ffi.Pointer<wire_cst_rsi_launcher_asar_data>,
ffi.Pointer<wire_cst_list_prim_u_8_loose>,
)
>();
void wire__crate__api__win32_api__send_notify( void wire__crate__api__win32_api__send_notify(
int port_, int port_,
@ -703,43 +783,53 @@ class RustLibWire implements BaseWire {
); );
} }
late final _wire__crate__api__win32_api__send_notifyPtr = _lookup< late final _wire__crate__api__win32_api__send_notifyPtr =
_lookup<
ffi.NativeFunction< ffi.NativeFunction<
ffi.Void Function( ffi.Void Function(
ffi.Int64, ffi.Int64,
ffi.Pointer<wire_cst_list_prim_u_8_strict>, ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>, ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>, ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>( ffi.Pointer<wire_cst_list_prim_u_8_strict>,
'frbgen_starcitizen_doctor_wire__crate__api__win32_api__send_notify'); )
>
>('frbgen_starcitizen_doctor_wire__crate__api__win32_api__send_notify');
late final _wire__crate__api__win32_api__send_notify = late final _wire__crate__api__win32_api__send_notify =
_wire__crate__api__win32_api__send_notifyPtr.asFunction< _wire__crate__api__win32_api__send_notifyPtr
.asFunction<
void Function( void Function(
int, int,
ffi.Pointer<wire_cst_list_prim_u_8_strict>, ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>, ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>, ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>)>(); ffi.Pointer<wire_cst_list_prim_u_8_strict>,
)
>();
void wire__crate__api__http_api__set_default_header( void wire__crate__api__http_api__set_default_header(
int port_, int port_,
ffi.Pointer<wire_cst_list_record_string_string> headers, ffi.Pointer<wire_cst_list_record_string_string> headers,
) { ) {
return _wire__crate__api__http_api__set_default_header( return _wire__crate__api__http_api__set_default_header(port_, headers);
port_,
headers,
);
} }
late final _wire__crate__api__http_api__set_default_headerPtr = _lookup< late final _wire__crate__api__http_api__set_default_headerPtr =
_lookup<
ffi.NativeFunction< ffi.NativeFunction<
ffi.Void Function( ffi.Void Function(
ffi.Int64, ffi.Pointer<wire_cst_list_record_string_string>)>>( ffi.Int64,
'frbgen_starcitizen_doctor_wire__crate__api__http_api__set_default_header'); ffi.Pointer<wire_cst_list_record_string_string>,
)
>
>(
'frbgen_starcitizen_doctor_wire__crate__api__http_api__set_default_header',
);
late final _wire__crate__api__http_api__set_default_header = late final _wire__crate__api__http_api__set_default_header =
_wire__crate__api__http_api__set_default_headerPtr.asFunction< _wire__crate__api__http_api__set_default_headerPtr
void Function( .asFunction<
int, ffi.Pointer<wire_cst_list_record_string_string>)>(); void Function(int, ffi.Pointer<wire_cst_list_record_string_string>)
>();
void wire__crate__api__win32_api__set_foreground_window( void wire__crate__api__win32_api__set_foreground_window(
int port_, int port_,
@ -751,14 +841,22 @@ class RustLibWire implements BaseWire {
); );
} }
late final _wire__crate__api__win32_api__set_foreground_windowPtr = _lookup< late final _wire__crate__api__win32_api__set_foreground_windowPtr =
_lookup<
ffi.NativeFunction< ffi.NativeFunction<
ffi.Void Function( ffi.Void Function(
ffi.Int64, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>( ffi.Int64,
'frbgen_starcitizen_doctor_wire__crate__api__win32_api__set_foreground_window'); ffi.Pointer<wire_cst_list_prim_u_8_strict>,
)
>
>(
'frbgen_starcitizen_doctor_wire__crate__api__win32_api__set_foreground_window',
);
late final _wire__crate__api__win32_api__set_foreground_window = late final _wire__crate__api__win32_api__set_foreground_window =
_wire__crate__api__win32_api__set_foreground_windowPtr.asFunction< _wire__crate__api__win32_api__set_foreground_windowPtr
void Function(int, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>(); .asFunction<
void Function(int, ffi.Pointer<wire_cst_list_prim_u_8_strict>)
>();
void wire__crate__api__rs_process__start( void wire__crate__api__rs_process__start(
int port_, int port_,
@ -776,57 +874,62 @@ class RustLibWire implements BaseWire {
); );
} }
late final _wire__crate__api__rs_process__startPtr = _lookup< late final _wire__crate__api__rs_process__startPtr =
_lookup<
ffi.NativeFunction< ffi.NativeFunction<
ffi.Void Function( ffi.Void Function(
ffi.Int64, ffi.Int64,
ffi.Pointer<wire_cst_list_prim_u_8_strict>, ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_String>, ffi.Pointer<wire_cst_list_String>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>, ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>( ffi.Pointer<wire_cst_list_prim_u_8_strict>,
'frbgen_starcitizen_doctor_wire__crate__api__rs_process__start'); )
>
>('frbgen_starcitizen_doctor_wire__crate__api__rs_process__start');
late final _wire__crate__api__rs_process__start = late final _wire__crate__api__rs_process__start =
_wire__crate__api__rs_process__startPtr.asFunction< _wire__crate__api__rs_process__startPtr
.asFunction<
void Function( void Function(
int, int,
ffi.Pointer<wire_cst_list_prim_u_8_strict>, ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_String>, ffi.Pointer<wire_cst_list_String>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>, ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>)>(); ffi.Pointer<wire_cst_list_prim_u_8_strict>,
)
>();
void wire__crate__api__rs_process__write( void wire__crate__api__rs_process__write(
int port_, int port_,
int rs_pid, int rs_pid,
ffi.Pointer<wire_cst_list_prim_u_8_strict> data, ffi.Pointer<wire_cst_list_prim_u_8_strict> data,
) { ) {
return _wire__crate__api__rs_process__write( return _wire__crate__api__rs_process__write(port_, rs_pid, data);
port_,
rs_pid,
data,
);
} }
late final _wire__crate__api__rs_process__writePtr = _lookup< late final _wire__crate__api__rs_process__writePtr =
_lookup<
ffi.NativeFunction< ffi.NativeFunction<
ffi.Void Function(ffi.Int64, ffi.Uint32, ffi.Void Function(
ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>( ffi.Int64,
'frbgen_starcitizen_doctor_wire__crate__api__rs_process__write'); ffi.Uint32,
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
)
>
>('frbgen_starcitizen_doctor_wire__crate__api__rs_process__write');
late final _wire__crate__api__rs_process__write = late final _wire__crate__api__rs_process__write =
_wire__crate__api__rs_process__writePtr.asFunction< _wire__crate__api__rs_process__writePtr
void Function( .asFunction<
int, int, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>(); void Function(int, int, ffi.Pointer<wire_cst_list_prim_u_8_strict>)
>();
ffi.Pointer<ffi.Bool> cst_new_box_autoadd_bool( ffi.Pointer<ffi.Bool> cst_new_box_autoadd_bool(bool value) {
bool value, return _cst_new_box_autoadd_bool(value);
) {
return _cst_new_box_autoadd_bool(
value,
);
} }
late final _cst_new_box_autoadd_boolPtr = late final _cst_new_box_autoadd_boolPtr =
_lookup<ffi.NativeFunction<ffi.Pointer<ffi.Bool> Function(ffi.Bool)>>( _lookup<ffi.NativeFunction<ffi.Pointer<ffi.Bool> Function(ffi.Bool)>>(
'frbgen_starcitizen_doctor_cst_new_box_autoadd_bool'); 'frbgen_starcitizen_doctor_cst_new_box_autoadd_bool',
);
late final _cst_new_box_autoadd_bool = _cst_new_box_autoadd_boolPtr late final _cst_new_box_autoadd_bool = _cst_new_box_autoadd_boolPtr
.asFunction<ffi.Pointer<ffi.Bool> Function(bool)>(); .asFunction<ffi.Pointer<ffi.Bool> Function(bool)>();
@ -835,90 +938,88 @@ class RustLibWire implements BaseWire {
return _cst_new_box_autoadd_rsi_launcher_asar_data(); return _cst_new_box_autoadd_rsi_launcher_asar_data();
} }
late final _cst_new_box_autoadd_rsi_launcher_asar_dataPtr = _lookup< late final _cst_new_box_autoadd_rsi_launcher_asar_dataPtr =
_lookup<
ffi.NativeFunction< ffi.NativeFunction<
ffi.Pointer<wire_cst_rsi_launcher_asar_data> Function()>>( ffi.Pointer<wire_cst_rsi_launcher_asar_data> Function()
'frbgen_starcitizen_doctor_cst_new_box_autoadd_rsi_launcher_asar_data'); >
>('frbgen_starcitizen_doctor_cst_new_box_autoadd_rsi_launcher_asar_data');
late final _cst_new_box_autoadd_rsi_launcher_asar_data = late final _cst_new_box_autoadd_rsi_launcher_asar_data =
_cst_new_box_autoadd_rsi_launcher_asar_dataPtr.asFunction< _cst_new_box_autoadd_rsi_launcher_asar_dataPtr
ffi.Pointer<wire_cst_rsi_launcher_asar_data> Function()>(); .asFunction<
ffi.Pointer<wire_cst_rsi_launcher_asar_data> Function()
>();
ffi.Pointer<ffi.Uint64> cst_new_box_autoadd_u_64( ffi.Pointer<ffi.Uint64> cst_new_box_autoadd_u_64(int value) {
int value, return _cst_new_box_autoadd_u_64(value);
) {
return _cst_new_box_autoadd_u_64(
value,
);
} }
late final _cst_new_box_autoadd_u_64Ptr = late final _cst_new_box_autoadd_u_64Ptr =
_lookup<ffi.NativeFunction<ffi.Pointer<ffi.Uint64> Function(ffi.Uint64)>>( _lookup<ffi.NativeFunction<ffi.Pointer<ffi.Uint64> Function(ffi.Uint64)>>(
'frbgen_starcitizen_doctor_cst_new_box_autoadd_u_64'); 'frbgen_starcitizen_doctor_cst_new_box_autoadd_u_64',
);
late final _cst_new_box_autoadd_u_64 = _cst_new_box_autoadd_u_64Ptr late final _cst_new_box_autoadd_u_64 = _cst_new_box_autoadd_u_64Ptr
.asFunction<ffi.Pointer<ffi.Uint64> Function(int)>(); .asFunction<ffi.Pointer<ffi.Uint64> Function(int)>();
ffi.Pointer<wire_cst_list_String> cst_new_list_String( ffi.Pointer<wire_cst_list_String> cst_new_list_String(int len) {
int len, return _cst_new_list_String(len);
) {
return _cst_new_list_String(
len,
);
} }
late final _cst_new_list_StringPtr = _lookup< late final _cst_new_list_StringPtr =
_lookup<
ffi.NativeFunction< ffi.NativeFunction<
ffi.Pointer<wire_cst_list_String> Function( ffi.Pointer<wire_cst_list_String> Function(ffi.Int32)
ffi.Int32)>>('frbgen_starcitizen_doctor_cst_new_list_String'); >
>('frbgen_starcitizen_doctor_cst_new_list_String');
late final _cst_new_list_String = _cst_new_list_StringPtr late final _cst_new_list_String = _cst_new_list_StringPtr
.asFunction<ffi.Pointer<wire_cst_list_String> Function(int)>(); .asFunction<ffi.Pointer<wire_cst_list_String> Function(int)>();
ffi.Pointer<wire_cst_list_prim_u_8_loose> cst_new_list_prim_u_8_loose( ffi.Pointer<wire_cst_list_prim_u_8_loose> cst_new_list_prim_u_8_loose(
int len, int len,
) { ) {
return _cst_new_list_prim_u_8_loose( return _cst_new_list_prim_u_8_loose(len);
len,
);
} }
late final _cst_new_list_prim_u_8_loosePtr = _lookup< late final _cst_new_list_prim_u_8_loosePtr =
_lookup<
ffi.NativeFunction< ffi.NativeFunction<
ffi.Pointer<wire_cst_list_prim_u_8_loose> Function(ffi.Int32)>>( ffi.Pointer<wire_cst_list_prim_u_8_loose> Function(ffi.Int32)
'frbgen_starcitizen_doctor_cst_new_list_prim_u_8_loose'); >
>('frbgen_starcitizen_doctor_cst_new_list_prim_u_8_loose');
late final _cst_new_list_prim_u_8_loose = _cst_new_list_prim_u_8_loosePtr late final _cst_new_list_prim_u_8_loose = _cst_new_list_prim_u_8_loosePtr
.asFunction<ffi.Pointer<wire_cst_list_prim_u_8_loose> Function(int)>(); .asFunction<ffi.Pointer<wire_cst_list_prim_u_8_loose> Function(int)>();
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_new_list_prim_u_8_strict( ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_new_list_prim_u_8_strict(
int len, int len,
) { ) {
return _cst_new_list_prim_u_8_strict( return _cst_new_list_prim_u_8_strict(len);
len,
);
} }
late final _cst_new_list_prim_u_8_strictPtr = _lookup< late final _cst_new_list_prim_u_8_strictPtr =
_lookup<
ffi.NativeFunction< ffi.NativeFunction<
ffi.Pointer<wire_cst_list_prim_u_8_strict> Function(ffi.Int32)>>( ffi.Pointer<wire_cst_list_prim_u_8_strict> Function(ffi.Int32)
'frbgen_starcitizen_doctor_cst_new_list_prim_u_8_strict'); >
>('frbgen_starcitizen_doctor_cst_new_list_prim_u_8_strict');
late final _cst_new_list_prim_u_8_strict = _cst_new_list_prim_u_8_strictPtr late final _cst_new_list_prim_u_8_strict = _cst_new_list_prim_u_8_strictPtr
.asFunction<ffi.Pointer<wire_cst_list_prim_u_8_strict> Function(int)>(); .asFunction<ffi.Pointer<wire_cst_list_prim_u_8_strict> Function(int)>();
ffi.Pointer<wire_cst_list_record_string_string> ffi.Pointer<wire_cst_list_record_string_string>
cst_new_list_record_string_string( cst_new_list_record_string_string(int len) {
int len, return _cst_new_list_record_string_string(len);
) {
return _cst_new_list_record_string_string(
len,
);
} }
late final _cst_new_list_record_string_stringPtr = _lookup< late final _cst_new_list_record_string_stringPtr =
_lookup<
ffi.NativeFunction< ffi.NativeFunction<
ffi.Pointer<wire_cst_list_record_string_string> Function( ffi.Pointer<wire_cst_list_record_string_string> Function(ffi.Int32)
ffi.Int32)>>( >
'frbgen_starcitizen_doctor_cst_new_list_record_string_string'); >('frbgen_starcitizen_doctor_cst_new_list_record_string_string');
late final _cst_new_list_record_string_string = late final _cst_new_list_record_string_string =
_cst_new_list_record_string_stringPtr.asFunction< _cst_new_list_record_string_stringPtr
ffi.Pointer<wire_cst_list_record_string_string> Function(int)>(); .asFunction<
ffi.Pointer<wire_cst_list_record_string_string> Function(int)
>();
int dummy_method_to_enforce_bundling() { int dummy_method_to_enforce_bundling() {
return _dummy_method_to_enforce_bundling(); return _dummy_method_to_enforce_bundling();
@ -926,19 +1027,20 @@ class RustLibWire implements BaseWire {
late final _dummy_method_to_enforce_bundlingPtr = late final _dummy_method_to_enforce_bundlingPtr =
_lookup<ffi.NativeFunction<ffi.Int64 Function()>>( _lookup<ffi.NativeFunction<ffi.Int64 Function()>>(
'dummy_method_to_enforce_bundling'); 'dummy_method_to_enforce_bundling',
);
late final _dummy_method_to_enforce_bundling = late final _dummy_method_to_enforce_bundling =
_dummy_method_to_enforce_bundlingPtr.asFunction<int Function()>(); _dummy_method_to_enforce_bundlingPtr.asFunction<int Function()>();
} }
typedef DartPort = ffi.Int64; typedef DartPort = ffi.Int64;
typedef DartDartPort = int; typedef DartDartPort = int;
typedef DartPostCObjectFnTypeFunction = ffi.Bool Function( typedef DartPostCObjectFnTypeFunction =
DartPort port_id, ffi.Pointer<ffi.Void> message); ffi.Bool Function(DartPort port_id, ffi.Pointer<ffi.Void> message);
typedef DartDartPostCObjectFnTypeFunction = bool Function( typedef DartDartPostCObjectFnTypeFunction =
DartDartPort port_id, ffi.Pointer<ffi.Void> message); bool Function(DartDartPort port_id, ffi.Pointer<ffi.Void> message);
typedef DartPostCObjectFnType typedef DartPostCObjectFnType =
= ffi.Pointer<ffi.NativeFunction<DartPostCObjectFnTypeFunction>>; ffi.Pointer<ffi.NativeFunction<DartPostCObjectFnTypeFunction>>;
final class wire_cst_list_prim_u_8_strict extends ffi.Struct { final class wire_cst_list_prim_u_8_strict extends ffi.Struct {
external ffi.Pointer<ffi.Uint8> ptr; external ffi.Pointer<ffi.Uint8> ptr;

View File

@ -1,20 +1,12 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.10.0. // @generated by `flutter_rust_bridge`@ 2.11.1.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
import 'frb_generated.dart'; import 'frb_generated.dart';
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
enum MyHttpVersion { enum MyHttpVersion { http09, http10, http11, http2, http3, httpUnknown }
http09,
http10,
http11,
http2,
http3,
httpUnknown,
;
}
class RustHttpResponse { class RustHttpResponse {
final int statusCode; final int statusCode;

View File

@ -1,6 +1,5 @@
// dart format width=80
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// ignore_for_file: type=lint // 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 // 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
@ -15,75 +14,47 @@ T _$identity<T>(T value) => value;
/// @nodoc /// @nodoc
mixin _$MultiWindowAppState { mixin _$MultiWindowAppState {
String get backgroundColor;
String get menuColor;
String get micaColor;
List<String> get gameInstallPaths;
String? get languageCode;
String? get countryCode;
String get backgroundColor; String get menuColor; String get micaColor; List<String> get gameInstallPaths; String? get languageCode; String? get countryCode;
/// Create a copy of MultiWindowAppState /// Create a copy of MultiWindowAppState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
$MultiWindowAppStateCopyWith<MultiWindowAppState> get copyWith => $MultiWindowAppStateCopyWith<MultiWindowAppState> get copyWith => _$MultiWindowAppStateCopyWithImpl<MultiWindowAppState>(this as MultiWindowAppState, _$identity);
_$MultiWindowAppStateCopyWithImpl<MultiWindowAppState>(
this as MultiWindowAppState, _$identity);
/// Serializes this MultiWindowAppState to a JSON map. /// Serializes this MultiWindowAppState to a JSON map.
Map<String, dynamic> toJson(); Map<String, dynamic> toJson();
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is MultiWindowAppState&&(identical(other.backgroundColor, backgroundColor) || other.backgroundColor == backgroundColor)&&(identical(other.menuColor, menuColor) || other.menuColor == menuColor)&&(identical(other.micaColor, micaColor) || other.micaColor == micaColor)&&const DeepCollectionEquality().equals(other.gameInstallPaths, gameInstallPaths)&&(identical(other.languageCode, languageCode) || other.languageCode == languageCode)&&(identical(other.countryCode, countryCode) || other.countryCode == countryCode));
(other.runtimeType == runtimeType &&
other is MultiWindowAppState &&
(identical(other.backgroundColor, backgroundColor) ||
other.backgroundColor == backgroundColor) &&
(identical(other.menuColor, menuColor) ||
other.menuColor == menuColor) &&
(identical(other.micaColor, micaColor) ||
other.micaColor == micaColor) &&
const DeepCollectionEquality()
.equals(other.gameInstallPaths, gameInstallPaths) &&
(identical(other.languageCode, languageCode) ||
other.languageCode == languageCode) &&
(identical(other.countryCode, countryCode) ||
other.countryCode == countryCode));
} }
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,backgroundColor,menuColor,micaColor,const DeepCollectionEquality().hash(gameInstallPaths),languageCode,countryCode);
runtimeType,
backgroundColor,
menuColor,
micaColor,
const DeepCollectionEquality().hash(gameInstallPaths),
languageCode,
countryCode);
@override @override
String toString() { String toString() {
return 'MultiWindowAppState(backgroundColor: $backgroundColor, menuColor: $menuColor, micaColor: $micaColor, gameInstallPaths: $gameInstallPaths, languageCode: $languageCode, countryCode: $countryCode)'; return 'MultiWindowAppState(backgroundColor: $backgroundColor, menuColor: $menuColor, micaColor: $micaColor, gameInstallPaths: $gameInstallPaths, languageCode: $languageCode, countryCode: $countryCode)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class $MultiWindowAppStateCopyWith<$Res> { abstract mixin class $MultiWindowAppStateCopyWith<$Res> {
factory $MultiWindowAppStateCopyWith( factory $MultiWindowAppStateCopyWith(MultiWindowAppState value, $Res Function(MultiWindowAppState) _then) = _$MultiWindowAppStateCopyWithImpl;
MultiWindowAppState value, $Res Function(MultiWindowAppState) _then) =
_$MultiWindowAppStateCopyWithImpl;
@useResult @useResult
$Res call( $Res call({
{String backgroundColor, String backgroundColor, String menuColor, String micaColor, List<String> gameInstallPaths, String? languageCode, String? countryCode
String menuColor, });
String micaColor,
List<String> gameInstallPaths,
String? languageCode,
String? countryCode});
}
}
/// @nodoc /// @nodoc
class _$MultiWindowAppStateCopyWithImpl<$Res> class _$MultiWindowAppStateCopyWithImpl<$Res>
implements $MultiWindowAppStateCopyWith<$Res> { implements $MultiWindowAppStateCopyWith<$Res> {
@ -94,148 +65,211 @@ class _$MultiWindowAppStateCopyWithImpl<$Res>
/// Create a copy of MultiWindowAppState /// Create a copy of MultiWindowAppState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline') @override $Res call({Object? backgroundColor = null,Object? menuColor = null,Object? micaColor = null,Object? gameInstallPaths = null,Object? languageCode = freezed,Object? countryCode = freezed,}) {
@override
$Res call({
Object? backgroundColor = null,
Object? menuColor = null,
Object? micaColor = null,
Object? gameInstallPaths = null,
Object? languageCode = freezed,
Object? countryCode = freezed,
}) {
return _then(_self.copyWith( return _then(_self.copyWith(
backgroundColor: null == backgroundColor backgroundColor: null == backgroundColor ? _self.backgroundColor : backgroundColor // ignore: cast_nullable_to_non_nullable
? _self.backgroundColor as String,menuColor: null == menuColor ? _self.menuColor : menuColor // ignore: cast_nullable_to_non_nullable
: backgroundColor // ignore: cast_nullable_to_non_nullable as String,micaColor: null == micaColor ? _self.micaColor : micaColor // ignore: cast_nullable_to_non_nullable
as String, as String,gameInstallPaths: null == gameInstallPaths ? _self.gameInstallPaths : gameInstallPaths // ignore: cast_nullable_to_non_nullable
menuColor: null == menuColor as List<String>,languageCode: freezed == languageCode ? _self.languageCode : languageCode // ignore: cast_nullable_to_non_nullable
? _self.menuColor as String?,countryCode: freezed == countryCode ? _self.countryCode : countryCode // ignore: cast_nullable_to_non_nullable
: menuColor // ignore: cast_nullable_to_non_nullable
as String,
micaColor: null == micaColor
? _self.micaColor
: micaColor // ignore: cast_nullable_to_non_nullable
as String,
gameInstallPaths: null == gameInstallPaths
? _self.gameInstallPaths
: gameInstallPaths // ignore: cast_nullable_to_non_nullable
as List<String>,
languageCode: freezed == languageCode
? _self.languageCode
: languageCode // ignore: cast_nullable_to_non_nullable
as String?,
countryCode: freezed == countryCode
? _self.countryCode
: countryCode // ignore: cast_nullable_to_non_nullable
as String?, as String?,
)); ));
} }
}
/// Adds pattern-matching-related methods to [MultiWindowAppState].
extension MultiWindowAppStatePatterns on MultiWindowAppState {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _MultiWindowAppState value)? $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _MultiWindowAppState() when $default != null:
return $default(_that);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _MultiWindowAppState value) $default,){
final _that = this;
switch (_that) {
case _MultiWindowAppState():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _MultiWindowAppState value)? $default,){
final _that = this;
switch (_that) {
case _MultiWindowAppState() when $default != null:
return $default(_that);case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String backgroundColor, String menuColor, String micaColor, List<String> gameInstallPaths, String? languageCode, String? countryCode)? $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _MultiWindowAppState() when $default != null:
return $default(_that.backgroundColor,_that.menuColor,_that.micaColor,_that.gameInstallPaths,_that.languageCode,_that.countryCode);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String backgroundColor, String menuColor, String micaColor, List<String> gameInstallPaths, String? languageCode, String? countryCode) $default,) {final _that = this;
switch (_that) {
case _MultiWindowAppState():
return $default(_that.backgroundColor,_that.menuColor,_that.micaColor,_that.gameInstallPaths,_that.languageCode,_that.countryCode);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String backgroundColor, String menuColor, String micaColor, List<String> gameInstallPaths, String? languageCode, String? countryCode)? $default,) {final _that = this;
switch (_that) {
case _MultiWindowAppState() when $default != null:
return $default(_that.backgroundColor,_that.menuColor,_that.micaColor,_that.gameInstallPaths,_that.languageCode,_that.countryCode);case _:
return null;
}
}
} }
/// @nodoc /// @nodoc
@JsonSerializable() @JsonSerializable()
class _MultiWindowAppState implements MultiWindowAppState {
const _MultiWindowAppState(
{required this.backgroundColor,
required this.menuColor,
required this.micaColor,
required final List<String> gameInstallPaths,
this.languageCode,
this.countryCode})
: _gameInstallPaths = gameInstallPaths;
factory _MultiWindowAppState.fromJson(Map<String, dynamic> json) =>
_$MultiWindowAppStateFromJson(json);
@override class _MultiWindowAppState implements MultiWindowAppState {
final String backgroundColor; const _MultiWindowAppState({required this.backgroundColor, required this.menuColor, required this.micaColor, required final List<String> gameInstallPaths, this.languageCode, this.countryCode}): _gameInstallPaths = gameInstallPaths;
@override factory _MultiWindowAppState.fromJson(Map<String, dynamic> json) => _$MultiWindowAppStateFromJson(json);
final String menuColor;
@override @override final String backgroundColor;
final String micaColor; @override final String menuColor;
@override final String micaColor;
final List<String> _gameInstallPaths; final List<String> _gameInstallPaths;
@override @override List<String> get gameInstallPaths {
List<String> get gameInstallPaths { if (_gameInstallPaths is EqualUnmodifiableListView) return _gameInstallPaths;
if (_gameInstallPaths is EqualUnmodifiableListView)
return _gameInstallPaths;
// ignore: implicit_dynamic_type // ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_gameInstallPaths); return EqualUnmodifiableListView(_gameInstallPaths);
} }
@override @override final String? languageCode;
final String? languageCode; @override final String? countryCode;
@override
final String? countryCode;
/// Create a copy of MultiWindowAppState /// Create a copy of MultiWindowAppState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
_$MultiWindowAppStateCopyWith<_MultiWindowAppState> get copyWith => _$MultiWindowAppStateCopyWith<_MultiWindowAppState> get copyWith => __$MultiWindowAppStateCopyWithImpl<_MultiWindowAppState>(this, _$identity);
__$MultiWindowAppStateCopyWithImpl<_MultiWindowAppState>(
this, _$identity);
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return _$MultiWindowAppStateToJson( return _$MultiWindowAppStateToJson(this, );
this,
);
} }
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is _MultiWindowAppState&&(identical(other.backgroundColor, backgroundColor) || other.backgroundColor == backgroundColor)&&(identical(other.menuColor, menuColor) || other.menuColor == menuColor)&&(identical(other.micaColor, micaColor) || other.micaColor == micaColor)&&const DeepCollectionEquality().equals(other._gameInstallPaths, _gameInstallPaths)&&(identical(other.languageCode, languageCode) || other.languageCode == languageCode)&&(identical(other.countryCode, countryCode) || other.countryCode == countryCode));
(other.runtimeType == runtimeType &&
other is _MultiWindowAppState &&
(identical(other.backgroundColor, backgroundColor) ||
other.backgroundColor == backgroundColor) &&
(identical(other.menuColor, menuColor) ||
other.menuColor == menuColor) &&
(identical(other.micaColor, micaColor) ||
other.micaColor == micaColor) &&
const DeepCollectionEquality()
.equals(other._gameInstallPaths, _gameInstallPaths) &&
(identical(other.languageCode, languageCode) ||
other.languageCode == languageCode) &&
(identical(other.countryCode, countryCode) ||
other.countryCode == countryCode));
} }
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,backgroundColor,menuColor,micaColor,const DeepCollectionEquality().hash(_gameInstallPaths),languageCode,countryCode);
runtimeType,
backgroundColor,
menuColor,
micaColor,
const DeepCollectionEquality().hash(_gameInstallPaths),
languageCode,
countryCode);
@override @override
String toString() { String toString() {
return 'MultiWindowAppState(backgroundColor: $backgroundColor, menuColor: $menuColor, micaColor: $micaColor, gameInstallPaths: $gameInstallPaths, languageCode: $languageCode, countryCode: $countryCode)'; return 'MultiWindowAppState(backgroundColor: $backgroundColor, menuColor: $menuColor, micaColor: $micaColor, gameInstallPaths: $gameInstallPaths, languageCode: $languageCode, countryCode: $countryCode)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class _$MultiWindowAppStateCopyWith<$Res> abstract mixin class _$MultiWindowAppStateCopyWith<$Res> implements $MultiWindowAppStateCopyWith<$Res> {
implements $MultiWindowAppStateCopyWith<$Res> { factory _$MultiWindowAppStateCopyWith(_MultiWindowAppState value, $Res Function(_MultiWindowAppState) _then) = __$MultiWindowAppStateCopyWithImpl;
factory _$MultiWindowAppStateCopyWith(_MultiWindowAppState value, @override @useResult
$Res Function(_MultiWindowAppState) _then) = $Res call({
__$MultiWindowAppStateCopyWithImpl; String backgroundColor, String menuColor, String micaColor, List<String> gameInstallPaths, String? languageCode, String? countryCode
@override });
@useResult
$Res call(
{String backgroundColor,
String menuColor,
String micaColor,
List<String> gameInstallPaths,
String? languageCode,
String? countryCode});
}
}
/// @nodoc /// @nodoc
class __$MultiWindowAppStateCopyWithImpl<$Res> class __$MultiWindowAppStateCopyWithImpl<$Res>
implements _$MultiWindowAppStateCopyWith<$Res> { implements _$MultiWindowAppStateCopyWith<$Res> {
@ -246,43 +280,19 @@ class __$MultiWindowAppStateCopyWithImpl<$Res>
/// Create a copy of MultiWindowAppState /// Create a copy of MultiWindowAppState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @pragma('vm:prefer-inline') $Res call({Object? backgroundColor = null,Object? menuColor = null,Object? micaColor = null,Object? gameInstallPaths = null,Object? languageCode = freezed,Object? countryCode = freezed,}) {
@pragma('vm:prefer-inline')
$Res call({
Object? backgroundColor = null,
Object? menuColor = null,
Object? micaColor = null,
Object? gameInstallPaths = null,
Object? languageCode = freezed,
Object? countryCode = freezed,
}) {
return _then(_MultiWindowAppState( return _then(_MultiWindowAppState(
backgroundColor: null == backgroundColor backgroundColor: null == backgroundColor ? _self.backgroundColor : backgroundColor // ignore: cast_nullable_to_non_nullable
? _self.backgroundColor as String,menuColor: null == menuColor ? _self.menuColor : menuColor // ignore: cast_nullable_to_non_nullable
: backgroundColor // ignore: cast_nullable_to_non_nullable as String,micaColor: null == micaColor ? _self.micaColor : micaColor // ignore: cast_nullable_to_non_nullable
as String, as String,gameInstallPaths: null == gameInstallPaths ? _self._gameInstallPaths : gameInstallPaths // ignore: cast_nullable_to_non_nullable
menuColor: null == menuColor as List<String>,languageCode: freezed == languageCode ? _self.languageCode : languageCode // ignore: cast_nullable_to_non_nullable
? _self.menuColor as String?,countryCode: freezed == countryCode ? _self.countryCode : countryCode // ignore: cast_nullable_to_non_nullable
: menuColor // ignore: cast_nullable_to_non_nullable
as String,
micaColor: null == micaColor
? _self.micaColor
: micaColor // ignore: cast_nullable_to_non_nullable
as String,
gameInstallPaths: null == gameInstallPaths
? _self._gameInstallPaths
: gameInstallPaths // ignore: cast_nullable_to_non_nullable
as List<String>,
languageCode: freezed == languageCode
? _self.languageCode
: languageCode // ignore: cast_nullable_to_non_nullable
as String?,
countryCode: freezed == countryCode
? _self.countryCode
: countryCode // ignore: cast_nullable_to_non_nullable
as String?, as String?,
)); ));
} }
} }
// dart format on // dart format on

View File

@ -19,8 +19,8 @@ _MultiWindowAppState _$MultiWindowAppStateFromJson(Map<String, dynamic> json) =>
); );
Map<String, dynamic> _$MultiWindowAppStateToJson( Map<String, dynamic> _$MultiWindowAppStateToJson(
_MultiWindowAppState instance) => _MultiWindowAppState instance,
<String, dynamic>{ ) => <String, dynamic>{
'backgroundColor': instance.backgroundColor, 'backgroundColor': instance.backgroundColor,
'menuColor': instance.menuColor, 'menuColor': instance.menuColor,
'micaColor': instance.micaColor, 'micaColor': instance.micaColor,

File diff suppressed because it is too large Load Diff

View File

@ -6,8 +6,9 @@ part of 'nav_api_data.dart';
// JsonSerializableGenerator // JsonSerializableGenerator
// ************************************************************************** // **************************************************************************
_NavApiDocsItemData _$NavApiDocsItemDataFromJson(Map<String, dynamic> json) => _NavApiDocsItemData _$NavApiDocsItemDataFromJson(
_NavApiDocsItemData( Map<String, dynamic> json,
) => _NavApiDocsItemData(
id: json['id'] as String? ?? '', id: json['id'] as String? ?? '',
name: json['name'] as String? ?? '', name: json['name'] as String? ?? '',
slug: json['slug'] as String? ?? '', slug: json['slug'] as String? ?? '',
@ -15,13 +16,15 @@ _NavApiDocsItemData _$NavApiDocsItemDataFromJson(Map<String, dynamic> json) =>
description: json['description'] as String? ?? '', description: json['description'] as String? ?? '',
image: json['image'] == null image: json['image'] == null
? const NavApiDocsItemImageData() ? const NavApiDocsItemImageData()
: NavApiDocsItemImageData.fromJson( : NavApiDocsItemImageData.fromJson(json['image'] as Map<String, dynamic>),
json['image'] as Map<String, dynamic>),
link: json['link'] as String? ?? '', link: json['link'] as String? ?? '',
isSponsored: json['is_sponsored'] as bool? ?? false, isSponsored: json['is_sponsored'] as bool? ?? false,
tags: (json['tags'] as List<dynamic>?) tags:
?.map((e) => NavApiDocsItemTagsItemData.fromJson( (json['tags'] as List<dynamic>?)
e as Map<String, dynamic>)) ?.map(
(e) =>
NavApiDocsItemTagsItemData.fromJson(e as Map<String, dynamic>),
)
.toList() ?? .toList() ??
const <NavApiDocsItemTagsItemData>[], const <NavApiDocsItemTagsItemData>[],
updatedAt: json['updatedAt'] as String? ?? '', updatedAt: json['updatedAt'] as String? ?? '',
@ -44,13 +47,14 @@ Map<String, dynamic> _$NavApiDocsItemDataToJson(_NavApiDocsItemData instance) =>
}; };
_NavApiDocsItemImageData _$NavApiDocsItemImageDataFromJson( _NavApiDocsItemImageData _$NavApiDocsItemImageDataFromJson(
Map<String, dynamic> json) => Map<String, dynamic> json,
_NavApiDocsItemImageData( ) => _NavApiDocsItemImageData(
id: json['id'] as String? ?? '', id: json['id'] as String? ?? '',
createdBy: json['createdBy'] == null createdBy: json['createdBy'] == null
? const NavApiDocsItemImageCreatedByData() ? const NavApiDocsItemImageCreatedByData()
: NavApiDocsItemImageCreatedByData.fromJson( : NavApiDocsItemImageCreatedByData.fromJson(
json['createdBy'] as Map<String, dynamic>), json['createdBy'] as Map<String, dynamic>,
),
title: json['title'] as String? ?? '', title: json['title'] as String? ?? '',
original: json['original'] as bool? ?? false, original: json['original'] as bool? ?? false,
credit: json['credit'] as String? ?? '', credit: json['credit'] as String? ?? '',
@ -68,12 +72,13 @@ _NavApiDocsItemImageData _$NavApiDocsItemImageDataFromJson(
sizes: json['sizes'] == null sizes: json['sizes'] == null
? const NavApiDocsItemImageSizesData() ? const NavApiDocsItemImageSizesData()
: NavApiDocsItemImageSizesData.fromJson( : NavApiDocsItemImageSizesData.fromJson(
json['sizes'] as Map<String, dynamic>), json['sizes'] as Map<String, dynamic>,
),
); );
Map<String, dynamic> _$NavApiDocsItemImageDataToJson( Map<String, dynamic> _$NavApiDocsItemImageDataToJson(
_NavApiDocsItemImageData instance) => _NavApiDocsItemImageData instance,
<String, dynamic>{ ) => <String, dynamic>{
'id': instance.id, 'id': instance.id,
'createdBy': instance.createdBy, 'createdBy': instance.createdBy,
'title': instance.title, 'title': instance.title,
@ -94,8 +99,8 @@ Map<String, dynamic> _$NavApiDocsItemImageDataToJson(
}; };
_NavApiDocsItemImageCreatedByData _$NavApiDocsItemImageCreatedByDataFromJson( _NavApiDocsItemImageCreatedByData _$NavApiDocsItemImageCreatedByDataFromJson(
Map<String, dynamic> json) => Map<String, dynamic> json,
_NavApiDocsItemImageCreatedByData( ) => _NavApiDocsItemImageCreatedByData(
id: json['id'] as String? ?? '', id: json['id'] as String? ?? '',
sub: json['sub'] as String? ?? '', sub: json['sub'] as String? ?? '',
externalProvider: json['external_provider'] as String? ?? '', externalProvider: json['external_provider'] as String? ?? '',
@ -113,8 +118,8 @@ _NavApiDocsItemImageCreatedByData _$NavApiDocsItemImageCreatedByDataFromJson(
); );
Map<String, dynamic> _$NavApiDocsItemImageCreatedByDataToJson( Map<String, dynamic> _$NavApiDocsItemImageCreatedByDataToJson(
_NavApiDocsItemImageCreatedByData instance) => _NavApiDocsItemImageCreatedByData instance,
<String, dynamic>{ ) => <String, dynamic>{
'id': instance.id, 'id': instance.id,
'sub': instance.sub, 'sub': instance.sub,
'external_provider': instance.externalProvider, 'external_provider': instance.externalProvider,
@ -130,8 +135,7 @@ Map<String, dynamic> _$NavApiDocsItemImageCreatedByDataToJson(
}; };
_NavApiDocsItemImageSizesThumbnailData _NavApiDocsItemImageSizesThumbnailData
_$NavApiDocsItemImageSizesThumbnailDataFromJson( _$NavApiDocsItemImageSizesThumbnailDataFromJson(Map<String, dynamic> json) =>
Map<String, dynamic> json) =>
_NavApiDocsItemImageSizesThumbnailData( _NavApiDocsItemImageSizesThumbnailData(
url: json['url'] as String? ?? '', url: json['url'] as String? ?? '',
width: (json['width'] as num?)?.toInt() ?? 0, width: (json['width'] as num?)?.toInt() ?? 0,
@ -142,8 +146,8 @@ _NavApiDocsItemImageSizesThumbnailData
); );
Map<String, dynamic> _$NavApiDocsItemImageSizesThumbnailDataToJson( Map<String, dynamic> _$NavApiDocsItemImageSizesThumbnailDataToJson(
_NavApiDocsItemImageSizesThumbnailData instance) => _NavApiDocsItemImageSizesThumbnailData instance,
<String, dynamic>{ ) => <String, dynamic>{
'url': instance.url, 'url': instance.url,
'width': instance.width, 'width': instance.width,
'height': instance.height, 'height': instance.height,
@ -153,33 +157,38 @@ Map<String, dynamic> _$NavApiDocsItemImageSizesThumbnailDataToJson(
}; };
_NavApiDocsItemImageSizesData _$NavApiDocsItemImageSizesDataFromJson( _NavApiDocsItemImageSizesData _$NavApiDocsItemImageSizesDataFromJson(
Map<String, dynamic> json) => Map<String, dynamic> json,
_NavApiDocsItemImageSizesData( ) => _NavApiDocsItemImageSizesData(
thumbnail: json['thumbnail'] == null thumbnail: json['thumbnail'] == null
? const NavApiDocsItemImageSizesThumbnailData() ? const NavApiDocsItemImageSizesThumbnailData()
: NavApiDocsItemImageSizesThumbnailData.fromJson( : NavApiDocsItemImageSizesThumbnailData.fromJson(
json['thumbnail'] as Map<String, dynamic>), json['thumbnail'] as Map<String, dynamic>,
),
preload: json['preload'] == null preload: json['preload'] == null
? const NavApiDocsItemImageSizesPreloadData() ? const NavApiDocsItemImageSizesPreloadData()
: NavApiDocsItemImageSizesPreloadData.fromJson( : NavApiDocsItemImageSizesPreloadData.fromJson(
json['preload'] as Map<String, dynamic>), json['preload'] as Map<String, dynamic>,
),
card: json['card'] == null card: json['card'] == null
? const NavApiDocsItemImageSizesCardData() ? const NavApiDocsItemImageSizesCardData()
: NavApiDocsItemImageSizesCardData.fromJson( : NavApiDocsItemImageSizesCardData.fromJson(
json['card'] as Map<String, dynamic>), json['card'] as Map<String, dynamic>,
),
tablet: json['tablet'] == null tablet: json['tablet'] == null
? const NavApiDocsItemImageSizesTabletData() ? const NavApiDocsItemImageSizesTabletData()
: NavApiDocsItemImageSizesTabletData.fromJson( : NavApiDocsItemImageSizesTabletData.fromJson(
json['tablet'] as Map<String, dynamic>), json['tablet'] as Map<String, dynamic>,
),
avatar: json['avatar'] == null avatar: json['avatar'] == null
? const NavApiDocsItemImageSizesAvatarData() ? const NavApiDocsItemImageSizesAvatarData()
: NavApiDocsItemImageSizesAvatarData.fromJson( : NavApiDocsItemImageSizesAvatarData.fromJson(
json['avatar'] as Map<String, dynamic>), json['avatar'] as Map<String, dynamic>,
),
); );
Map<String, dynamic> _$NavApiDocsItemImageSizesDataToJson( Map<String, dynamic> _$NavApiDocsItemImageSizesDataToJson(
_NavApiDocsItemImageSizesData instance) => _NavApiDocsItemImageSizesData instance,
<String, dynamic>{ ) => <String, dynamic>{
'thumbnail': instance.thumbnail, 'thumbnail': instance.thumbnail,
'preload': instance.preload, 'preload': instance.preload,
'card': instance.card, 'card': instance.card,
@ -199,8 +208,8 @@ _NavApiDocsItemImageSizesPreloadData
); );
Map<String, dynamic> _$NavApiDocsItemImageSizesPreloadDataToJson( Map<String, dynamic> _$NavApiDocsItemImageSizesPreloadDataToJson(
_NavApiDocsItemImageSizesPreloadData instance) => _NavApiDocsItemImageSizesPreloadData instance,
<String, dynamic>{ ) => <String, dynamic>{
'url': instance.url, 'url': instance.url,
'width': instance.width, 'width': instance.width,
'height': instance.height, 'height': instance.height,
@ -210,8 +219,8 @@ Map<String, dynamic> _$NavApiDocsItemImageSizesPreloadDataToJson(
}; };
_NavApiDocsItemImageSizesCardData _$NavApiDocsItemImageSizesCardDataFromJson( _NavApiDocsItemImageSizesCardData _$NavApiDocsItemImageSizesCardDataFromJson(
Map<String, dynamic> json) => Map<String, dynamic> json,
_NavApiDocsItemImageSizesCardData( ) => _NavApiDocsItemImageSizesCardData(
url: json['url'] as String? ?? '', url: json['url'] as String? ?? '',
width: (json['width'] as num?)?.toInt() ?? 0, width: (json['width'] as num?)?.toInt() ?? 0,
height: (json['height'] as num?)?.toInt() ?? 0, height: (json['height'] as num?)?.toInt() ?? 0,
@ -221,8 +230,8 @@ _NavApiDocsItemImageSizesCardData _$NavApiDocsItemImageSizesCardDataFromJson(
); );
Map<String, dynamic> _$NavApiDocsItemImageSizesCardDataToJson( Map<String, dynamic> _$NavApiDocsItemImageSizesCardDataToJson(
_NavApiDocsItemImageSizesCardData instance) => _NavApiDocsItemImageSizesCardData instance,
<String, dynamic>{ ) => <String, dynamic>{
'url': instance.url, 'url': instance.url,
'width': instance.width, 'width': instance.width,
'height': instance.height, 'height': instance.height,
@ -243,8 +252,8 @@ _NavApiDocsItemImageSizesTabletData
); );
Map<String, dynamic> _$NavApiDocsItemImageSizesTabletDataToJson( Map<String, dynamic> _$NavApiDocsItemImageSizesTabletDataToJson(
_NavApiDocsItemImageSizesTabletData instance) => _NavApiDocsItemImageSizesTabletData instance,
<String, dynamic>{ ) => <String, dynamic>{
'url': instance.url, 'url': instance.url,
'width': instance.width, 'width': instance.width,
'height': instance.height, 'height': instance.height,
@ -265,8 +274,8 @@ _NavApiDocsItemImageSizesAvatarData
); );
Map<String, dynamic> _$NavApiDocsItemImageSizesAvatarDataToJson( Map<String, dynamic> _$NavApiDocsItemImageSizesAvatarDataToJson(
_NavApiDocsItemImageSizesAvatarData instance) => _NavApiDocsItemImageSizesAvatarData instance,
<String, dynamic>{ ) => <String, dynamic>{
'url': instance.url, 'url': instance.url,
'width': instance.width, 'width': instance.width,
'height': instance.height, 'height': instance.height,
@ -276,8 +285,8 @@ Map<String, dynamic> _$NavApiDocsItemImageSizesAvatarDataToJson(
}; };
_NavApiDocsItemTagsItemData _$NavApiDocsItemTagsItemDataFromJson( _NavApiDocsItemTagsItemData _$NavApiDocsItemTagsItemDataFromJson(
Map<String, dynamic> json) => Map<String, dynamic> json,
_NavApiDocsItemTagsItemData( ) => _NavApiDocsItemTagsItemData(
id: json['id'] as String? ?? '', id: json['id'] as String? ?? '',
name: json['name'] as String? ?? '', name: json['name'] as String? ?? '',
slug: json['slug'] as String? ?? '', slug: json['slug'] as String? ?? '',
@ -286,8 +295,8 @@ _NavApiDocsItemTagsItemData _$NavApiDocsItemTagsItemDataFromJson(
); );
Map<String, dynamic> _$NavApiDocsItemTagsItemDataToJson( Map<String, dynamic> _$NavApiDocsItemTagsItemDataToJson(
_NavApiDocsItemTagsItemData instance) => _NavApiDocsItemTagsItemData instance,
<String, dynamic>{ ) => <String, dynamic>{
'id': instance.id, 'id': instance.id,
'name': instance.name, 'name': instance.name,
'slug': instance.slug, 'slug': instance.slug,
@ -296,9 +305,9 @@ Map<String, dynamic> _$NavApiDocsItemTagsItemDataToJson(
}; };
_NavApiData _$NavApiDataFromJson(Map<String, dynamic> json) => _NavApiData( _NavApiData _$NavApiDataFromJson(Map<String, dynamic> json) => _NavApiData(
docs: (json['docs'] as List<dynamic>?) docs:
?.map( (json['docs'] as List<dynamic>?)
(e) => NavApiDocsItemData.fromJson(e as Map<String, dynamic>)) ?.map((e) => NavApiDocsItemData.fromJson(e as Map<String, dynamic>))
.toList() ?? .toList() ??
const <NavApiDocsItemData>[], const <NavApiDocsItemData>[],
hasNextPage: json['hasNextPage'] as bool? ?? false, hasNextPage: json['hasNextPage'] as bool? ?? false,

View File

@ -1,6 +1,5 @@
// dart format width=80
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// ignore_for_file: type=lint // 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 // 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
@ -12,62 +11,53 @@ part of 'aria2c.dart';
// dart format off // dart format off
T _$identity<T>(T value) => value; T _$identity<T>(T value) => value;
/// @nodoc /// @nodoc
mixin _$Aria2cModelState implements DiagnosticableTreeMixin { mixin _$Aria2cModelState implements DiagnosticableTreeMixin {
String get aria2cDir;
Aria2c? get aria2c;
Aria2GlobalStat? get aria2globalStat;
String get aria2cDir; Aria2c? get aria2c; Aria2GlobalStat? get aria2globalStat;
/// Create a copy of Aria2cModelState /// Create a copy of Aria2cModelState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
$Aria2cModelStateCopyWith<Aria2cModelState> get copyWith => $Aria2cModelStateCopyWith<Aria2cModelState> get copyWith => _$Aria2cModelStateCopyWithImpl<Aria2cModelState>(this as Aria2cModelState, _$identity);
_$Aria2cModelStateCopyWithImpl<Aria2cModelState>(
this as Aria2cModelState, _$identity);
@override @override
void debugFillProperties(DiagnosticPropertiesBuilder properties) { void debugFillProperties(DiagnosticPropertiesBuilder properties) {
properties properties
..add(DiagnosticsProperty('type', 'Aria2cModelState')) ..add(DiagnosticsProperty('type', 'Aria2cModelState'))
..add(DiagnosticsProperty('aria2cDir', aria2cDir)) ..add(DiagnosticsProperty('aria2cDir', aria2cDir))..add(DiagnosticsProperty('aria2c', aria2c))..add(DiagnosticsProperty('aria2globalStat', aria2globalStat));
..add(DiagnosticsProperty('aria2c', aria2c))
..add(DiagnosticsProperty('aria2globalStat', aria2globalStat));
} }
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is Aria2cModelState&&(identical(other.aria2cDir, aria2cDir) || other.aria2cDir == aria2cDir)&&(identical(other.aria2c, aria2c) || other.aria2c == aria2c)&&(identical(other.aria2globalStat, aria2globalStat) || other.aria2globalStat == aria2globalStat));
(other.runtimeType == runtimeType &&
other is Aria2cModelState &&
(identical(other.aria2cDir, aria2cDir) ||
other.aria2cDir == aria2cDir) &&
(identical(other.aria2c, aria2c) || other.aria2c == aria2c) &&
(identical(other.aria2globalStat, aria2globalStat) ||
other.aria2globalStat == aria2globalStat));
} }
@override @override
int get hashCode => int get hashCode => Object.hash(runtimeType,aria2cDir,aria2c,aria2globalStat);
Object.hash(runtimeType, aria2cDir, aria2c, aria2globalStat);
@override @override
String toString({ DiagnosticLevel minLevel = DiagnosticLevel.info }) { String toString({ DiagnosticLevel minLevel = DiagnosticLevel.info }) {
return 'Aria2cModelState(aria2cDir: $aria2cDir, aria2c: $aria2c, aria2globalStat: $aria2globalStat)'; return 'Aria2cModelState(aria2cDir: $aria2cDir, aria2c: $aria2c, aria2globalStat: $aria2globalStat)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class $Aria2cModelStateCopyWith<$Res> { abstract mixin class $Aria2cModelStateCopyWith<$Res> {
factory $Aria2cModelStateCopyWith( factory $Aria2cModelStateCopyWith(Aria2cModelState value, $Res Function(Aria2cModelState) _then) = _$Aria2cModelStateCopyWithImpl;
Aria2cModelState value, $Res Function(Aria2cModelState) _then) =
_$Aria2cModelStateCopyWithImpl;
@useResult @useResult
$Res call( $Res call({
{String aria2cDir, Aria2c? aria2c, Aria2GlobalStat? aria2globalStat}); String aria2cDir, Aria2c? aria2c, Aria2GlobalStat? aria2globalStat
} });
}
/// @nodoc /// @nodoc
class _$Aria2cModelStateCopyWithImpl<$Res> class _$Aria2cModelStateCopyWithImpl<$Res>
implements $Aria2cModelStateCopyWith<$Res> { implements $Aria2cModelStateCopyWith<$Res> {
@ -78,96 +68,202 @@ class _$Aria2cModelStateCopyWithImpl<$Res>
/// Create a copy of Aria2cModelState /// Create a copy of Aria2cModelState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline') @override $Res call({Object? aria2cDir = null,Object? aria2c = freezed,Object? aria2globalStat = freezed,}) {
@override
$Res call({
Object? aria2cDir = null,
Object? aria2c = freezed,
Object? aria2globalStat = freezed,
}) {
return _then(_self.copyWith( return _then(_self.copyWith(
aria2cDir: null == aria2cDir aria2cDir: null == aria2cDir ? _self.aria2cDir : aria2cDir // ignore: cast_nullable_to_non_nullable
? _self.aria2cDir as String,aria2c: freezed == aria2c ? _self.aria2c : aria2c // ignore: cast_nullable_to_non_nullable
: aria2cDir // ignore: cast_nullable_to_non_nullable as Aria2c?,aria2globalStat: freezed == aria2globalStat ? _self.aria2globalStat : aria2globalStat // ignore: cast_nullable_to_non_nullable
as String,
aria2c: freezed == aria2c
? _self.aria2c
: aria2c // ignore: cast_nullable_to_non_nullable
as Aria2c?,
aria2globalStat: freezed == aria2globalStat
? _self.aria2globalStat
: aria2globalStat // ignore: cast_nullable_to_non_nullable
as Aria2GlobalStat?, as Aria2GlobalStat?,
)); ));
} }
}
/// Adds pattern-matching-related methods to [Aria2cModelState].
extension Aria2cModelStatePatterns on Aria2cModelState {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _Aria2cModelState value)? $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _Aria2cModelState() when $default != null:
return $default(_that);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _Aria2cModelState value) $default,){
final _that = this;
switch (_that) {
case _Aria2cModelState():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _Aria2cModelState value)? $default,){
final _that = this;
switch (_that) {
case _Aria2cModelState() when $default != null:
return $default(_that);case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String aria2cDir, Aria2c? aria2c, Aria2GlobalStat? aria2globalStat)? $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _Aria2cModelState() when $default != null:
return $default(_that.aria2cDir,_that.aria2c,_that.aria2globalStat);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String aria2cDir, Aria2c? aria2c, Aria2GlobalStat? aria2globalStat) $default,) {final _that = this;
switch (_that) {
case _Aria2cModelState():
return $default(_that.aria2cDir,_that.aria2c,_that.aria2globalStat);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String aria2cDir, Aria2c? aria2c, Aria2GlobalStat? aria2globalStat)? $default,) {final _that = this;
switch (_that) {
case _Aria2cModelState() when $default != null:
return $default(_that.aria2cDir,_that.aria2c,_that.aria2globalStat);case _:
return null;
}
}
} }
/// @nodoc /// @nodoc
class _Aria2cModelState
with DiagnosticableTreeMixin
implements Aria2cModelState {
const _Aria2cModelState(
{required this.aria2cDir, this.aria2c, this.aria2globalStat});
@override class _Aria2cModelState with DiagnosticableTreeMixin implements Aria2cModelState {
final String aria2cDir; const _Aria2cModelState({required this.aria2cDir, this.aria2c, this.aria2globalStat});
@override
final Aria2c? aria2c;
@override @override final String aria2cDir;
final Aria2GlobalStat? aria2globalStat; @override final Aria2c? aria2c;
@override final Aria2GlobalStat? aria2globalStat;
/// Create a copy of Aria2cModelState /// Create a copy of Aria2cModelState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
_$Aria2cModelStateCopyWith<_Aria2cModelState> get copyWith => _$Aria2cModelStateCopyWith<_Aria2cModelState> get copyWith => __$Aria2cModelStateCopyWithImpl<_Aria2cModelState>(this, _$identity);
__$Aria2cModelStateCopyWithImpl<_Aria2cModelState>(this, _$identity);
@override @override
void debugFillProperties(DiagnosticPropertiesBuilder properties) { void debugFillProperties(DiagnosticPropertiesBuilder properties) {
properties properties
..add(DiagnosticsProperty('type', 'Aria2cModelState')) ..add(DiagnosticsProperty('type', 'Aria2cModelState'))
..add(DiagnosticsProperty('aria2cDir', aria2cDir)) ..add(DiagnosticsProperty('aria2cDir', aria2cDir))..add(DiagnosticsProperty('aria2c', aria2c))..add(DiagnosticsProperty('aria2globalStat', aria2globalStat));
..add(DiagnosticsProperty('aria2c', aria2c))
..add(DiagnosticsProperty('aria2globalStat', aria2globalStat));
} }
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is _Aria2cModelState&&(identical(other.aria2cDir, aria2cDir) || other.aria2cDir == aria2cDir)&&(identical(other.aria2c, aria2c) || other.aria2c == aria2c)&&(identical(other.aria2globalStat, aria2globalStat) || other.aria2globalStat == aria2globalStat));
(other.runtimeType == runtimeType &&
other is _Aria2cModelState &&
(identical(other.aria2cDir, aria2cDir) ||
other.aria2cDir == aria2cDir) &&
(identical(other.aria2c, aria2c) || other.aria2c == aria2c) &&
(identical(other.aria2globalStat, aria2globalStat) ||
other.aria2globalStat == aria2globalStat));
} }
@override @override
int get hashCode => int get hashCode => Object.hash(runtimeType,aria2cDir,aria2c,aria2globalStat);
Object.hash(runtimeType, aria2cDir, aria2c, aria2globalStat);
@override @override
String toString({ DiagnosticLevel minLevel = DiagnosticLevel.info }) { String toString({ DiagnosticLevel minLevel = DiagnosticLevel.info }) {
return 'Aria2cModelState(aria2cDir: $aria2cDir, aria2c: $aria2c, aria2globalStat: $aria2globalStat)'; return 'Aria2cModelState(aria2cDir: $aria2cDir, aria2c: $aria2c, aria2globalStat: $aria2globalStat)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class _$Aria2cModelStateCopyWith<$Res> abstract mixin class _$Aria2cModelStateCopyWith<$Res> implements $Aria2cModelStateCopyWith<$Res> {
implements $Aria2cModelStateCopyWith<$Res> { factory _$Aria2cModelStateCopyWith(_Aria2cModelState value, $Res Function(_Aria2cModelState) _then) = __$Aria2cModelStateCopyWithImpl;
factory _$Aria2cModelStateCopyWith( @override @useResult
_Aria2cModelState value, $Res Function(_Aria2cModelState) _then) = $Res call({
__$Aria2cModelStateCopyWithImpl; String aria2cDir, Aria2c? aria2c, Aria2GlobalStat? aria2globalStat
@override });
@useResult
$Res call(
{String aria2cDir, Aria2c? aria2c, Aria2GlobalStat? aria2globalStat});
}
}
/// @nodoc /// @nodoc
class __$Aria2cModelStateCopyWithImpl<$Res> class __$Aria2cModelStateCopyWithImpl<$Res>
implements _$Aria2cModelStateCopyWith<$Res> { implements _$Aria2cModelStateCopyWith<$Res> {
@ -178,28 +274,16 @@ class __$Aria2cModelStateCopyWithImpl<$Res>
/// Create a copy of Aria2cModelState /// Create a copy of Aria2cModelState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @pragma('vm:prefer-inline') $Res call({Object? aria2cDir = null,Object? aria2c = freezed,Object? aria2globalStat = freezed,}) {
@pragma('vm:prefer-inline')
$Res call({
Object? aria2cDir = null,
Object? aria2c = freezed,
Object? aria2globalStat = freezed,
}) {
return _then(_Aria2cModelState( return _then(_Aria2cModelState(
aria2cDir: null == aria2cDir aria2cDir: null == aria2cDir ? _self.aria2cDir : aria2cDir // ignore: cast_nullable_to_non_nullable
? _self.aria2cDir as String,aria2c: freezed == aria2c ? _self.aria2c : aria2c // ignore: cast_nullable_to_non_nullable
: aria2cDir // ignore: cast_nullable_to_non_nullable as Aria2c?,aria2globalStat: freezed == aria2globalStat ? _self.aria2globalStat : aria2globalStat // ignore: cast_nullable_to_non_nullable
as String,
aria2c: freezed == aria2c
? _self.aria2c
: aria2c // ignore: cast_nullable_to_non_nullable
as Aria2c?,
aria2globalStat: freezed == aria2globalStat
? _self.aria2globalStat
: aria2globalStat // ignore: cast_nullable_to_non_nullable
as Aria2GlobalStat?, as Aria2GlobalStat?,
)); ));
} }
} }
// dart format on // dart format on

View File

@ -14,8 +14,9 @@ final aria2cModelProvider =
AutoDisposeNotifierProvider<Aria2cModel, Aria2cModelState>.internal( AutoDisposeNotifierProvider<Aria2cModel, Aria2cModelState>.internal(
Aria2cModel.new, Aria2cModel.new,
name: r'aria2cModelProvider', name: r'aria2cModelProvider',
debugGetCreateSourceHash: debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
const bool.fromEnvironment('dart.vm.product') ? null : _$aria2cModelHash, ? null
: _$aria2cModelHash,
dependencies: null, dependencies: null,
allTransitiveDependencies: null, allTransitiveDependencies: null,
); );

View File

@ -1,6 +1,5 @@
// dart format width=80
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// ignore_for_file: type=lint // 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 // 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
@ -12,89 +11,56 @@ part of 'unp4kc.dart';
// dart format off // dart format off
T _$identity<T>(T value) => value; T _$identity<T>(T value) => value;
/// @nodoc /// @nodoc
mixin _$Unp4kcState implements DiagnosticableTreeMixin { mixin _$Unp4kcState implements DiagnosticableTreeMixin {
bool get startUp;
Map<String, AppUnp4kP4kItemData>? get files;
MemoryFileSystem? get fs;
String get curPath;
String? get endMessage;
MapEntry<String, String>? get tempOpenFile;
String get errorMessage;
bool get startUp; Map<String, AppUnp4kP4kItemData>? get files; MemoryFileSystem? get fs; String get curPath; String? get endMessage; MapEntry<String, String>? get tempOpenFile; String get errorMessage;
/// Create a copy of Unp4kcState /// Create a copy of Unp4kcState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
$Unp4kcStateCopyWith<Unp4kcState> get copyWith => $Unp4kcStateCopyWith<Unp4kcState> get copyWith => _$Unp4kcStateCopyWithImpl<Unp4kcState>(this as Unp4kcState, _$identity);
_$Unp4kcStateCopyWithImpl<Unp4kcState>(this as Unp4kcState, _$identity);
@override @override
void debugFillProperties(DiagnosticPropertiesBuilder properties) { void debugFillProperties(DiagnosticPropertiesBuilder properties) {
properties properties
..add(DiagnosticsProperty('type', 'Unp4kcState')) ..add(DiagnosticsProperty('type', 'Unp4kcState'))
..add(DiagnosticsProperty('startUp', startUp)) ..add(DiagnosticsProperty('startUp', startUp))..add(DiagnosticsProperty('files', files))..add(DiagnosticsProperty('fs', fs))..add(DiagnosticsProperty('curPath', curPath))..add(DiagnosticsProperty('endMessage', endMessage))..add(DiagnosticsProperty('tempOpenFile', tempOpenFile))..add(DiagnosticsProperty('errorMessage', errorMessage));
..add(DiagnosticsProperty('files', files))
..add(DiagnosticsProperty('fs', fs))
..add(DiagnosticsProperty('curPath', curPath))
..add(DiagnosticsProperty('endMessage', endMessage))
..add(DiagnosticsProperty('tempOpenFile', tempOpenFile))
..add(DiagnosticsProperty('errorMessage', errorMessage));
} }
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is Unp4kcState&&(identical(other.startUp, startUp) || other.startUp == startUp)&&const DeepCollectionEquality().equals(other.files, files)&&(identical(other.fs, fs) || other.fs == fs)&&(identical(other.curPath, curPath) || other.curPath == curPath)&&(identical(other.endMessage, endMessage) || other.endMessage == endMessage)&&(identical(other.tempOpenFile, tempOpenFile) || other.tempOpenFile == tempOpenFile)&&(identical(other.errorMessage, errorMessage) || other.errorMessage == errorMessage));
(other.runtimeType == runtimeType &&
other is Unp4kcState &&
(identical(other.startUp, startUp) || other.startUp == startUp) &&
const DeepCollectionEquality().equals(other.files, files) &&
(identical(other.fs, fs) || other.fs == fs) &&
(identical(other.curPath, curPath) || other.curPath == curPath) &&
(identical(other.endMessage, endMessage) ||
other.endMessage == endMessage) &&
(identical(other.tempOpenFile, tempOpenFile) ||
other.tempOpenFile == tempOpenFile) &&
(identical(other.errorMessage, errorMessage) ||
other.errorMessage == errorMessage));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,startUp,const DeepCollectionEquality().hash(files),fs,curPath,endMessage,tempOpenFile,errorMessage);
runtimeType,
startUp,
const DeepCollectionEquality().hash(files),
fs,
curPath,
endMessage,
tempOpenFile,
errorMessage);
@override @override
String toString({ DiagnosticLevel minLevel = DiagnosticLevel.info }) { String toString({ DiagnosticLevel minLevel = DiagnosticLevel.info }) {
return 'Unp4kcState(startUp: $startUp, files: $files, fs: $fs, curPath: $curPath, endMessage: $endMessage, tempOpenFile: $tempOpenFile, errorMessage: $errorMessage)'; return 'Unp4kcState(startUp: $startUp, files: $files, fs: $fs, curPath: $curPath, endMessage: $endMessage, tempOpenFile: $tempOpenFile, errorMessage: $errorMessage)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class $Unp4kcStateCopyWith<$Res> { abstract mixin class $Unp4kcStateCopyWith<$Res> {
factory $Unp4kcStateCopyWith( factory $Unp4kcStateCopyWith(Unp4kcState value, $Res Function(Unp4kcState) _then) = _$Unp4kcStateCopyWithImpl;
Unp4kcState value, $Res Function(Unp4kcState) _then) =
_$Unp4kcStateCopyWithImpl;
@useResult @useResult
$Res call( $Res call({
{bool startUp, bool startUp, Map<String, AppUnp4kP4kItemData>? files, MemoryFileSystem? fs, String curPath, String? endMessage, MapEntry<String, String>? tempOpenFile, String errorMessage
Map<String, AppUnp4kP4kItemData>? files, });
MemoryFileSystem? fs,
String curPath,
String? endMessage,
MapEntry<String, String>? tempOpenFile,
String errorMessage});
}
}
/// @nodoc /// @nodoc
class _$Unp4kcStateCopyWithImpl<$Res> implements $Unp4kcStateCopyWith<$Res> { class _$Unp4kcStateCopyWithImpl<$Res>
implements $Unp4kcStateCopyWith<$Res> {
_$Unp4kcStateCopyWithImpl(this._self, this._then); _$Unp4kcStateCopyWithImpl(this._self, this._then);
final Unp4kcState _self; final Unp4kcState _self;
@ -102,68 +68,162 @@ class _$Unp4kcStateCopyWithImpl<$Res> implements $Unp4kcStateCopyWith<$Res> {
/// Create a copy of Unp4kcState /// Create a copy of Unp4kcState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline') @override $Res call({Object? startUp = null,Object? files = freezed,Object? fs = freezed,Object? curPath = null,Object? endMessage = freezed,Object? tempOpenFile = freezed,Object? errorMessage = null,}) {
@override
$Res call({
Object? startUp = null,
Object? files = freezed,
Object? fs = freezed,
Object? curPath = null,
Object? endMessage = freezed,
Object? tempOpenFile = freezed,
Object? errorMessage = null,
}) {
return _then(_self.copyWith( return _then(_self.copyWith(
startUp: null == startUp startUp: null == startUp ? _self.startUp : startUp // ignore: cast_nullable_to_non_nullable
? _self.startUp as bool,files: freezed == files ? _self.files : files // ignore: cast_nullable_to_non_nullable
: startUp // ignore: cast_nullable_to_non_nullable as Map<String, AppUnp4kP4kItemData>?,fs: freezed == fs ? _self.fs : fs // ignore: cast_nullable_to_non_nullable
as bool, as MemoryFileSystem?,curPath: null == curPath ? _self.curPath : curPath // ignore: cast_nullable_to_non_nullable
files: freezed == files as String,endMessage: freezed == endMessage ? _self.endMessage : endMessage // ignore: cast_nullable_to_non_nullable
? _self.files as String?,tempOpenFile: freezed == tempOpenFile ? _self.tempOpenFile : tempOpenFile // ignore: cast_nullable_to_non_nullable
: files // ignore: cast_nullable_to_non_nullable as MapEntry<String, String>?,errorMessage: null == errorMessage ? _self.errorMessage : errorMessage // ignore: cast_nullable_to_non_nullable
as Map<String, AppUnp4kP4kItemData>?,
fs: freezed == fs
? _self.fs
: fs // ignore: cast_nullable_to_non_nullable
as MemoryFileSystem?,
curPath: null == curPath
? _self.curPath
: curPath // ignore: cast_nullable_to_non_nullable
as String,
endMessage: freezed == endMessage
? _self.endMessage
: endMessage // ignore: cast_nullable_to_non_nullable
as String?,
tempOpenFile: freezed == tempOpenFile
? _self.tempOpenFile
: tempOpenFile // ignore: cast_nullable_to_non_nullable
as MapEntry<String, String>?,
errorMessage: null == errorMessage
? _self.errorMessage
: errorMessage // ignore: cast_nullable_to_non_nullable
as String, as String,
)); ));
} }
}
/// Adds pattern-matching-related methods to [Unp4kcState].
extension Unp4kcStatePatterns on Unp4kcState {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _Unp4kcState value)? $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _Unp4kcState() when $default != null:
return $default(_that);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _Unp4kcState value) $default,){
final _that = this;
switch (_that) {
case _Unp4kcState():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _Unp4kcState value)? $default,){
final _that = this;
switch (_that) {
case _Unp4kcState() when $default != null:
return $default(_that);case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( bool startUp, Map<String, AppUnp4kP4kItemData>? files, MemoryFileSystem? fs, String curPath, String? endMessage, MapEntry<String, String>? tempOpenFile, String errorMessage)? $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _Unp4kcState() when $default != null:
return $default(_that.startUp,_that.files,_that.fs,_that.curPath,_that.endMessage,_that.tempOpenFile,_that.errorMessage);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( bool startUp, Map<String, AppUnp4kP4kItemData>? files, MemoryFileSystem? fs, String curPath, String? endMessage, MapEntry<String, String>? tempOpenFile, String errorMessage) $default,) {final _that = this;
switch (_that) {
case _Unp4kcState():
return $default(_that.startUp,_that.files,_that.fs,_that.curPath,_that.endMessage,_that.tempOpenFile,_that.errorMessage);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( bool startUp, Map<String, AppUnp4kP4kItemData>? files, MemoryFileSystem? fs, String curPath, String? endMessage, MapEntry<String, String>? tempOpenFile, String errorMessage)? $default,) {final _that = this;
switch (_that) {
case _Unp4kcState() when $default != null:
return $default(_that.startUp,_that.files,_that.fs,_that.curPath,_that.endMessage,_that.tempOpenFile,_that.errorMessage);case _:
return null;
}
}
} }
/// @nodoc /// @nodoc
class _Unp4kcState with DiagnosticableTreeMixin implements Unp4kcState {
const _Unp4kcState(
{required this.startUp,
final Map<String, AppUnp4kP4kItemData>? files,
this.fs,
required this.curPath,
this.endMessage,
this.tempOpenFile,
this.errorMessage = ""})
: _files = files;
@override class _Unp4kcState with DiagnosticableTreeMixin implements Unp4kcState {
final bool startUp; const _Unp4kcState({required this.startUp, final Map<String, AppUnp4kP4kItemData>? files, this.fs, required this.curPath, this.endMessage, this.tempOpenFile, this.errorMessage = ""}): _files = files;
@override final bool startUp;
final Map<String, AppUnp4kP4kItemData>? _files; final Map<String, AppUnp4kP4kItemData>? _files;
@override @override Map<String, AppUnp4kP4kItemData>? get files {
Map<String, AppUnp4kP4kItemData>? get files {
final value = _files; final value = _files;
if (value == null) return null; if (value == null) return null;
if (_files is EqualUnmodifiableMapView) return _files; if (_files is EqualUnmodifiableMapView) return _files;
@ -171,93 +231,58 @@ class _Unp4kcState with DiagnosticableTreeMixin implements Unp4kcState {
return EqualUnmodifiableMapView(value); return EqualUnmodifiableMapView(value);
} }
@override @override final MemoryFileSystem? fs;
final MemoryFileSystem? fs; @override final String curPath;
@override @override final String? endMessage;
final String curPath; @override final MapEntry<String, String>? tempOpenFile;
@override @override@JsonKey() final String errorMessage;
final String? endMessage;
@override
final MapEntry<String, String>? tempOpenFile;
@override
@JsonKey()
final String errorMessage;
/// Create a copy of Unp4kcState /// Create a copy of Unp4kcState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
_$Unp4kcStateCopyWith<_Unp4kcState> get copyWith => _$Unp4kcStateCopyWith<_Unp4kcState> get copyWith => __$Unp4kcStateCopyWithImpl<_Unp4kcState>(this, _$identity);
__$Unp4kcStateCopyWithImpl<_Unp4kcState>(this, _$identity);
@override @override
void debugFillProperties(DiagnosticPropertiesBuilder properties) { void debugFillProperties(DiagnosticPropertiesBuilder properties) {
properties properties
..add(DiagnosticsProperty('type', 'Unp4kcState')) ..add(DiagnosticsProperty('type', 'Unp4kcState'))
..add(DiagnosticsProperty('startUp', startUp)) ..add(DiagnosticsProperty('startUp', startUp))..add(DiagnosticsProperty('files', files))..add(DiagnosticsProperty('fs', fs))..add(DiagnosticsProperty('curPath', curPath))..add(DiagnosticsProperty('endMessage', endMessage))..add(DiagnosticsProperty('tempOpenFile', tempOpenFile))..add(DiagnosticsProperty('errorMessage', errorMessage));
..add(DiagnosticsProperty('files', files))
..add(DiagnosticsProperty('fs', fs))
..add(DiagnosticsProperty('curPath', curPath))
..add(DiagnosticsProperty('endMessage', endMessage))
..add(DiagnosticsProperty('tempOpenFile', tempOpenFile))
..add(DiagnosticsProperty('errorMessage', errorMessage));
} }
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is _Unp4kcState&&(identical(other.startUp, startUp) || other.startUp == startUp)&&const DeepCollectionEquality().equals(other._files, _files)&&(identical(other.fs, fs) || other.fs == fs)&&(identical(other.curPath, curPath) || other.curPath == curPath)&&(identical(other.endMessage, endMessage) || other.endMessage == endMessage)&&(identical(other.tempOpenFile, tempOpenFile) || other.tempOpenFile == tempOpenFile)&&(identical(other.errorMessage, errorMessage) || other.errorMessage == errorMessage));
(other.runtimeType == runtimeType &&
other is _Unp4kcState &&
(identical(other.startUp, startUp) || other.startUp == startUp) &&
const DeepCollectionEquality().equals(other._files, _files) &&
(identical(other.fs, fs) || other.fs == fs) &&
(identical(other.curPath, curPath) || other.curPath == curPath) &&
(identical(other.endMessage, endMessage) ||
other.endMessage == endMessage) &&
(identical(other.tempOpenFile, tempOpenFile) ||
other.tempOpenFile == tempOpenFile) &&
(identical(other.errorMessage, errorMessage) ||
other.errorMessage == errorMessage));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,startUp,const DeepCollectionEquality().hash(_files),fs,curPath,endMessage,tempOpenFile,errorMessage);
runtimeType,
startUp,
const DeepCollectionEquality().hash(_files),
fs,
curPath,
endMessage,
tempOpenFile,
errorMessage);
@override @override
String toString({ DiagnosticLevel minLevel = DiagnosticLevel.info }) { String toString({ DiagnosticLevel minLevel = DiagnosticLevel.info }) {
return 'Unp4kcState(startUp: $startUp, files: $files, fs: $fs, curPath: $curPath, endMessage: $endMessage, tempOpenFile: $tempOpenFile, errorMessage: $errorMessage)'; return 'Unp4kcState(startUp: $startUp, files: $files, fs: $fs, curPath: $curPath, endMessage: $endMessage, tempOpenFile: $tempOpenFile, errorMessage: $errorMessage)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class _$Unp4kcStateCopyWith<$Res> abstract mixin class _$Unp4kcStateCopyWith<$Res> implements $Unp4kcStateCopyWith<$Res> {
implements $Unp4kcStateCopyWith<$Res> { factory _$Unp4kcStateCopyWith(_Unp4kcState value, $Res Function(_Unp4kcState) _then) = __$Unp4kcStateCopyWithImpl;
factory _$Unp4kcStateCopyWith( @override @useResult
_Unp4kcState value, $Res Function(_Unp4kcState) _then) = $Res call({
__$Unp4kcStateCopyWithImpl; bool startUp, Map<String, AppUnp4kP4kItemData>? files, MemoryFileSystem? fs, String curPath, String? endMessage, MapEntry<String, String>? tempOpenFile, String errorMessage
@override });
@useResult
$Res call(
{bool startUp,
Map<String, AppUnp4kP4kItemData>? files,
MemoryFileSystem? fs,
String curPath,
String? endMessage,
MapEntry<String, String>? tempOpenFile,
String errorMessage});
}
}
/// @nodoc /// @nodoc
class __$Unp4kcStateCopyWithImpl<$Res> implements _$Unp4kcStateCopyWith<$Res> { class __$Unp4kcStateCopyWithImpl<$Res>
implements _$Unp4kcStateCopyWith<$Res> {
__$Unp4kcStateCopyWithImpl(this._self, this._then); __$Unp4kcStateCopyWithImpl(this._self, this._then);
final _Unp4kcState _self; final _Unp4kcState _self;
@ -265,48 +290,20 @@ class __$Unp4kcStateCopyWithImpl<$Res> implements _$Unp4kcStateCopyWith<$Res> {
/// Create a copy of Unp4kcState /// Create a copy of Unp4kcState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @pragma('vm:prefer-inline') $Res call({Object? startUp = null,Object? files = freezed,Object? fs = freezed,Object? curPath = null,Object? endMessage = freezed,Object? tempOpenFile = freezed,Object? errorMessage = null,}) {
@pragma('vm:prefer-inline')
$Res call({
Object? startUp = null,
Object? files = freezed,
Object? fs = freezed,
Object? curPath = null,
Object? endMessage = freezed,
Object? tempOpenFile = freezed,
Object? errorMessage = null,
}) {
return _then(_Unp4kcState( return _then(_Unp4kcState(
startUp: null == startUp startUp: null == startUp ? _self.startUp : startUp // ignore: cast_nullable_to_non_nullable
? _self.startUp as bool,files: freezed == files ? _self._files : files // ignore: cast_nullable_to_non_nullable
: startUp // ignore: cast_nullable_to_non_nullable as Map<String, AppUnp4kP4kItemData>?,fs: freezed == fs ? _self.fs : fs // ignore: cast_nullable_to_non_nullable
as bool, as MemoryFileSystem?,curPath: null == curPath ? _self.curPath : curPath // ignore: cast_nullable_to_non_nullable
files: freezed == files as String,endMessage: freezed == endMessage ? _self.endMessage : endMessage // ignore: cast_nullable_to_non_nullable
? _self._files as String?,tempOpenFile: freezed == tempOpenFile ? _self.tempOpenFile : tempOpenFile // ignore: cast_nullable_to_non_nullable
: files // ignore: cast_nullable_to_non_nullable as MapEntry<String, String>?,errorMessage: null == errorMessage ? _self.errorMessage : errorMessage // ignore: cast_nullable_to_non_nullable
as Map<String, AppUnp4kP4kItemData>?,
fs: freezed == fs
? _self.fs
: fs // ignore: cast_nullable_to_non_nullable
as MemoryFileSystem?,
curPath: null == curPath
? _self.curPath
: curPath // ignore: cast_nullable_to_non_nullable
as String,
endMessage: freezed == endMessage
? _self.endMessage
: endMessage // ignore: cast_nullable_to_non_nullable
as String?,
tempOpenFile: freezed == tempOpenFile
? _self.tempOpenFile
: tempOpenFile // ignore: cast_nullable_to_non_nullable
as MapEntry<String, String>?,
errorMessage: null == errorMessage
? _self.errorMessage
: errorMessage // ignore: cast_nullable_to_non_nullable
as String, as String,
)); ));
} }
} }
// dart format on // dart format on

View File

@ -14,8 +14,9 @@ final unp4kCModelProvider =
AutoDisposeNotifierProvider<Unp4kCModel, Unp4kcState>.internal( AutoDisposeNotifierProvider<Unp4kCModel, Unp4kcState>.internal(
Unp4kCModel.new, Unp4kCModel.new,
name: r'unp4kCModelProvider', name: r'unp4kCModelProvider',
debugGetCreateSourceHash: debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
const bool.fromEnvironment('dart.vm.product') ? null : _$unp4kCModelHash, ? null
: _$unp4kCModelHash,
dependencies: null, dependencies: null,
allTransitiveDependencies: null, allTransitiveDependencies: null,
); );

View File

@ -48,7 +48,7 @@ class HomeGameLoginUIModel extends _$HomeGameLoginUIModel {
final homeState = ref.read(homeUIModelProvider); final homeState = ref.read(homeUIModelProvider);
if (!context.mounted) return; if (!context.mounted) return;
goWebView(context, S.current.home_action_login_rsi_account, goWebView(context, S.current.home_action_login_rsi_account,
"https://robertsspaceindustries.com/en/connect?jumpto=%2Fconnect", "https://robertsspaceindustries.com/en/connect?jumpto=/account/dashboard",
loginMode: true, rsiLoginCallback: (message, ok) async { loginMode: true, rsiLoginCallback: (message, ok) async {
// dPrint( // dPrint(
// "======rsiLoginCallback=== $ok ===== data==\n${json.encode(message)}"); // "======rsiLoginCallback=== $ok ===== data==\n${json.encode(message)}");

View File

@ -1,6 +1,5 @@
// dart format width=80
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// ignore_for_file: type=lint // 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 // 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
@ -12,90 +11,47 @@ part of 'home_game_login_dialog_ui_model.dart';
// dart format off // dart format off
T _$identity<T>(T value) => value; T _$identity<T>(T value) => value;
/// @nodoc /// @nodoc
mixin _$HomeGameLoginState { mixin _$HomeGameLoginState {
int get loginStatus;
String? get nickname;
String? get avatarUrl;
String? get authToken;
String? get webToken;
Map? get releaseInfo;
RsiGameLibraryData? get libraryData;
String? get installPath;
bool? get isDeviceSupportWinHello;
int get loginStatus; String? get nickname; String? get avatarUrl; String? get authToken; String? get webToken; Map? get releaseInfo; RsiGameLibraryData? get libraryData; String? get installPath; bool? get isDeviceSupportWinHello;
/// Create a copy of HomeGameLoginState /// Create a copy of HomeGameLoginState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
$HomeGameLoginStateCopyWith<HomeGameLoginState> get copyWith => $HomeGameLoginStateCopyWith<HomeGameLoginState> get copyWith => _$HomeGameLoginStateCopyWithImpl<HomeGameLoginState>(this as HomeGameLoginState, _$identity);
_$HomeGameLoginStateCopyWithImpl<HomeGameLoginState>(
this as HomeGameLoginState, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is HomeGameLoginState&&(identical(other.loginStatus, loginStatus) || other.loginStatus == loginStatus)&&(identical(other.nickname, nickname) || other.nickname == nickname)&&(identical(other.avatarUrl, avatarUrl) || other.avatarUrl == avatarUrl)&&(identical(other.authToken, authToken) || other.authToken == authToken)&&(identical(other.webToken, webToken) || other.webToken == webToken)&&const DeepCollectionEquality().equals(other.releaseInfo, releaseInfo)&&(identical(other.libraryData, libraryData) || other.libraryData == libraryData)&&(identical(other.installPath, installPath) || other.installPath == installPath)&&(identical(other.isDeviceSupportWinHello, isDeviceSupportWinHello) || other.isDeviceSupportWinHello == isDeviceSupportWinHello));
(other.runtimeType == runtimeType &&
other is HomeGameLoginState &&
(identical(other.loginStatus, loginStatus) ||
other.loginStatus == loginStatus) &&
(identical(other.nickname, nickname) ||
other.nickname == nickname) &&
(identical(other.avatarUrl, avatarUrl) ||
other.avatarUrl == avatarUrl) &&
(identical(other.authToken, authToken) ||
other.authToken == authToken) &&
(identical(other.webToken, webToken) ||
other.webToken == webToken) &&
const DeepCollectionEquality()
.equals(other.releaseInfo, releaseInfo) &&
(identical(other.libraryData, libraryData) ||
other.libraryData == libraryData) &&
(identical(other.installPath, installPath) ||
other.installPath == installPath) &&
(identical(
other.isDeviceSupportWinHello, isDeviceSupportWinHello) ||
other.isDeviceSupportWinHello == isDeviceSupportWinHello));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,loginStatus,nickname,avatarUrl,authToken,webToken,const DeepCollectionEquality().hash(releaseInfo),libraryData,installPath,isDeviceSupportWinHello);
runtimeType,
loginStatus,
nickname,
avatarUrl,
authToken,
webToken,
const DeepCollectionEquality().hash(releaseInfo),
libraryData,
installPath,
isDeviceSupportWinHello);
@override @override
String toString() { String toString() {
return 'HomeGameLoginState(loginStatus: $loginStatus, nickname: $nickname, avatarUrl: $avatarUrl, authToken: $authToken, webToken: $webToken, releaseInfo: $releaseInfo, libraryData: $libraryData, installPath: $installPath, isDeviceSupportWinHello: $isDeviceSupportWinHello)'; return 'HomeGameLoginState(loginStatus: $loginStatus, nickname: $nickname, avatarUrl: $avatarUrl, authToken: $authToken, webToken: $webToken, releaseInfo: $releaseInfo, libraryData: $libraryData, installPath: $installPath, isDeviceSupportWinHello: $isDeviceSupportWinHello)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class $HomeGameLoginStateCopyWith<$Res> { abstract mixin class $HomeGameLoginStateCopyWith<$Res> {
factory $HomeGameLoginStateCopyWith( factory $HomeGameLoginStateCopyWith(HomeGameLoginState value, $Res Function(HomeGameLoginState) _then) = _$HomeGameLoginStateCopyWithImpl;
HomeGameLoginState value, $Res Function(HomeGameLoginState) _then) =
_$HomeGameLoginStateCopyWithImpl;
@useResult @useResult
$Res call( $Res call({
{int loginStatus, int loginStatus, String? nickname, String? avatarUrl, String? authToken, String? webToken, Map? releaseInfo, RsiGameLibraryData? libraryData, String? installPath, bool? isDeviceSupportWinHello
String? nickname, });
String? avatarUrl,
String? authToken,
String? webToken,
Map? releaseInfo,
RsiGameLibraryData? libraryData,
String? installPath,
bool? isDeviceSupportWinHello});
}
}
/// @nodoc /// @nodoc
class _$HomeGameLoginStateCopyWithImpl<$Res> class _$HomeGameLoginStateCopyWithImpl<$Res>
implements $HomeGameLoginStateCopyWith<$Res> { implements $HomeGameLoginStateCopyWith<$Res> {
@ -106,88 +62,168 @@ class _$HomeGameLoginStateCopyWithImpl<$Res>
/// Create a copy of HomeGameLoginState /// Create a copy of HomeGameLoginState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline') @override $Res call({Object? loginStatus = null,Object? nickname = freezed,Object? avatarUrl = freezed,Object? authToken = freezed,Object? webToken = freezed,Object? releaseInfo = freezed,Object? libraryData = freezed,Object? installPath = freezed,Object? isDeviceSupportWinHello = freezed,}) {
@override
$Res call({
Object? loginStatus = null,
Object? nickname = freezed,
Object? avatarUrl = freezed,
Object? authToken = freezed,
Object? webToken = freezed,
Object? releaseInfo = freezed,
Object? libraryData = freezed,
Object? installPath = freezed,
Object? isDeviceSupportWinHello = freezed,
}) {
return _then(_self.copyWith( return _then(_self.copyWith(
loginStatus: null == loginStatus loginStatus: null == loginStatus ? _self.loginStatus : loginStatus // ignore: cast_nullable_to_non_nullable
? _self.loginStatus as int,nickname: freezed == nickname ? _self.nickname : nickname // ignore: cast_nullable_to_non_nullable
: loginStatus // ignore: cast_nullable_to_non_nullable as String?,avatarUrl: freezed == avatarUrl ? _self.avatarUrl : avatarUrl // ignore: cast_nullable_to_non_nullable
as int, as String?,authToken: freezed == authToken ? _self.authToken : authToken // ignore: cast_nullable_to_non_nullable
nickname: freezed == nickname as String?,webToken: freezed == webToken ? _self.webToken : webToken // ignore: cast_nullable_to_non_nullable
? _self.nickname as String?,releaseInfo: freezed == releaseInfo ? _self.releaseInfo : releaseInfo // ignore: cast_nullable_to_non_nullable
: nickname // ignore: cast_nullable_to_non_nullable as Map?,libraryData: freezed == libraryData ? _self.libraryData : libraryData // ignore: cast_nullable_to_non_nullable
as String?, as RsiGameLibraryData?,installPath: freezed == installPath ? _self.installPath : installPath // ignore: cast_nullable_to_non_nullable
avatarUrl: freezed == avatarUrl as String?,isDeviceSupportWinHello: freezed == isDeviceSupportWinHello ? _self.isDeviceSupportWinHello : isDeviceSupportWinHello // ignore: cast_nullable_to_non_nullable
? _self.avatarUrl
: avatarUrl // ignore: cast_nullable_to_non_nullable
as String?,
authToken: freezed == authToken
? _self.authToken
: authToken // ignore: cast_nullable_to_non_nullable
as String?,
webToken: freezed == webToken
? _self.webToken
: webToken // ignore: cast_nullable_to_non_nullable
as String?,
releaseInfo: freezed == releaseInfo
? _self.releaseInfo
: releaseInfo // ignore: cast_nullable_to_non_nullable
as Map?,
libraryData: freezed == libraryData
? _self.libraryData
: libraryData // ignore: cast_nullable_to_non_nullable
as RsiGameLibraryData?,
installPath: freezed == installPath
? _self.installPath
: installPath // ignore: cast_nullable_to_non_nullable
as String?,
isDeviceSupportWinHello: freezed == isDeviceSupportWinHello
? _self.isDeviceSupportWinHello
: isDeviceSupportWinHello // ignore: cast_nullable_to_non_nullable
as bool?, as bool?,
)); ));
} }
}
/// Adds pattern-matching-related methods to [HomeGameLoginState].
extension HomeGameLoginStatePatterns on HomeGameLoginState {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _LoginStatus value)? $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _LoginStatus() when $default != null:
return $default(_that);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _LoginStatus value) $default,){
final _that = this;
switch (_that) {
case _LoginStatus():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _LoginStatus value)? $default,){
final _that = this;
switch (_that) {
case _LoginStatus() when $default != null:
return $default(_that);case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( int loginStatus, String? nickname, String? avatarUrl, String? authToken, String? webToken, Map? releaseInfo, RsiGameLibraryData? libraryData, String? installPath, bool? isDeviceSupportWinHello)? $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _LoginStatus() when $default != null:
return $default(_that.loginStatus,_that.nickname,_that.avatarUrl,_that.authToken,_that.webToken,_that.releaseInfo,_that.libraryData,_that.installPath,_that.isDeviceSupportWinHello);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( int loginStatus, String? nickname, String? avatarUrl, String? authToken, String? webToken, Map? releaseInfo, RsiGameLibraryData? libraryData, String? installPath, bool? isDeviceSupportWinHello) $default,) {final _that = this;
switch (_that) {
case _LoginStatus():
return $default(_that.loginStatus,_that.nickname,_that.avatarUrl,_that.authToken,_that.webToken,_that.releaseInfo,_that.libraryData,_that.installPath,_that.isDeviceSupportWinHello);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( int loginStatus, String? nickname, String? avatarUrl, String? authToken, String? webToken, Map? releaseInfo, RsiGameLibraryData? libraryData, String? installPath, bool? isDeviceSupportWinHello)? $default,) {final _that = this;
switch (_that) {
case _LoginStatus() when $default != null:
return $default(_that.loginStatus,_that.nickname,_that.avatarUrl,_that.authToken,_that.webToken,_that.releaseInfo,_that.libraryData,_that.installPath,_that.isDeviceSupportWinHello);case _:
return null;
}
}
} }
/// @nodoc /// @nodoc
class _LoginStatus implements HomeGameLoginState {
_LoginStatus(
{required this.loginStatus,
this.nickname,
this.avatarUrl,
this.authToken,
this.webToken,
final Map? releaseInfo,
this.libraryData,
this.installPath,
this.isDeviceSupportWinHello})
: _releaseInfo = releaseInfo;
@override class _LoginStatus implements HomeGameLoginState {
final int loginStatus; _LoginStatus({required this.loginStatus, this.nickname, this.avatarUrl, this.authToken, this.webToken, final Map? releaseInfo, this.libraryData, this.installPath, this.isDeviceSupportWinHello}): _releaseInfo = releaseInfo;
@override
final String? nickname;
@override @override final int loginStatus;
final String? avatarUrl; @override final String? nickname;
@override @override final String? avatarUrl;
final String? authToken; @override final String? authToken;
@override @override final String? webToken;
final String? webToken;
final Map? _releaseInfo; final Map? _releaseInfo;
@override @override Map? get releaseInfo {
Map? get releaseInfo {
final value = _releaseInfo; final value = _releaseInfo;
if (value == null) return null; if (value == null) return null;
if (_releaseInfo is EqualUnmodifiableMapView) return _releaseInfo; if (_releaseInfo is EqualUnmodifiableMapView) return _releaseInfo;
@ -195,88 +231,50 @@ class _LoginStatus implements HomeGameLoginState {
return EqualUnmodifiableMapView(value); return EqualUnmodifiableMapView(value);
} }
@override @override final RsiGameLibraryData? libraryData;
final RsiGameLibraryData? libraryData; @override final String? installPath;
@override @override final bool? isDeviceSupportWinHello;
final String? installPath;
@override
final bool? isDeviceSupportWinHello;
/// Create a copy of HomeGameLoginState /// Create a copy of HomeGameLoginState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
_$LoginStatusCopyWith<_LoginStatus> get copyWith => _$LoginStatusCopyWith<_LoginStatus> get copyWith => __$LoginStatusCopyWithImpl<_LoginStatus>(this, _$identity);
__$LoginStatusCopyWithImpl<_LoginStatus>(this, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is _LoginStatus&&(identical(other.loginStatus, loginStatus) || other.loginStatus == loginStatus)&&(identical(other.nickname, nickname) || other.nickname == nickname)&&(identical(other.avatarUrl, avatarUrl) || other.avatarUrl == avatarUrl)&&(identical(other.authToken, authToken) || other.authToken == authToken)&&(identical(other.webToken, webToken) || other.webToken == webToken)&&const DeepCollectionEquality().equals(other._releaseInfo, _releaseInfo)&&(identical(other.libraryData, libraryData) || other.libraryData == libraryData)&&(identical(other.installPath, installPath) || other.installPath == installPath)&&(identical(other.isDeviceSupportWinHello, isDeviceSupportWinHello) || other.isDeviceSupportWinHello == isDeviceSupportWinHello));
(other.runtimeType == runtimeType &&
other is _LoginStatus &&
(identical(other.loginStatus, loginStatus) ||
other.loginStatus == loginStatus) &&
(identical(other.nickname, nickname) ||
other.nickname == nickname) &&
(identical(other.avatarUrl, avatarUrl) ||
other.avatarUrl == avatarUrl) &&
(identical(other.authToken, authToken) ||
other.authToken == authToken) &&
(identical(other.webToken, webToken) ||
other.webToken == webToken) &&
const DeepCollectionEquality()
.equals(other._releaseInfo, _releaseInfo) &&
(identical(other.libraryData, libraryData) ||
other.libraryData == libraryData) &&
(identical(other.installPath, installPath) ||
other.installPath == installPath) &&
(identical(
other.isDeviceSupportWinHello, isDeviceSupportWinHello) ||
other.isDeviceSupportWinHello == isDeviceSupportWinHello));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,loginStatus,nickname,avatarUrl,authToken,webToken,const DeepCollectionEquality().hash(_releaseInfo),libraryData,installPath,isDeviceSupportWinHello);
runtimeType,
loginStatus,
nickname,
avatarUrl,
authToken,
webToken,
const DeepCollectionEquality().hash(_releaseInfo),
libraryData,
installPath,
isDeviceSupportWinHello);
@override @override
String toString() { String toString() {
return 'HomeGameLoginState(loginStatus: $loginStatus, nickname: $nickname, avatarUrl: $avatarUrl, authToken: $authToken, webToken: $webToken, releaseInfo: $releaseInfo, libraryData: $libraryData, installPath: $installPath, isDeviceSupportWinHello: $isDeviceSupportWinHello)'; return 'HomeGameLoginState(loginStatus: $loginStatus, nickname: $nickname, avatarUrl: $avatarUrl, authToken: $authToken, webToken: $webToken, releaseInfo: $releaseInfo, libraryData: $libraryData, installPath: $installPath, isDeviceSupportWinHello: $isDeviceSupportWinHello)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class _$LoginStatusCopyWith<$Res> abstract mixin class _$LoginStatusCopyWith<$Res> implements $HomeGameLoginStateCopyWith<$Res> {
implements $HomeGameLoginStateCopyWith<$Res> { factory _$LoginStatusCopyWith(_LoginStatus value, $Res Function(_LoginStatus) _then) = __$LoginStatusCopyWithImpl;
factory _$LoginStatusCopyWith( @override @useResult
_LoginStatus value, $Res Function(_LoginStatus) _then) = $Res call({
__$LoginStatusCopyWithImpl; int loginStatus, String? nickname, String? avatarUrl, String? authToken, String? webToken, Map? releaseInfo, RsiGameLibraryData? libraryData, String? installPath, bool? isDeviceSupportWinHello
@override });
@useResult
$Res call(
{int loginStatus,
String? nickname,
String? avatarUrl,
String? authToken,
String? webToken,
Map? releaseInfo,
RsiGameLibraryData? libraryData,
String? installPath,
bool? isDeviceSupportWinHello});
}
}
/// @nodoc /// @nodoc
class __$LoginStatusCopyWithImpl<$Res> implements _$LoginStatusCopyWith<$Res> { class __$LoginStatusCopyWithImpl<$Res>
implements _$LoginStatusCopyWith<$Res> {
__$LoginStatusCopyWithImpl(this._self, this._then); __$LoginStatusCopyWithImpl(this._self, this._then);
final _LoginStatus _self; final _LoginStatus _self;
@ -284,58 +282,22 @@ class __$LoginStatusCopyWithImpl<$Res> implements _$LoginStatusCopyWith<$Res> {
/// Create a copy of HomeGameLoginState /// Create a copy of HomeGameLoginState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @pragma('vm:prefer-inline') $Res call({Object? loginStatus = null,Object? nickname = freezed,Object? avatarUrl = freezed,Object? authToken = freezed,Object? webToken = freezed,Object? releaseInfo = freezed,Object? libraryData = freezed,Object? installPath = freezed,Object? isDeviceSupportWinHello = freezed,}) {
@pragma('vm:prefer-inline')
$Res call({
Object? loginStatus = null,
Object? nickname = freezed,
Object? avatarUrl = freezed,
Object? authToken = freezed,
Object? webToken = freezed,
Object? releaseInfo = freezed,
Object? libraryData = freezed,
Object? installPath = freezed,
Object? isDeviceSupportWinHello = freezed,
}) {
return _then(_LoginStatus( return _then(_LoginStatus(
loginStatus: null == loginStatus loginStatus: null == loginStatus ? _self.loginStatus : loginStatus // ignore: cast_nullable_to_non_nullable
? _self.loginStatus as int,nickname: freezed == nickname ? _self.nickname : nickname // ignore: cast_nullable_to_non_nullable
: loginStatus // ignore: cast_nullable_to_non_nullable as String?,avatarUrl: freezed == avatarUrl ? _self.avatarUrl : avatarUrl // ignore: cast_nullable_to_non_nullable
as int, as String?,authToken: freezed == authToken ? _self.authToken : authToken // ignore: cast_nullable_to_non_nullable
nickname: freezed == nickname as String?,webToken: freezed == webToken ? _self.webToken : webToken // ignore: cast_nullable_to_non_nullable
? _self.nickname as String?,releaseInfo: freezed == releaseInfo ? _self._releaseInfo : releaseInfo // ignore: cast_nullable_to_non_nullable
: nickname // ignore: cast_nullable_to_non_nullable as Map?,libraryData: freezed == libraryData ? _self.libraryData : libraryData // ignore: cast_nullable_to_non_nullable
as String?, as RsiGameLibraryData?,installPath: freezed == installPath ? _self.installPath : installPath // ignore: cast_nullable_to_non_nullable
avatarUrl: freezed == avatarUrl as String?,isDeviceSupportWinHello: freezed == isDeviceSupportWinHello ? _self.isDeviceSupportWinHello : isDeviceSupportWinHello // ignore: cast_nullable_to_non_nullable
? _self.avatarUrl
: avatarUrl // ignore: cast_nullable_to_non_nullable
as String?,
authToken: freezed == authToken
? _self.authToken
: authToken // ignore: cast_nullable_to_non_nullable
as String?,
webToken: freezed == webToken
? _self.webToken
: webToken // ignore: cast_nullable_to_non_nullable
as String?,
releaseInfo: freezed == releaseInfo
? _self._releaseInfo
: releaseInfo // ignore: cast_nullable_to_non_nullable
as Map?,
libraryData: freezed == libraryData
? _self.libraryData
: libraryData // ignore: cast_nullable_to_non_nullable
as RsiGameLibraryData?,
installPath: freezed == installPath
? _self.installPath
: installPath // ignore: cast_nullable_to_non_nullable
as String?,
isDeviceSupportWinHello: freezed == isDeviceSupportWinHello
? _self.isDeviceSupportWinHello
: isDeviceSupportWinHello // ignore: cast_nullable_to_non_nullable
as bool?, as bool?,
)); ));
} }
} }
// dart format on // dart format on

View File

@ -7,12 +7,15 @@ part of 'home_game_login_dialog_ui_model.dart';
// ************************************************************************** // **************************************************************************
String _$homeGameLoginUIModelHash() => String _$homeGameLoginUIModelHash() =>
r'85533839693681a697ea7e0b5de9ac766a46d41e'; r'3cd0f87f1c71ce8a3731d4cfe69cbaf5b295ca9e';
/// See also [HomeGameLoginUIModel]. /// See also [HomeGameLoginUIModel].
@ProviderFor(HomeGameLoginUIModel) @ProviderFor(HomeGameLoginUIModel)
final homeGameLoginUIModelProvider = AutoDisposeNotifierProvider< final homeGameLoginUIModelProvider =
HomeGameLoginUIModel, HomeGameLoginState>.internal( AutoDisposeNotifierProvider<
HomeGameLoginUIModel,
HomeGameLoginState
>.internal(
HomeGameLoginUIModel.new, HomeGameLoginUIModel.new,
name: r'homeGameLoginUIModelProvider', name: r'homeGameLoginUIModelProvider',
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')

View File

@ -1,6 +1,5 @@
// dart format width=80
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// ignore_for_file: type=lint // 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 // 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
@ -12,63 +11,47 @@ part of 'home_downloader_ui_model.dart';
// dart format off // dart format off
T _$identity<T>(T value) => value; T _$identity<T>(T value) => value;
/// @nodoc /// @nodoc
mixin _$HomeDownloaderUIState { mixin _$HomeDownloaderUIState {
List<Aria2Task> get tasks;
List<Aria2Task> get waitingTasks;
List<Aria2Task> get stoppedTasks;
Aria2GlobalStat? get globalStat;
List<Aria2Task> get tasks; List<Aria2Task> get waitingTasks; List<Aria2Task> get stoppedTasks; Aria2GlobalStat? get globalStat;
/// Create a copy of HomeDownloaderUIState /// Create a copy of HomeDownloaderUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
$HomeDownloaderUIStateCopyWith<HomeDownloaderUIState> get copyWith => $HomeDownloaderUIStateCopyWith<HomeDownloaderUIState> get copyWith => _$HomeDownloaderUIStateCopyWithImpl<HomeDownloaderUIState>(this as HomeDownloaderUIState, _$identity);
_$HomeDownloaderUIStateCopyWithImpl<HomeDownloaderUIState>(
this as HomeDownloaderUIState, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is HomeDownloaderUIState&&const DeepCollectionEquality().equals(other.tasks, tasks)&&const DeepCollectionEquality().equals(other.waitingTasks, waitingTasks)&&const DeepCollectionEquality().equals(other.stoppedTasks, stoppedTasks)&&(identical(other.globalStat, globalStat) || other.globalStat == globalStat));
(other.runtimeType == runtimeType &&
other is HomeDownloaderUIState &&
const DeepCollectionEquality().equals(other.tasks, tasks) &&
const DeepCollectionEquality()
.equals(other.waitingTasks, waitingTasks) &&
const DeepCollectionEquality()
.equals(other.stoppedTasks, stoppedTasks) &&
(identical(other.globalStat, globalStat) ||
other.globalStat == globalStat));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(tasks),const DeepCollectionEquality().hash(waitingTasks),const DeepCollectionEquality().hash(stoppedTasks),globalStat);
runtimeType,
const DeepCollectionEquality().hash(tasks),
const DeepCollectionEquality().hash(waitingTasks),
const DeepCollectionEquality().hash(stoppedTasks),
globalStat);
@override @override
String toString() { String toString() {
return 'HomeDownloaderUIState(tasks: $tasks, waitingTasks: $waitingTasks, stoppedTasks: $stoppedTasks, globalStat: $globalStat)'; return 'HomeDownloaderUIState(tasks: $tasks, waitingTasks: $waitingTasks, stoppedTasks: $stoppedTasks, globalStat: $globalStat)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class $HomeDownloaderUIStateCopyWith<$Res> { abstract mixin class $HomeDownloaderUIStateCopyWith<$Res> {
factory $HomeDownloaderUIStateCopyWith(HomeDownloaderUIState value, factory $HomeDownloaderUIStateCopyWith(HomeDownloaderUIState value, $Res Function(HomeDownloaderUIState) _then) = _$HomeDownloaderUIStateCopyWithImpl;
$Res Function(HomeDownloaderUIState) _then) =
_$HomeDownloaderUIStateCopyWithImpl;
@useResult @useResult
$Res call( $Res call({
{List<Aria2Task> tasks, List<Aria2Task> tasks, List<Aria2Task> waitingTasks, List<Aria2Task> stoppedTasks, Aria2GlobalStat? globalStat
List<Aria2Task> waitingTasks, });
List<Aria2Task> stoppedTasks,
Aria2GlobalStat? globalStat});
}
}
/// @nodoc /// @nodoc
class _$HomeDownloaderUIStateCopyWithImpl<$Res> class _$HomeDownloaderUIStateCopyWithImpl<$Res>
implements $HomeDownloaderUIStateCopyWith<$Res> { implements $HomeDownloaderUIStateCopyWith<$Res> {
@ -79,129 +62,216 @@ class _$HomeDownloaderUIStateCopyWithImpl<$Res>
/// Create a copy of HomeDownloaderUIState /// Create a copy of HomeDownloaderUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline') @override $Res call({Object? tasks = null,Object? waitingTasks = null,Object? stoppedTasks = null,Object? globalStat = freezed,}) {
@override
$Res call({
Object? tasks = null,
Object? waitingTasks = null,
Object? stoppedTasks = null,
Object? globalStat = freezed,
}) {
return _then(_self.copyWith( return _then(_self.copyWith(
tasks: null == tasks tasks: null == tasks ? _self.tasks : tasks // ignore: cast_nullable_to_non_nullable
? _self.tasks as List<Aria2Task>,waitingTasks: null == waitingTasks ? _self.waitingTasks : waitingTasks // ignore: cast_nullable_to_non_nullable
: tasks // ignore: cast_nullable_to_non_nullable as List<Aria2Task>,stoppedTasks: null == stoppedTasks ? _self.stoppedTasks : stoppedTasks // ignore: cast_nullable_to_non_nullable
as List<Aria2Task>, as List<Aria2Task>,globalStat: freezed == globalStat ? _self.globalStat : globalStat // ignore: cast_nullable_to_non_nullable
waitingTasks: null == waitingTasks
? _self.waitingTasks
: waitingTasks // ignore: cast_nullable_to_non_nullable
as List<Aria2Task>,
stoppedTasks: null == stoppedTasks
? _self.stoppedTasks
: stoppedTasks // ignore: cast_nullable_to_non_nullable
as List<Aria2Task>,
globalStat: freezed == globalStat
? _self.globalStat
: globalStat // ignore: cast_nullable_to_non_nullable
as Aria2GlobalStat?, as Aria2GlobalStat?,
)); ));
} }
}
/// Adds pattern-matching-related methods to [HomeDownloaderUIState].
extension HomeDownloaderUIStatePatterns on HomeDownloaderUIState {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _HomeDownloaderUIState value)? $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _HomeDownloaderUIState() when $default != null:
return $default(_that);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _HomeDownloaderUIState value) $default,){
final _that = this;
switch (_that) {
case _HomeDownloaderUIState():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _HomeDownloaderUIState value)? $default,){
final _that = this;
switch (_that) {
case _HomeDownloaderUIState() when $default != null:
return $default(_that);case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( List<Aria2Task> tasks, List<Aria2Task> waitingTasks, List<Aria2Task> stoppedTasks, Aria2GlobalStat? globalStat)? $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _HomeDownloaderUIState() when $default != null:
return $default(_that.tasks,_that.waitingTasks,_that.stoppedTasks,_that.globalStat);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( List<Aria2Task> tasks, List<Aria2Task> waitingTasks, List<Aria2Task> stoppedTasks, Aria2GlobalStat? globalStat) $default,) {final _that = this;
switch (_that) {
case _HomeDownloaderUIState():
return $default(_that.tasks,_that.waitingTasks,_that.stoppedTasks,_that.globalStat);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( List<Aria2Task> tasks, List<Aria2Task> waitingTasks, List<Aria2Task> stoppedTasks, Aria2GlobalStat? globalStat)? $default,) {final _that = this;
switch (_that) {
case _HomeDownloaderUIState() when $default != null:
return $default(_that.tasks,_that.waitingTasks,_that.stoppedTasks,_that.globalStat);case _:
return null;
}
}
} }
/// @nodoc /// @nodoc
class _HomeDownloaderUIState implements HomeDownloaderUIState { class _HomeDownloaderUIState implements HomeDownloaderUIState {
_HomeDownloaderUIState( _HomeDownloaderUIState({final List<Aria2Task> tasks = const [], final List<Aria2Task> waitingTasks = const [], final List<Aria2Task> stoppedTasks = const [], this.globalStat}): _tasks = tasks,_waitingTasks = waitingTasks,_stoppedTasks = stoppedTasks;
{final List<Aria2Task> tasks = const [],
final List<Aria2Task> waitingTasks = const [],
final List<Aria2Task> stoppedTasks = const [],
this.globalStat})
: _tasks = tasks,
_waitingTasks = waitingTasks,
_stoppedTasks = stoppedTasks;
final List<Aria2Task> _tasks; final List<Aria2Task> _tasks;
@override @override@JsonKey() List<Aria2Task> get tasks {
@JsonKey()
List<Aria2Task> get tasks {
if (_tasks is EqualUnmodifiableListView) return _tasks; if (_tasks is EqualUnmodifiableListView) return _tasks;
// ignore: implicit_dynamic_type // ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_tasks); return EqualUnmodifiableListView(_tasks);
} }
final List<Aria2Task> _waitingTasks; final List<Aria2Task> _waitingTasks;
@override @override@JsonKey() List<Aria2Task> get waitingTasks {
@JsonKey()
List<Aria2Task> get waitingTasks {
if (_waitingTasks is EqualUnmodifiableListView) return _waitingTasks; if (_waitingTasks is EqualUnmodifiableListView) return _waitingTasks;
// ignore: implicit_dynamic_type // ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_waitingTasks); return EqualUnmodifiableListView(_waitingTasks);
} }
final List<Aria2Task> _stoppedTasks; final List<Aria2Task> _stoppedTasks;
@override @override@JsonKey() List<Aria2Task> get stoppedTasks {
@JsonKey()
List<Aria2Task> get stoppedTasks {
if (_stoppedTasks is EqualUnmodifiableListView) return _stoppedTasks; if (_stoppedTasks is EqualUnmodifiableListView) return _stoppedTasks;
// ignore: implicit_dynamic_type // ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_stoppedTasks); return EqualUnmodifiableListView(_stoppedTasks);
} }
@override @override final Aria2GlobalStat? globalStat;
final Aria2GlobalStat? globalStat;
/// Create a copy of HomeDownloaderUIState /// Create a copy of HomeDownloaderUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
_$HomeDownloaderUIStateCopyWith<_HomeDownloaderUIState> get copyWith => _$HomeDownloaderUIStateCopyWith<_HomeDownloaderUIState> get copyWith => __$HomeDownloaderUIStateCopyWithImpl<_HomeDownloaderUIState>(this, _$identity);
__$HomeDownloaderUIStateCopyWithImpl<_HomeDownloaderUIState>(
this, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is _HomeDownloaderUIState&&const DeepCollectionEquality().equals(other._tasks, _tasks)&&const DeepCollectionEquality().equals(other._waitingTasks, _waitingTasks)&&const DeepCollectionEquality().equals(other._stoppedTasks, _stoppedTasks)&&(identical(other.globalStat, globalStat) || other.globalStat == globalStat));
(other.runtimeType == runtimeType &&
other is _HomeDownloaderUIState &&
const DeepCollectionEquality().equals(other._tasks, _tasks) &&
const DeepCollectionEquality()
.equals(other._waitingTasks, _waitingTasks) &&
const DeepCollectionEquality()
.equals(other._stoppedTasks, _stoppedTasks) &&
(identical(other.globalStat, globalStat) ||
other.globalStat == globalStat));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(_tasks),const DeepCollectionEquality().hash(_waitingTasks),const DeepCollectionEquality().hash(_stoppedTasks),globalStat);
runtimeType,
const DeepCollectionEquality().hash(_tasks),
const DeepCollectionEquality().hash(_waitingTasks),
const DeepCollectionEquality().hash(_stoppedTasks),
globalStat);
@override @override
String toString() { String toString() {
return 'HomeDownloaderUIState(tasks: $tasks, waitingTasks: $waitingTasks, stoppedTasks: $stoppedTasks, globalStat: $globalStat)'; return 'HomeDownloaderUIState(tasks: $tasks, waitingTasks: $waitingTasks, stoppedTasks: $stoppedTasks, globalStat: $globalStat)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class _$HomeDownloaderUIStateCopyWith<$Res> abstract mixin class _$HomeDownloaderUIStateCopyWith<$Res> implements $HomeDownloaderUIStateCopyWith<$Res> {
implements $HomeDownloaderUIStateCopyWith<$Res> { factory _$HomeDownloaderUIStateCopyWith(_HomeDownloaderUIState value, $Res Function(_HomeDownloaderUIState) _then) = __$HomeDownloaderUIStateCopyWithImpl;
factory _$HomeDownloaderUIStateCopyWith(_HomeDownloaderUIState value, @override @useResult
$Res Function(_HomeDownloaderUIState) _then) = $Res call({
__$HomeDownloaderUIStateCopyWithImpl; List<Aria2Task> tasks, List<Aria2Task> waitingTasks, List<Aria2Task> stoppedTasks, Aria2GlobalStat? globalStat
@override });
@useResult
$Res call(
{List<Aria2Task> tasks,
List<Aria2Task> waitingTasks,
List<Aria2Task> stoppedTasks,
Aria2GlobalStat? globalStat});
}
}
/// @nodoc /// @nodoc
class __$HomeDownloaderUIStateCopyWithImpl<$Res> class __$HomeDownloaderUIStateCopyWithImpl<$Res>
implements _$HomeDownloaderUIStateCopyWith<$Res> { implements _$HomeDownloaderUIStateCopyWith<$Res> {
@ -212,33 +282,17 @@ class __$HomeDownloaderUIStateCopyWithImpl<$Res>
/// Create a copy of HomeDownloaderUIState /// Create a copy of HomeDownloaderUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @pragma('vm:prefer-inline') $Res call({Object? tasks = null,Object? waitingTasks = null,Object? stoppedTasks = null,Object? globalStat = freezed,}) {
@pragma('vm:prefer-inline')
$Res call({
Object? tasks = null,
Object? waitingTasks = null,
Object? stoppedTasks = null,
Object? globalStat = freezed,
}) {
return _then(_HomeDownloaderUIState( return _then(_HomeDownloaderUIState(
tasks: null == tasks tasks: null == tasks ? _self._tasks : tasks // ignore: cast_nullable_to_non_nullable
? _self._tasks as List<Aria2Task>,waitingTasks: null == waitingTasks ? _self._waitingTasks : waitingTasks // ignore: cast_nullable_to_non_nullable
: tasks // ignore: cast_nullable_to_non_nullable as List<Aria2Task>,stoppedTasks: null == stoppedTasks ? _self._stoppedTasks : stoppedTasks // ignore: cast_nullable_to_non_nullable
as List<Aria2Task>, as List<Aria2Task>,globalStat: freezed == globalStat ? _self.globalStat : globalStat // ignore: cast_nullable_to_non_nullable
waitingTasks: null == waitingTasks
? _self._waitingTasks
: waitingTasks // ignore: cast_nullable_to_non_nullable
as List<Aria2Task>,
stoppedTasks: null == stoppedTasks
? _self._stoppedTasks
: stoppedTasks // ignore: cast_nullable_to_non_nullable
as List<Aria2Task>,
globalStat: freezed == globalStat
? _self.globalStat
: globalStat // ignore: cast_nullable_to_non_nullable
as Aria2GlobalStat?, as Aria2GlobalStat?,
)); ));
} }
} }
// dart format on // dart format on

View File

@ -11,8 +11,11 @@ String _$homeDownloaderUIModelHash() =>
/// See also [HomeDownloaderUIModel]. /// See also [HomeDownloaderUIModel].
@ProviderFor(HomeDownloaderUIModel) @ProviderFor(HomeDownloaderUIModel)
final homeDownloaderUIModelProvider = AutoDisposeNotifierProvider< final homeDownloaderUIModelProvider =
HomeDownloaderUIModel, HomeDownloaderUIState>.internal( AutoDisposeNotifierProvider<
HomeDownloaderUIModel,
HomeDownloaderUIState
>.internal(
HomeDownloaderUIModel.new, HomeDownloaderUIModel.new,
name: r'homeDownloaderUIModelProvider', name: r'homeDownloaderUIModelProvider',
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')

View File

@ -1,6 +1,5 @@
// dart format width=80
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// ignore_for_file: type=lint // 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 // 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
@ -12,69 +11,47 @@ part of 'game_doctor_ui_model.dart';
// dart format off // dart format off
T _$identity<T>(T value) => value; T _$identity<T>(T value) => value;
/// @nodoc /// @nodoc
mixin _$HomeGameDoctorState { mixin _$HomeGameDoctorState {
bool get isChecking;
bool get isFixing;
String get lastScreenInfo;
String get isFixingString;
List<MapEntry<String, String>>? get checkResult;
bool get isChecking; bool get isFixing; String get lastScreenInfo; String get isFixingString; List<MapEntry<String, String>>? get checkResult;
/// Create a copy of HomeGameDoctorState /// Create a copy of HomeGameDoctorState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
$HomeGameDoctorStateCopyWith<HomeGameDoctorState> get copyWith => $HomeGameDoctorStateCopyWith<HomeGameDoctorState> get copyWith => _$HomeGameDoctorStateCopyWithImpl<HomeGameDoctorState>(this as HomeGameDoctorState, _$identity);
_$HomeGameDoctorStateCopyWithImpl<HomeGameDoctorState>(
this as HomeGameDoctorState, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is HomeGameDoctorState&&(identical(other.isChecking, isChecking) || other.isChecking == isChecking)&&(identical(other.isFixing, isFixing) || other.isFixing == isFixing)&&(identical(other.lastScreenInfo, lastScreenInfo) || other.lastScreenInfo == lastScreenInfo)&&(identical(other.isFixingString, isFixingString) || other.isFixingString == isFixingString)&&const DeepCollectionEquality().equals(other.checkResult, checkResult));
(other.runtimeType == runtimeType &&
other is HomeGameDoctorState &&
(identical(other.isChecking, isChecking) ||
other.isChecking == isChecking) &&
(identical(other.isFixing, isFixing) ||
other.isFixing == isFixing) &&
(identical(other.lastScreenInfo, lastScreenInfo) ||
other.lastScreenInfo == lastScreenInfo) &&
(identical(other.isFixingString, isFixingString) ||
other.isFixingString == isFixingString) &&
const DeepCollectionEquality()
.equals(other.checkResult, checkResult));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,isChecking,isFixing,lastScreenInfo,isFixingString,const DeepCollectionEquality().hash(checkResult));
runtimeType,
isChecking,
isFixing,
lastScreenInfo,
isFixingString,
const DeepCollectionEquality().hash(checkResult));
@override @override
String toString() { String toString() {
return 'HomeGameDoctorState(isChecking: $isChecking, isFixing: $isFixing, lastScreenInfo: $lastScreenInfo, isFixingString: $isFixingString, checkResult: $checkResult)'; return 'HomeGameDoctorState(isChecking: $isChecking, isFixing: $isFixing, lastScreenInfo: $lastScreenInfo, isFixingString: $isFixingString, checkResult: $checkResult)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class $HomeGameDoctorStateCopyWith<$Res> { abstract mixin class $HomeGameDoctorStateCopyWith<$Res> {
factory $HomeGameDoctorStateCopyWith( factory $HomeGameDoctorStateCopyWith(HomeGameDoctorState value, $Res Function(HomeGameDoctorState) _then) = _$HomeGameDoctorStateCopyWithImpl;
HomeGameDoctorState value, $Res Function(HomeGameDoctorState) _then) =
_$HomeGameDoctorStateCopyWithImpl;
@useResult @useResult
$Res call( $Res call({
{bool isChecking, bool isChecking, bool isFixing, String lastScreenInfo, String isFixingString, List<MapEntry<String, String>>? checkResult
bool isFixing, });
String lastScreenInfo,
String isFixingString,
List<MapEntry<String, String>>? checkResult});
}
}
/// @nodoc /// @nodoc
class _$HomeGameDoctorStateCopyWithImpl<$Res> class _$HomeGameDoctorStateCopyWithImpl<$Res>
implements $HomeGameDoctorStateCopyWith<$Res> { implements $HomeGameDoctorStateCopyWith<$Res> {
@ -85,66 +62,163 @@ class _$HomeGameDoctorStateCopyWithImpl<$Res>
/// Create a copy of HomeGameDoctorState /// Create a copy of HomeGameDoctorState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline') @override $Res call({Object? isChecking = null,Object? isFixing = null,Object? lastScreenInfo = null,Object? isFixingString = null,Object? checkResult = freezed,}) {
@override
$Res call({
Object? isChecking = null,
Object? isFixing = null,
Object? lastScreenInfo = null,
Object? isFixingString = null,
Object? checkResult = freezed,
}) {
return _then(_self.copyWith( return _then(_self.copyWith(
isChecking: null == isChecking isChecking: null == isChecking ? _self.isChecking : isChecking // ignore: cast_nullable_to_non_nullable
? _self.isChecking as bool,isFixing: null == isFixing ? _self.isFixing : isFixing // ignore: cast_nullable_to_non_nullable
: isChecking // ignore: cast_nullable_to_non_nullable as bool,lastScreenInfo: null == lastScreenInfo ? _self.lastScreenInfo : lastScreenInfo // ignore: cast_nullable_to_non_nullable
as bool, as String,isFixingString: null == isFixingString ? _self.isFixingString : isFixingString // ignore: cast_nullable_to_non_nullable
isFixing: null == isFixing as String,checkResult: freezed == checkResult ? _self.checkResult : checkResult // ignore: cast_nullable_to_non_nullable
? _self.isFixing
: isFixing // ignore: cast_nullable_to_non_nullable
as bool,
lastScreenInfo: null == lastScreenInfo
? _self.lastScreenInfo
: lastScreenInfo // ignore: cast_nullable_to_non_nullable
as String,
isFixingString: null == isFixingString
? _self.isFixingString
: isFixingString // ignore: cast_nullable_to_non_nullable
as String,
checkResult: freezed == checkResult
? _self.checkResult
: checkResult // ignore: cast_nullable_to_non_nullable
as List<MapEntry<String, String>>?, as List<MapEntry<String, String>>?,
)); ));
} }
}
/// Adds pattern-matching-related methods to [HomeGameDoctorState].
extension HomeGameDoctorStatePatterns on HomeGameDoctorState {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _HomeGameDoctorState value)? $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _HomeGameDoctorState() when $default != null:
return $default(_that);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _HomeGameDoctorState value) $default,){
final _that = this;
switch (_that) {
case _HomeGameDoctorState():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _HomeGameDoctorState value)? $default,){
final _that = this;
switch (_that) {
case _HomeGameDoctorState() when $default != null:
return $default(_that);case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( bool isChecking, bool isFixing, String lastScreenInfo, String isFixingString, List<MapEntry<String, String>>? checkResult)? $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _HomeGameDoctorState() when $default != null:
return $default(_that.isChecking,_that.isFixing,_that.lastScreenInfo,_that.isFixingString,_that.checkResult);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( bool isChecking, bool isFixing, String lastScreenInfo, String isFixingString, List<MapEntry<String, String>>? checkResult) $default,) {final _that = this;
switch (_that) {
case _HomeGameDoctorState():
return $default(_that.isChecking,_that.isFixing,_that.lastScreenInfo,_that.isFixingString,_that.checkResult);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( bool isChecking, bool isFixing, String lastScreenInfo, String isFixingString, List<MapEntry<String, String>>? checkResult)? $default,) {final _that = this;
switch (_that) {
case _HomeGameDoctorState() when $default != null:
return $default(_that.isChecking,_that.isFixing,_that.lastScreenInfo,_that.isFixingString,_that.checkResult);case _:
return null;
}
}
} }
/// @nodoc /// @nodoc
class _HomeGameDoctorState implements HomeGameDoctorState {
_HomeGameDoctorState(
{this.isChecking = false,
this.isFixing = false,
this.lastScreenInfo = "",
this.isFixingString = "",
final List<MapEntry<String, String>>? checkResult})
: _checkResult = checkResult;
@override class _HomeGameDoctorState implements HomeGameDoctorState {
@JsonKey() _HomeGameDoctorState({this.isChecking = false, this.isFixing = false, this.lastScreenInfo = "", this.isFixingString = "", final List<MapEntry<String, String>>? checkResult}): _checkResult = checkResult;
final bool isChecking;
@override
@JsonKey() @override@JsonKey() final bool isChecking;
final bool isFixing; @override@JsonKey() final bool isFixing;
@override @override@JsonKey() final String lastScreenInfo;
@JsonKey() @override@JsonKey() final String isFixingString;
final String lastScreenInfo;
@override
@JsonKey()
final String isFixingString;
final List<MapEntry<String, String>>? _checkResult; final List<MapEntry<String, String>>? _checkResult;
@override @override List<MapEntry<String, String>>? get checkResult {
List<MapEntry<String, String>>? get checkResult {
final value = _checkResult; final value = _checkResult;
if (value == null) return null; if (value == null) return null;
if (_checkResult is EqualUnmodifiableListView) return _checkResult; if (_checkResult is EqualUnmodifiableListView) return _checkResult;
@ -152,63 +226,44 @@ class _HomeGameDoctorState implements HomeGameDoctorState {
return EqualUnmodifiableListView(value); return EqualUnmodifiableListView(value);
} }
/// Create a copy of HomeGameDoctorState /// Create a copy of HomeGameDoctorState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
_$HomeGameDoctorStateCopyWith<_HomeGameDoctorState> get copyWith => _$HomeGameDoctorStateCopyWith<_HomeGameDoctorState> get copyWith => __$HomeGameDoctorStateCopyWithImpl<_HomeGameDoctorState>(this, _$identity);
__$HomeGameDoctorStateCopyWithImpl<_HomeGameDoctorState>(
this, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is _HomeGameDoctorState&&(identical(other.isChecking, isChecking) || other.isChecking == isChecking)&&(identical(other.isFixing, isFixing) || other.isFixing == isFixing)&&(identical(other.lastScreenInfo, lastScreenInfo) || other.lastScreenInfo == lastScreenInfo)&&(identical(other.isFixingString, isFixingString) || other.isFixingString == isFixingString)&&const DeepCollectionEquality().equals(other._checkResult, _checkResult));
(other.runtimeType == runtimeType &&
other is _HomeGameDoctorState &&
(identical(other.isChecking, isChecking) ||
other.isChecking == isChecking) &&
(identical(other.isFixing, isFixing) ||
other.isFixing == isFixing) &&
(identical(other.lastScreenInfo, lastScreenInfo) ||
other.lastScreenInfo == lastScreenInfo) &&
(identical(other.isFixingString, isFixingString) ||
other.isFixingString == isFixingString) &&
const DeepCollectionEquality()
.equals(other._checkResult, _checkResult));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,isChecking,isFixing,lastScreenInfo,isFixingString,const DeepCollectionEquality().hash(_checkResult));
runtimeType,
isChecking,
isFixing,
lastScreenInfo,
isFixingString,
const DeepCollectionEquality().hash(_checkResult));
@override @override
String toString() { String toString() {
return 'HomeGameDoctorState(isChecking: $isChecking, isFixing: $isFixing, lastScreenInfo: $lastScreenInfo, isFixingString: $isFixingString, checkResult: $checkResult)'; return 'HomeGameDoctorState(isChecking: $isChecking, isFixing: $isFixing, lastScreenInfo: $lastScreenInfo, isFixingString: $isFixingString, checkResult: $checkResult)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class _$HomeGameDoctorStateCopyWith<$Res> abstract mixin class _$HomeGameDoctorStateCopyWith<$Res> implements $HomeGameDoctorStateCopyWith<$Res> {
implements $HomeGameDoctorStateCopyWith<$Res> { factory _$HomeGameDoctorStateCopyWith(_HomeGameDoctorState value, $Res Function(_HomeGameDoctorState) _then) = __$HomeGameDoctorStateCopyWithImpl;
factory _$HomeGameDoctorStateCopyWith(_HomeGameDoctorState value, @override @useResult
$Res Function(_HomeGameDoctorState) _then) = $Res call({
__$HomeGameDoctorStateCopyWithImpl; bool isChecking, bool isFixing, String lastScreenInfo, String isFixingString, List<MapEntry<String, String>>? checkResult
@override });
@useResult
$Res call(
{bool isChecking,
bool isFixing,
String lastScreenInfo,
String isFixingString,
List<MapEntry<String, String>>? checkResult});
}
}
/// @nodoc /// @nodoc
class __$HomeGameDoctorStateCopyWithImpl<$Res> class __$HomeGameDoctorStateCopyWithImpl<$Res>
implements _$HomeGameDoctorStateCopyWith<$Res> { implements _$HomeGameDoctorStateCopyWith<$Res> {
@ -219,38 +274,18 @@ class __$HomeGameDoctorStateCopyWithImpl<$Res>
/// Create a copy of HomeGameDoctorState /// Create a copy of HomeGameDoctorState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @pragma('vm:prefer-inline') $Res call({Object? isChecking = null,Object? isFixing = null,Object? lastScreenInfo = null,Object? isFixingString = null,Object? checkResult = freezed,}) {
@pragma('vm:prefer-inline')
$Res call({
Object? isChecking = null,
Object? isFixing = null,
Object? lastScreenInfo = null,
Object? isFixingString = null,
Object? checkResult = freezed,
}) {
return _then(_HomeGameDoctorState( return _then(_HomeGameDoctorState(
isChecking: null == isChecking isChecking: null == isChecking ? _self.isChecking : isChecking // ignore: cast_nullable_to_non_nullable
? _self.isChecking as bool,isFixing: null == isFixing ? _self.isFixing : isFixing // ignore: cast_nullable_to_non_nullable
: isChecking // ignore: cast_nullable_to_non_nullable as bool,lastScreenInfo: null == lastScreenInfo ? _self.lastScreenInfo : lastScreenInfo // ignore: cast_nullable_to_non_nullable
as bool, as String,isFixingString: null == isFixingString ? _self.isFixingString : isFixingString // ignore: cast_nullable_to_non_nullable
isFixing: null == isFixing as String,checkResult: freezed == checkResult ? _self._checkResult : checkResult // ignore: cast_nullable_to_non_nullable
? _self.isFixing
: isFixing // ignore: cast_nullable_to_non_nullable
as bool,
lastScreenInfo: null == lastScreenInfo
? _self.lastScreenInfo
: lastScreenInfo // ignore: cast_nullable_to_non_nullable
as String,
isFixingString: null == isFixingString
? _self.isFixingString
: isFixingString // ignore: cast_nullable_to_non_nullable
as String,
checkResult: freezed == checkResult
? _self._checkResult
: checkResult // ignore: cast_nullable_to_non_nullable
as List<MapEntry<String, String>>?, as List<MapEntry<String, String>>?,
)); ));
} }
} }
// dart format on // dart format on

View File

@ -11,8 +11,11 @@ String _$homeGameDoctorUIModelHash() =>
/// See also [HomeGameDoctorUIModel]. /// See also [HomeGameDoctorUIModel].
@ProviderFor(HomeGameDoctorUIModel) @ProviderFor(HomeGameDoctorUIModel)
final homeGameDoctorUIModelProvider = AutoDisposeNotifierProvider< final homeGameDoctorUIModelProvider =
HomeGameDoctorUIModel, HomeGameDoctorState>.internal( AutoDisposeNotifierProvider<
HomeGameDoctorUIModel,
HomeGameDoctorState
>.internal(
HomeGameDoctorUIModel.new, HomeGameDoctorUIModel.new,
name: r'homeGameDoctorUIModelProvider', name: r'homeGameDoctorUIModelProvider',
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')

View File

@ -1,6 +1,5 @@
// dart format width=80
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// ignore_for_file: type=lint // 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 // 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
@ -12,111 +11,47 @@ part of 'home_ui_model.dart';
// dart format off // dart format off
T _$identity<T>(T value) => value; T _$identity<T>(T value) => value;
/// @nodoc /// @nodoc
mixin _$HomeUIModelState { mixin _$HomeUIModelState {
AppPlacardData? get appPlacardData;
bool get isFixing;
String get isFixingString;
String? get scInstalledPath;
List<String> get scInstallPaths;
AppWebLocalizationVersionsData? get webLocalizationVersionsData;
String get lastScreenInfo;
List<RssItem>? get rssVideoItems;
List<RssItem>? get rssTextItems;
MapEntry<String, bool>? get localizationUpdateInfo;
List? get scServerStatus;
List<CountdownFestivalItemData>? get countdownFestivalListData;
Map<String, bool> get isGameRunning;
AppPlacardData? get appPlacardData; bool get isFixing; String get isFixingString; String? get scInstalledPath; List<String> get scInstallPaths; AppWebLocalizationVersionsData? get webLocalizationVersionsData; String get lastScreenInfo; List<RssItem>? get rssVideoItems; List<RssItem>? get rssTextItems; MapEntry<String, bool>? get localizationUpdateInfo; List? get scServerStatus; List<CountdownFestivalItemData>? get countdownFestivalListData; Map<String, bool> get isGameRunning;
/// Create a copy of HomeUIModelState /// Create a copy of HomeUIModelState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
$HomeUIModelStateCopyWith<HomeUIModelState> get copyWith => $HomeUIModelStateCopyWith<HomeUIModelState> get copyWith => _$HomeUIModelStateCopyWithImpl<HomeUIModelState>(this as HomeUIModelState, _$identity);
_$HomeUIModelStateCopyWithImpl<HomeUIModelState>(
this as HomeUIModelState, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is HomeUIModelState&&(identical(other.appPlacardData, appPlacardData) || other.appPlacardData == appPlacardData)&&(identical(other.isFixing, isFixing) || other.isFixing == isFixing)&&(identical(other.isFixingString, isFixingString) || other.isFixingString == isFixingString)&&(identical(other.scInstalledPath, scInstalledPath) || other.scInstalledPath == scInstalledPath)&&const DeepCollectionEquality().equals(other.scInstallPaths, scInstallPaths)&&(identical(other.webLocalizationVersionsData, webLocalizationVersionsData) || other.webLocalizationVersionsData == webLocalizationVersionsData)&&(identical(other.lastScreenInfo, lastScreenInfo) || other.lastScreenInfo == lastScreenInfo)&&const DeepCollectionEquality().equals(other.rssVideoItems, rssVideoItems)&&const DeepCollectionEquality().equals(other.rssTextItems, rssTextItems)&&(identical(other.localizationUpdateInfo, localizationUpdateInfo) || other.localizationUpdateInfo == localizationUpdateInfo)&&const DeepCollectionEquality().equals(other.scServerStatus, scServerStatus)&&const DeepCollectionEquality().equals(other.countdownFestivalListData, countdownFestivalListData)&&const DeepCollectionEquality().equals(other.isGameRunning, isGameRunning));
(other.runtimeType == runtimeType &&
other is HomeUIModelState &&
(identical(other.appPlacardData, appPlacardData) ||
other.appPlacardData == appPlacardData) &&
(identical(other.isFixing, isFixing) ||
other.isFixing == isFixing) &&
(identical(other.isFixingString, isFixingString) ||
other.isFixingString == isFixingString) &&
(identical(other.scInstalledPath, scInstalledPath) ||
other.scInstalledPath == scInstalledPath) &&
const DeepCollectionEquality()
.equals(other.scInstallPaths, scInstallPaths) &&
(identical(other.webLocalizationVersionsData,
webLocalizationVersionsData) ||
other.webLocalizationVersionsData ==
webLocalizationVersionsData) &&
(identical(other.lastScreenInfo, lastScreenInfo) ||
other.lastScreenInfo == lastScreenInfo) &&
const DeepCollectionEquality()
.equals(other.rssVideoItems, rssVideoItems) &&
const DeepCollectionEquality()
.equals(other.rssTextItems, rssTextItems) &&
(identical(other.localizationUpdateInfo, localizationUpdateInfo) ||
other.localizationUpdateInfo == localizationUpdateInfo) &&
const DeepCollectionEquality()
.equals(other.scServerStatus, scServerStatus) &&
const DeepCollectionEquality().equals(
other.countdownFestivalListData, countdownFestivalListData) &&
const DeepCollectionEquality()
.equals(other.isGameRunning, isGameRunning));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,appPlacardData,isFixing,isFixingString,scInstalledPath,const DeepCollectionEquality().hash(scInstallPaths),webLocalizationVersionsData,lastScreenInfo,const DeepCollectionEquality().hash(rssVideoItems),const DeepCollectionEquality().hash(rssTextItems),localizationUpdateInfo,const DeepCollectionEquality().hash(scServerStatus),const DeepCollectionEquality().hash(countdownFestivalListData),const DeepCollectionEquality().hash(isGameRunning));
runtimeType,
appPlacardData,
isFixing,
isFixingString,
scInstalledPath,
const DeepCollectionEquality().hash(scInstallPaths),
webLocalizationVersionsData,
lastScreenInfo,
const DeepCollectionEquality().hash(rssVideoItems),
const DeepCollectionEquality().hash(rssTextItems),
localizationUpdateInfo,
const DeepCollectionEquality().hash(scServerStatus),
const DeepCollectionEquality().hash(countdownFestivalListData),
const DeepCollectionEquality().hash(isGameRunning));
@override @override
String toString() { String toString() {
return 'HomeUIModelState(appPlacardData: $appPlacardData, isFixing: $isFixing, isFixingString: $isFixingString, scInstalledPath: $scInstalledPath, scInstallPaths: $scInstallPaths, webLocalizationVersionsData: $webLocalizationVersionsData, lastScreenInfo: $lastScreenInfo, rssVideoItems: $rssVideoItems, rssTextItems: $rssTextItems, localizationUpdateInfo: $localizationUpdateInfo, scServerStatus: $scServerStatus, countdownFestivalListData: $countdownFestivalListData, isGameRunning: $isGameRunning)'; return 'HomeUIModelState(appPlacardData: $appPlacardData, isFixing: $isFixing, isFixingString: $isFixingString, scInstalledPath: $scInstalledPath, scInstallPaths: $scInstallPaths, webLocalizationVersionsData: $webLocalizationVersionsData, lastScreenInfo: $lastScreenInfo, rssVideoItems: $rssVideoItems, rssTextItems: $rssTextItems, localizationUpdateInfo: $localizationUpdateInfo, scServerStatus: $scServerStatus, countdownFestivalListData: $countdownFestivalListData, isGameRunning: $isGameRunning)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class $HomeUIModelStateCopyWith<$Res> { abstract mixin class $HomeUIModelStateCopyWith<$Res> {
factory $HomeUIModelStateCopyWith( factory $HomeUIModelStateCopyWith(HomeUIModelState value, $Res Function(HomeUIModelState) _then) = _$HomeUIModelStateCopyWithImpl;
HomeUIModelState value, $Res Function(HomeUIModelState) _then) =
_$HomeUIModelStateCopyWithImpl;
@useResult @useResult
$Res call( $Res call({
{AppPlacardData? appPlacardData, AppPlacardData? appPlacardData, bool isFixing, String isFixingString, String? scInstalledPath, List<String> scInstallPaths, AppWebLocalizationVersionsData? webLocalizationVersionsData, String lastScreenInfo, List<RssItem>? rssVideoItems, List<RssItem>? rssTextItems, MapEntry<String, bool>? localizationUpdateInfo, List? scServerStatus, List<CountdownFestivalItemData>? countdownFestivalListData, Map<String, bool> isGameRunning
bool isFixing, });
String isFixingString,
String? scInstalledPath,
List<String> scInstallPaths,
AppWebLocalizationVersionsData? webLocalizationVersionsData,
String lastScreenInfo,
List<RssItem>? rssVideoItems,
List<RssItem>? rssTextItems,
MapEntry<String, bool>? localizationUpdateInfo,
List? scServerStatus,
List<CountdownFestivalItemData>? countdownFestivalListData,
Map<String, bool> isGameRunning});
}
}
/// @nodoc /// @nodoc
class _$HomeUIModelStateCopyWithImpl<$Res> class _$HomeUIModelStateCopyWithImpl<$Res>
implements $HomeUIModelStateCopyWith<$Res> { implements $HomeUIModelStateCopyWith<$Res> {
@ -127,131 +62,180 @@ class _$HomeUIModelStateCopyWithImpl<$Res>
/// Create a copy of HomeUIModelState /// Create a copy of HomeUIModelState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline') @override $Res call({Object? appPlacardData = freezed,Object? isFixing = null,Object? isFixingString = null,Object? scInstalledPath = freezed,Object? scInstallPaths = null,Object? webLocalizationVersionsData = freezed,Object? lastScreenInfo = null,Object? rssVideoItems = freezed,Object? rssTextItems = freezed,Object? localizationUpdateInfo = freezed,Object? scServerStatus = freezed,Object? countdownFestivalListData = freezed,Object? isGameRunning = null,}) {
@override
$Res call({
Object? appPlacardData = freezed,
Object? isFixing = null,
Object? isFixingString = null,
Object? scInstalledPath = freezed,
Object? scInstallPaths = null,
Object? webLocalizationVersionsData = freezed,
Object? lastScreenInfo = null,
Object? rssVideoItems = freezed,
Object? rssTextItems = freezed,
Object? localizationUpdateInfo = freezed,
Object? scServerStatus = freezed,
Object? countdownFestivalListData = freezed,
Object? isGameRunning = null,
}) {
return _then(_self.copyWith( return _then(_self.copyWith(
appPlacardData: freezed == appPlacardData appPlacardData: freezed == appPlacardData ? _self.appPlacardData : appPlacardData // ignore: cast_nullable_to_non_nullable
? _self.appPlacardData as AppPlacardData?,isFixing: null == isFixing ? _self.isFixing : isFixing // ignore: cast_nullable_to_non_nullable
: appPlacardData // ignore: cast_nullable_to_non_nullable as bool,isFixingString: null == isFixingString ? _self.isFixingString : isFixingString // ignore: cast_nullable_to_non_nullable
as AppPlacardData?, as String,scInstalledPath: freezed == scInstalledPath ? _self.scInstalledPath : scInstalledPath // ignore: cast_nullable_to_non_nullable
isFixing: null == isFixing as String?,scInstallPaths: null == scInstallPaths ? _self.scInstallPaths : scInstallPaths // ignore: cast_nullable_to_non_nullable
? _self.isFixing as List<String>,webLocalizationVersionsData: freezed == webLocalizationVersionsData ? _self.webLocalizationVersionsData : webLocalizationVersionsData // ignore: cast_nullable_to_non_nullable
: isFixing // ignore: cast_nullable_to_non_nullable as AppWebLocalizationVersionsData?,lastScreenInfo: null == lastScreenInfo ? _self.lastScreenInfo : lastScreenInfo // ignore: cast_nullable_to_non_nullable
as bool, as String,rssVideoItems: freezed == rssVideoItems ? _self.rssVideoItems : rssVideoItems // ignore: cast_nullable_to_non_nullable
isFixingString: null == isFixingString as List<RssItem>?,rssTextItems: freezed == rssTextItems ? _self.rssTextItems : rssTextItems // ignore: cast_nullable_to_non_nullable
? _self.isFixingString as List<RssItem>?,localizationUpdateInfo: freezed == localizationUpdateInfo ? _self.localizationUpdateInfo : localizationUpdateInfo // ignore: cast_nullable_to_non_nullable
: isFixingString // ignore: cast_nullable_to_non_nullable as MapEntry<String, bool>?,scServerStatus: freezed == scServerStatus ? _self.scServerStatus : scServerStatus // ignore: cast_nullable_to_non_nullable
as String, as List?,countdownFestivalListData: freezed == countdownFestivalListData ? _self.countdownFestivalListData : countdownFestivalListData // ignore: cast_nullable_to_non_nullable
scInstalledPath: freezed == scInstalledPath as List<CountdownFestivalItemData>?,isGameRunning: null == isGameRunning ? _self.isGameRunning : isGameRunning // ignore: cast_nullable_to_non_nullable
? _self.scInstalledPath
: scInstalledPath // ignore: cast_nullable_to_non_nullable
as String?,
scInstallPaths: null == scInstallPaths
? _self.scInstallPaths
: scInstallPaths // ignore: cast_nullable_to_non_nullable
as List<String>,
webLocalizationVersionsData: freezed == webLocalizationVersionsData
? _self.webLocalizationVersionsData
: webLocalizationVersionsData // ignore: cast_nullable_to_non_nullable
as AppWebLocalizationVersionsData?,
lastScreenInfo: null == lastScreenInfo
? _self.lastScreenInfo
: lastScreenInfo // ignore: cast_nullable_to_non_nullable
as String,
rssVideoItems: freezed == rssVideoItems
? _self.rssVideoItems
: rssVideoItems // ignore: cast_nullable_to_non_nullable
as List<RssItem>?,
rssTextItems: freezed == rssTextItems
? _self.rssTextItems
: rssTextItems // ignore: cast_nullable_to_non_nullable
as List<RssItem>?,
localizationUpdateInfo: freezed == localizationUpdateInfo
? _self.localizationUpdateInfo
: localizationUpdateInfo // ignore: cast_nullable_to_non_nullable
as MapEntry<String, bool>?,
scServerStatus: freezed == scServerStatus
? _self.scServerStatus
: scServerStatus // ignore: cast_nullable_to_non_nullable
as List?,
countdownFestivalListData: freezed == countdownFestivalListData
? _self.countdownFestivalListData
: countdownFestivalListData // ignore: cast_nullable_to_non_nullable
as List<CountdownFestivalItemData>?,
isGameRunning: null == isGameRunning
? _self.isGameRunning
: isGameRunning // ignore: cast_nullable_to_non_nullable
as Map<String, bool>, as Map<String, bool>,
)); ));
} }
}
/// Adds pattern-matching-related methods to [HomeUIModelState].
extension HomeUIModelStatePatterns on HomeUIModelState {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _HomeUIModelState value)? $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _HomeUIModelState() when $default != null:
return $default(_that);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _HomeUIModelState value) $default,){
final _that = this;
switch (_that) {
case _HomeUIModelState():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _HomeUIModelState value)? $default,){
final _that = this;
switch (_that) {
case _HomeUIModelState() when $default != null:
return $default(_that);case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( AppPlacardData? appPlacardData, bool isFixing, String isFixingString, String? scInstalledPath, List<String> scInstallPaths, AppWebLocalizationVersionsData? webLocalizationVersionsData, String lastScreenInfo, List<RssItem>? rssVideoItems, List<RssItem>? rssTextItems, MapEntry<String, bool>? localizationUpdateInfo, List? scServerStatus, List<CountdownFestivalItemData>? countdownFestivalListData, Map<String, bool> isGameRunning)? $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _HomeUIModelState() when $default != null:
return $default(_that.appPlacardData,_that.isFixing,_that.isFixingString,_that.scInstalledPath,_that.scInstallPaths,_that.webLocalizationVersionsData,_that.lastScreenInfo,_that.rssVideoItems,_that.rssTextItems,_that.localizationUpdateInfo,_that.scServerStatus,_that.countdownFestivalListData,_that.isGameRunning);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( AppPlacardData? appPlacardData, bool isFixing, String isFixingString, String? scInstalledPath, List<String> scInstallPaths, AppWebLocalizationVersionsData? webLocalizationVersionsData, String lastScreenInfo, List<RssItem>? rssVideoItems, List<RssItem>? rssTextItems, MapEntry<String, bool>? localizationUpdateInfo, List? scServerStatus, List<CountdownFestivalItemData>? countdownFestivalListData, Map<String, bool> isGameRunning) $default,) {final _that = this;
switch (_that) {
case _HomeUIModelState():
return $default(_that.appPlacardData,_that.isFixing,_that.isFixingString,_that.scInstalledPath,_that.scInstallPaths,_that.webLocalizationVersionsData,_that.lastScreenInfo,_that.rssVideoItems,_that.rssTextItems,_that.localizationUpdateInfo,_that.scServerStatus,_that.countdownFestivalListData,_that.isGameRunning);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( AppPlacardData? appPlacardData, bool isFixing, String isFixingString, String? scInstalledPath, List<String> scInstallPaths, AppWebLocalizationVersionsData? webLocalizationVersionsData, String lastScreenInfo, List<RssItem>? rssVideoItems, List<RssItem>? rssTextItems, MapEntry<String, bool>? localizationUpdateInfo, List? scServerStatus, List<CountdownFestivalItemData>? countdownFestivalListData, Map<String, bool> isGameRunning)? $default,) {final _that = this;
switch (_that) {
case _HomeUIModelState() when $default != null:
return $default(_that.appPlacardData,_that.isFixing,_that.isFixingString,_that.scInstalledPath,_that.scInstallPaths,_that.webLocalizationVersionsData,_that.lastScreenInfo,_that.rssVideoItems,_that.rssTextItems,_that.localizationUpdateInfo,_that.scServerStatus,_that.countdownFestivalListData,_that.isGameRunning);case _:
return null;
}
}
} }
/// @nodoc /// @nodoc
class _HomeUIModelState implements HomeUIModelState {
_HomeUIModelState(
{this.appPlacardData,
this.isFixing = false,
this.isFixingString = "",
this.scInstalledPath,
final List<String> scInstallPaths = const [],
this.webLocalizationVersionsData,
this.lastScreenInfo = "",
final List<RssItem>? rssVideoItems,
final List<RssItem>? rssTextItems,
this.localizationUpdateInfo,
final List? scServerStatus,
final List<CountdownFestivalItemData>? countdownFestivalListData,
final Map<String, bool> isGameRunning = const {}})
: _scInstallPaths = scInstallPaths,
_rssVideoItems = rssVideoItems,
_rssTextItems = rssTextItems,
_scServerStatus = scServerStatus,
_countdownFestivalListData = countdownFestivalListData,
_isGameRunning = isGameRunning;
@override class _HomeUIModelState implements HomeUIModelState {
final AppPlacardData? appPlacardData; _HomeUIModelState({this.appPlacardData, this.isFixing = false, this.isFixingString = "", this.scInstalledPath, final List<String> scInstallPaths = const [], this.webLocalizationVersionsData, this.lastScreenInfo = "", final List<RssItem>? rssVideoItems, final List<RssItem>? rssTextItems, this.localizationUpdateInfo, final List? scServerStatus, final List<CountdownFestivalItemData>? countdownFestivalListData, final Map<String, bool> isGameRunning = const {}}): _scInstallPaths = scInstallPaths,_rssVideoItems = rssVideoItems,_rssTextItems = rssTextItems,_scServerStatus = scServerStatus,_countdownFestivalListData = countdownFestivalListData,_isGameRunning = isGameRunning;
@override
@JsonKey()
final bool isFixing; @override final AppPlacardData? appPlacardData;
@override @override@JsonKey() final bool isFixing;
@JsonKey() @override@JsonKey() final String isFixingString;
final String isFixingString; @override final String? scInstalledPath;
@override
final String? scInstalledPath;
final List<String> _scInstallPaths; final List<String> _scInstallPaths;
@override @override@JsonKey() List<String> get scInstallPaths {
@JsonKey()
List<String> get scInstallPaths {
if (_scInstallPaths is EqualUnmodifiableListView) return _scInstallPaths; if (_scInstallPaths is EqualUnmodifiableListView) return _scInstallPaths;
// ignore: implicit_dynamic_type // ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_scInstallPaths); return EqualUnmodifiableListView(_scInstallPaths);
} }
@override @override final AppWebLocalizationVersionsData? webLocalizationVersionsData;
final AppWebLocalizationVersionsData? webLocalizationVersionsData; @override@JsonKey() final String lastScreenInfo;
@override
@JsonKey()
final String lastScreenInfo;
final List<RssItem>? _rssVideoItems; final List<RssItem>? _rssVideoItems;
@override @override List<RssItem>? get rssVideoItems {
List<RssItem>? get rssVideoItems {
final value = _rssVideoItems; final value = _rssVideoItems;
if (value == null) return null; if (value == null) return null;
if (_rssVideoItems is EqualUnmodifiableListView) return _rssVideoItems; if (_rssVideoItems is EqualUnmodifiableListView) return _rssVideoItems;
@ -260,8 +244,7 @@ class _HomeUIModelState implements HomeUIModelState {
} }
final List<RssItem>? _rssTextItems; final List<RssItem>? _rssTextItems;
@override @override List<RssItem>? get rssTextItems {
List<RssItem>? get rssTextItems {
final value = _rssTextItems; final value = _rssTextItems;
if (value == null) return null; if (value == null) return null;
if (_rssTextItems is EqualUnmodifiableListView) return _rssTextItems; if (_rssTextItems is EqualUnmodifiableListView) return _rssTextItems;
@ -269,11 +252,9 @@ class _HomeUIModelState implements HomeUIModelState {
return EqualUnmodifiableListView(value); return EqualUnmodifiableListView(value);
} }
@override @override final MapEntry<String, bool>? localizationUpdateInfo;
final MapEntry<String, bool>? localizationUpdateInfo;
final List? _scServerStatus; final List? _scServerStatus;
@override @override List? get scServerStatus {
List? get scServerStatus {
final value = _scServerStatus; final value = _scServerStatus;
if (value == null) return null; if (value == null) return null;
if (_scServerStatus is EqualUnmodifiableListView) return _scServerStatus; if (_scServerStatus is EqualUnmodifiableListView) return _scServerStatus;
@ -282,115 +263,59 @@ class _HomeUIModelState implements HomeUIModelState {
} }
final List<CountdownFestivalItemData>? _countdownFestivalListData; final List<CountdownFestivalItemData>? _countdownFestivalListData;
@override @override List<CountdownFestivalItemData>? get countdownFestivalListData {
List<CountdownFestivalItemData>? get countdownFestivalListData {
final value = _countdownFestivalListData; final value = _countdownFestivalListData;
if (value == null) return null; if (value == null) return null;
if (_countdownFestivalListData is EqualUnmodifiableListView) if (_countdownFestivalListData is EqualUnmodifiableListView) return _countdownFestivalListData;
return _countdownFestivalListData;
// ignore: implicit_dynamic_type // ignore: implicit_dynamic_type
return EqualUnmodifiableListView(value); return EqualUnmodifiableListView(value);
} }
final Map<String, bool> _isGameRunning; final Map<String, bool> _isGameRunning;
@override @override@JsonKey() Map<String, bool> get isGameRunning {
@JsonKey()
Map<String, bool> get isGameRunning {
if (_isGameRunning is EqualUnmodifiableMapView) return _isGameRunning; if (_isGameRunning is EqualUnmodifiableMapView) return _isGameRunning;
// ignore: implicit_dynamic_type // ignore: implicit_dynamic_type
return EqualUnmodifiableMapView(_isGameRunning); return EqualUnmodifiableMapView(_isGameRunning);
} }
/// Create a copy of HomeUIModelState /// Create a copy of HomeUIModelState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
_$HomeUIModelStateCopyWith<_HomeUIModelState> get copyWith => _$HomeUIModelStateCopyWith<_HomeUIModelState> get copyWith => __$HomeUIModelStateCopyWithImpl<_HomeUIModelState>(this, _$identity);
__$HomeUIModelStateCopyWithImpl<_HomeUIModelState>(this, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is _HomeUIModelState&&(identical(other.appPlacardData, appPlacardData) || other.appPlacardData == appPlacardData)&&(identical(other.isFixing, isFixing) || other.isFixing == isFixing)&&(identical(other.isFixingString, isFixingString) || other.isFixingString == isFixingString)&&(identical(other.scInstalledPath, scInstalledPath) || other.scInstalledPath == scInstalledPath)&&const DeepCollectionEquality().equals(other._scInstallPaths, _scInstallPaths)&&(identical(other.webLocalizationVersionsData, webLocalizationVersionsData) || other.webLocalizationVersionsData == webLocalizationVersionsData)&&(identical(other.lastScreenInfo, lastScreenInfo) || other.lastScreenInfo == lastScreenInfo)&&const DeepCollectionEquality().equals(other._rssVideoItems, _rssVideoItems)&&const DeepCollectionEquality().equals(other._rssTextItems, _rssTextItems)&&(identical(other.localizationUpdateInfo, localizationUpdateInfo) || other.localizationUpdateInfo == localizationUpdateInfo)&&const DeepCollectionEquality().equals(other._scServerStatus, _scServerStatus)&&const DeepCollectionEquality().equals(other._countdownFestivalListData, _countdownFestivalListData)&&const DeepCollectionEquality().equals(other._isGameRunning, _isGameRunning));
(other.runtimeType == runtimeType &&
other is _HomeUIModelState &&
(identical(other.appPlacardData, appPlacardData) ||
other.appPlacardData == appPlacardData) &&
(identical(other.isFixing, isFixing) ||
other.isFixing == isFixing) &&
(identical(other.isFixingString, isFixingString) ||
other.isFixingString == isFixingString) &&
(identical(other.scInstalledPath, scInstalledPath) ||
other.scInstalledPath == scInstalledPath) &&
const DeepCollectionEquality()
.equals(other._scInstallPaths, _scInstallPaths) &&
(identical(other.webLocalizationVersionsData,
webLocalizationVersionsData) ||
other.webLocalizationVersionsData ==
webLocalizationVersionsData) &&
(identical(other.lastScreenInfo, lastScreenInfo) ||
other.lastScreenInfo == lastScreenInfo) &&
const DeepCollectionEquality()
.equals(other._rssVideoItems, _rssVideoItems) &&
const DeepCollectionEquality()
.equals(other._rssTextItems, _rssTextItems) &&
(identical(other.localizationUpdateInfo, localizationUpdateInfo) ||
other.localizationUpdateInfo == localizationUpdateInfo) &&
const DeepCollectionEquality()
.equals(other._scServerStatus, _scServerStatus) &&
const DeepCollectionEquality().equals(
other._countdownFestivalListData, _countdownFestivalListData) &&
const DeepCollectionEquality()
.equals(other._isGameRunning, _isGameRunning));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,appPlacardData,isFixing,isFixingString,scInstalledPath,const DeepCollectionEquality().hash(_scInstallPaths),webLocalizationVersionsData,lastScreenInfo,const DeepCollectionEquality().hash(_rssVideoItems),const DeepCollectionEquality().hash(_rssTextItems),localizationUpdateInfo,const DeepCollectionEquality().hash(_scServerStatus),const DeepCollectionEquality().hash(_countdownFestivalListData),const DeepCollectionEquality().hash(_isGameRunning));
runtimeType,
appPlacardData,
isFixing,
isFixingString,
scInstalledPath,
const DeepCollectionEquality().hash(_scInstallPaths),
webLocalizationVersionsData,
lastScreenInfo,
const DeepCollectionEquality().hash(_rssVideoItems),
const DeepCollectionEquality().hash(_rssTextItems),
localizationUpdateInfo,
const DeepCollectionEquality().hash(_scServerStatus),
const DeepCollectionEquality().hash(_countdownFestivalListData),
const DeepCollectionEquality().hash(_isGameRunning));
@override @override
String toString() { String toString() {
return 'HomeUIModelState(appPlacardData: $appPlacardData, isFixing: $isFixing, isFixingString: $isFixingString, scInstalledPath: $scInstalledPath, scInstallPaths: $scInstallPaths, webLocalizationVersionsData: $webLocalizationVersionsData, lastScreenInfo: $lastScreenInfo, rssVideoItems: $rssVideoItems, rssTextItems: $rssTextItems, localizationUpdateInfo: $localizationUpdateInfo, scServerStatus: $scServerStatus, countdownFestivalListData: $countdownFestivalListData, isGameRunning: $isGameRunning)'; return 'HomeUIModelState(appPlacardData: $appPlacardData, isFixing: $isFixing, isFixingString: $isFixingString, scInstalledPath: $scInstalledPath, scInstallPaths: $scInstallPaths, webLocalizationVersionsData: $webLocalizationVersionsData, lastScreenInfo: $lastScreenInfo, rssVideoItems: $rssVideoItems, rssTextItems: $rssTextItems, localizationUpdateInfo: $localizationUpdateInfo, scServerStatus: $scServerStatus, countdownFestivalListData: $countdownFestivalListData, isGameRunning: $isGameRunning)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class _$HomeUIModelStateCopyWith<$Res> abstract mixin class _$HomeUIModelStateCopyWith<$Res> implements $HomeUIModelStateCopyWith<$Res> {
implements $HomeUIModelStateCopyWith<$Res> { factory _$HomeUIModelStateCopyWith(_HomeUIModelState value, $Res Function(_HomeUIModelState) _then) = __$HomeUIModelStateCopyWithImpl;
factory _$HomeUIModelStateCopyWith( @override @useResult
_HomeUIModelState value, $Res Function(_HomeUIModelState) _then) = $Res call({
__$HomeUIModelStateCopyWithImpl; AppPlacardData? appPlacardData, bool isFixing, String isFixingString, String? scInstalledPath, List<String> scInstallPaths, AppWebLocalizationVersionsData? webLocalizationVersionsData, String lastScreenInfo, List<RssItem>? rssVideoItems, List<RssItem>? rssTextItems, MapEntry<String, bool>? localizationUpdateInfo, List? scServerStatus, List<CountdownFestivalItemData>? countdownFestivalListData, Map<String, bool> isGameRunning
@override });
@useResult
$Res call(
{AppPlacardData? appPlacardData,
bool isFixing,
String isFixingString,
String? scInstalledPath,
List<String> scInstallPaths,
AppWebLocalizationVersionsData? webLocalizationVersionsData,
String lastScreenInfo,
List<RssItem>? rssVideoItems,
List<RssItem>? rssTextItems,
MapEntry<String, bool>? localizationUpdateInfo,
List? scServerStatus,
List<CountdownFestivalItemData>? countdownFestivalListData,
Map<String, bool> isGameRunning});
}
}
/// @nodoc /// @nodoc
class __$HomeUIModelStateCopyWithImpl<$Res> class __$HomeUIModelStateCopyWithImpl<$Res>
implements _$HomeUIModelStateCopyWith<$Res> { implements _$HomeUIModelStateCopyWith<$Res> {
@ -401,78 +326,26 @@ class __$HomeUIModelStateCopyWithImpl<$Res>
/// Create a copy of HomeUIModelState /// Create a copy of HomeUIModelState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @pragma('vm:prefer-inline') $Res call({Object? appPlacardData = freezed,Object? isFixing = null,Object? isFixingString = null,Object? scInstalledPath = freezed,Object? scInstallPaths = null,Object? webLocalizationVersionsData = freezed,Object? lastScreenInfo = null,Object? rssVideoItems = freezed,Object? rssTextItems = freezed,Object? localizationUpdateInfo = freezed,Object? scServerStatus = freezed,Object? countdownFestivalListData = freezed,Object? isGameRunning = null,}) {
@pragma('vm:prefer-inline')
$Res call({
Object? appPlacardData = freezed,
Object? isFixing = null,
Object? isFixingString = null,
Object? scInstalledPath = freezed,
Object? scInstallPaths = null,
Object? webLocalizationVersionsData = freezed,
Object? lastScreenInfo = null,
Object? rssVideoItems = freezed,
Object? rssTextItems = freezed,
Object? localizationUpdateInfo = freezed,
Object? scServerStatus = freezed,
Object? countdownFestivalListData = freezed,
Object? isGameRunning = null,
}) {
return _then(_HomeUIModelState( return _then(_HomeUIModelState(
appPlacardData: freezed == appPlacardData appPlacardData: freezed == appPlacardData ? _self.appPlacardData : appPlacardData // ignore: cast_nullable_to_non_nullable
? _self.appPlacardData as AppPlacardData?,isFixing: null == isFixing ? _self.isFixing : isFixing // ignore: cast_nullable_to_non_nullable
: appPlacardData // ignore: cast_nullable_to_non_nullable as bool,isFixingString: null == isFixingString ? _self.isFixingString : isFixingString // ignore: cast_nullable_to_non_nullable
as AppPlacardData?, as String,scInstalledPath: freezed == scInstalledPath ? _self.scInstalledPath : scInstalledPath // ignore: cast_nullable_to_non_nullable
isFixing: null == isFixing as String?,scInstallPaths: null == scInstallPaths ? _self._scInstallPaths : scInstallPaths // ignore: cast_nullable_to_non_nullable
? _self.isFixing as List<String>,webLocalizationVersionsData: freezed == webLocalizationVersionsData ? _self.webLocalizationVersionsData : webLocalizationVersionsData // ignore: cast_nullable_to_non_nullable
: isFixing // ignore: cast_nullable_to_non_nullable as AppWebLocalizationVersionsData?,lastScreenInfo: null == lastScreenInfo ? _self.lastScreenInfo : lastScreenInfo // ignore: cast_nullable_to_non_nullable
as bool, as String,rssVideoItems: freezed == rssVideoItems ? _self._rssVideoItems : rssVideoItems // ignore: cast_nullable_to_non_nullable
isFixingString: null == isFixingString as List<RssItem>?,rssTextItems: freezed == rssTextItems ? _self._rssTextItems : rssTextItems // ignore: cast_nullable_to_non_nullable
? _self.isFixingString as List<RssItem>?,localizationUpdateInfo: freezed == localizationUpdateInfo ? _self.localizationUpdateInfo : localizationUpdateInfo // ignore: cast_nullable_to_non_nullable
: isFixingString // ignore: cast_nullable_to_non_nullable as MapEntry<String, bool>?,scServerStatus: freezed == scServerStatus ? _self._scServerStatus : scServerStatus // ignore: cast_nullable_to_non_nullable
as String, as List?,countdownFestivalListData: freezed == countdownFestivalListData ? _self._countdownFestivalListData : countdownFestivalListData // ignore: cast_nullable_to_non_nullable
scInstalledPath: freezed == scInstalledPath as List<CountdownFestivalItemData>?,isGameRunning: null == isGameRunning ? _self._isGameRunning : isGameRunning // ignore: cast_nullable_to_non_nullable
? _self.scInstalledPath
: scInstalledPath // ignore: cast_nullable_to_non_nullable
as String?,
scInstallPaths: null == scInstallPaths
? _self._scInstallPaths
: scInstallPaths // ignore: cast_nullable_to_non_nullable
as List<String>,
webLocalizationVersionsData: freezed == webLocalizationVersionsData
? _self.webLocalizationVersionsData
: webLocalizationVersionsData // ignore: cast_nullable_to_non_nullable
as AppWebLocalizationVersionsData?,
lastScreenInfo: null == lastScreenInfo
? _self.lastScreenInfo
: lastScreenInfo // ignore: cast_nullable_to_non_nullable
as String,
rssVideoItems: freezed == rssVideoItems
? _self._rssVideoItems
: rssVideoItems // ignore: cast_nullable_to_non_nullable
as List<RssItem>?,
rssTextItems: freezed == rssTextItems
? _self._rssTextItems
: rssTextItems // ignore: cast_nullable_to_non_nullable
as List<RssItem>?,
localizationUpdateInfo: freezed == localizationUpdateInfo
? _self.localizationUpdateInfo
: localizationUpdateInfo // ignore: cast_nullable_to_non_nullable
as MapEntry<String, bool>?,
scServerStatus: freezed == scServerStatus
? _self._scServerStatus
: scServerStatus // ignore: cast_nullable_to_non_nullable
as List?,
countdownFestivalListData: freezed == countdownFestivalListData
? _self._countdownFestivalListData
: countdownFestivalListData // ignore: cast_nullable_to_non_nullable
as List<CountdownFestivalItemData>?,
isGameRunning: null == isGameRunning
? _self._isGameRunning
: isGameRunning // ignore: cast_nullable_to_non_nullable
as Map<String, bool>, as Map<String, bool>,
)); ));
} }
} }
// dart format on // dart format on

View File

@ -14,8 +14,9 @@ final homeUIModelProvider =
AutoDisposeNotifierProvider<HomeUIModel, HomeUIModelState>.internal( AutoDisposeNotifierProvider<HomeUIModel, HomeUIModelState>.internal(
HomeUIModel.new, HomeUIModel.new,
name: r'homeUIModelProvider', name: r'homeUIModelProvider',
debugGetCreateSourceHash: debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
const bool.fromEnvironment('dart.vm.product') ? null : _$homeUIModelHash, ? null
: _$homeUIModelHash,
dependencies: null, dependencies: null,
allTransitiveDependencies: null, allTransitiveDependencies: null,
); );

View File

@ -1,6 +1,5 @@
// dart format width=80
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// ignore_for_file: type=lint // 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 // 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
@ -12,67 +11,47 @@ part of 'input_method_dialog_ui_model.dart';
// dart format off // dart format off
T _$identity<T>(T value) => value; T _$identity<T>(T value) => value;
/// @nodoc /// @nodoc
mixin _$InputMethodDialogUIState { mixin _$InputMethodDialogUIState {
Map<String, String>? get keyMaps;
Map<String, String>? get worldMaps;
bool get enableAutoCopy;
bool get isEnableAutoTranslate;
bool get isAutoTranslateWorking;
Map<String, String>? get keyMaps; Map<String, String>? get worldMaps; bool get enableAutoCopy; bool get isEnableAutoTranslate; bool get isAutoTranslateWorking;
/// Create a copy of InputMethodDialogUIState /// Create a copy of InputMethodDialogUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
$InputMethodDialogUIStateCopyWith<InputMethodDialogUIState> get copyWith => $InputMethodDialogUIStateCopyWith<InputMethodDialogUIState> get copyWith => _$InputMethodDialogUIStateCopyWithImpl<InputMethodDialogUIState>(this as InputMethodDialogUIState, _$identity);
_$InputMethodDialogUIStateCopyWithImpl<InputMethodDialogUIState>(
this as InputMethodDialogUIState, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is InputMethodDialogUIState&&const DeepCollectionEquality().equals(other.keyMaps, keyMaps)&&const DeepCollectionEquality().equals(other.worldMaps, worldMaps)&&(identical(other.enableAutoCopy, enableAutoCopy) || other.enableAutoCopy == enableAutoCopy)&&(identical(other.isEnableAutoTranslate, isEnableAutoTranslate) || other.isEnableAutoTranslate == isEnableAutoTranslate)&&(identical(other.isAutoTranslateWorking, isAutoTranslateWorking) || other.isAutoTranslateWorking == isAutoTranslateWorking));
(other.runtimeType == runtimeType &&
other is InputMethodDialogUIState &&
const DeepCollectionEquality().equals(other.keyMaps, keyMaps) &&
const DeepCollectionEquality().equals(other.worldMaps, worldMaps) &&
(identical(other.enableAutoCopy, enableAutoCopy) ||
other.enableAutoCopy == enableAutoCopy) &&
(identical(other.isEnableAutoTranslate, isEnableAutoTranslate) ||
other.isEnableAutoTranslate == isEnableAutoTranslate) &&
(identical(other.isAutoTranslateWorking, isAutoTranslateWorking) ||
other.isAutoTranslateWorking == isAutoTranslateWorking));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(keyMaps),const DeepCollectionEquality().hash(worldMaps),enableAutoCopy,isEnableAutoTranslate,isAutoTranslateWorking);
runtimeType,
const DeepCollectionEquality().hash(keyMaps),
const DeepCollectionEquality().hash(worldMaps),
enableAutoCopy,
isEnableAutoTranslate,
isAutoTranslateWorking);
@override @override
String toString() { String toString() {
return 'InputMethodDialogUIState(keyMaps: $keyMaps, worldMaps: $worldMaps, enableAutoCopy: $enableAutoCopy, isEnableAutoTranslate: $isEnableAutoTranslate, isAutoTranslateWorking: $isAutoTranslateWorking)'; return 'InputMethodDialogUIState(keyMaps: $keyMaps, worldMaps: $worldMaps, enableAutoCopy: $enableAutoCopy, isEnableAutoTranslate: $isEnableAutoTranslate, isAutoTranslateWorking: $isAutoTranslateWorking)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class $InputMethodDialogUIStateCopyWith<$Res> { abstract mixin class $InputMethodDialogUIStateCopyWith<$Res> {
factory $InputMethodDialogUIStateCopyWith(InputMethodDialogUIState value, factory $InputMethodDialogUIStateCopyWith(InputMethodDialogUIState value, $Res Function(InputMethodDialogUIState) _then) = _$InputMethodDialogUIStateCopyWithImpl;
$Res Function(InputMethodDialogUIState) _then) =
_$InputMethodDialogUIStateCopyWithImpl;
@useResult @useResult
$Res call( $Res call({
{Map<String, String>? keyMaps, Map<String, String>? keyMaps, Map<String, String>? worldMaps, bool enableAutoCopy, bool isEnableAutoTranslate, bool isAutoTranslateWorking
Map<String, String>? worldMaps, });
bool enableAutoCopy,
bool isEnableAutoTranslate,
bool isAutoTranslateWorking});
}
}
/// @nodoc /// @nodoc
class _$InputMethodDialogUIStateCopyWithImpl<$Res> class _$InputMethodDialogUIStateCopyWithImpl<$Res>
implements $InputMethodDialogUIStateCopyWith<$Res> { implements $InputMethodDialogUIStateCopyWith<$Res> {
@ -83,54 +62,159 @@ class _$InputMethodDialogUIStateCopyWithImpl<$Res>
/// Create a copy of InputMethodDialogUIState /// Create a copy of InputMethodDialogUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline') @override $Res call({Object? keyMaps = freezed,Object? worldMaps = freezed,Object? enableAutoCopy = null,Object? isEnableAutoTranslate = null,Object? isAutoTranslateWorking = null,}) {
@override
$Res call({
Object? keyMaps = freezed,
Object? worldMaps = freezed,
Object? enableAutoCopy = null,
Object? isEnableAutoTranslate = null,
Object? isAutoTranslateWorking = null,
}) {
return _then(_self.copyWith( return _then(_self.copyWith(
keyMaps: freezed == keyMaps keyMaps: freezed == keyMaps ? _self.keyMaps : keyMaps // ignore: cast_nullable_to_non_nullable
? _self.keyMaps as Map<String, String>?,worldMaps: freezed == worldMaps ? _self.worldMaps : worldMaps // ignore: cast_nullable_to_non_nullable
: keyMaps // ignore: cast_nullable_to_non_nullable as Map<String, String>?,enableAutoCopy: null == enableAutoCopy ? _self.enableAutoCopy : enableAutoCopy // ignore: cast_nullable_to_non_nullable
as Map<String, String>?, as bool,isEnableAutoTranslate: null == isEnableAutoTranslate ? _self.isEnableAutoTranslate : isEnableAutoTranslate // ignore: cast_nullable_to_non_nullable
worldMaps: freezed == worldMaps as bool,isAutoTranslateWorking: null == isAutoTranslateWorking ? _self.isAutoTranslateWorking : isAutoTranslateWorking // ignore: cast_nullable_to_non_nullable
? _self.worldMaps
: worldMaps // ignore: cast_nullable_to_non_nullable
as Map<String, String>?,
enableAutoCopy: null == enableAutoCopy
? _self.enableAutoCopy
: enableAutoCopy // ignore: cast_nullable_to_non_nullable
as bool,
isEnableAutoTranslate: null == isEnableAutoTranslate
? _self.isEnableAutoTranslate
: isEnableAutoTranslate // ignore: cast_nullable_to_non_nullable
as bool,
isAutoTranslateWorking: null == isAutoTranslateWorking
? _self.isAutoTranslateWorking
: isAutoTranslateWorking // ignore: cast_nullable_to_non_nullable
as bool, as bool,
)); ));
} }
}
/// Adds pattern-matching-related methods to [InputMethodDialogUIState].
extension InputMethodDialogUIStatePatterns on InputMethodDialogUIState {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _InputMethodDialogUIState value)? $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _InputMethodDialogUIState() when $default != null:
return $default(_that);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _InputMethodDialogUIState value) $default,){
final _that = this;
switch (_that) {
case _InputMethodDialogUIState():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _InputMethodDialogUIState value)? $default,){
final _that = this;
switch (_that) {
case _InputMethodDialogUIState() when $default != null:
return $default(_that);case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( Map<String, String>? keyMaps, Map<String, String>? worldMaps, bool enableAutoCopy, bool isEnableAutoTranslate, bool isAutoTranslateWorking)? $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _InputMethodDialogUIState() when $default != null:
return $default(_that.keyMaps,_that.worldMaps,_that.enableAutoCopy,_that.isEnableAutoTranslate,_that.isAutoTranslateWorking);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( Map<String, String>? keyMaps, Map<String, String>? worldMaps, bool enableAutoCopy, bool isEnableAutoTranslate, bool isAutoTranslateWorking) $default,) {final _that = this;
switch (_that) {
case _InputMethodDialogUIState():
return $default(_that.keyMaps,_that.worldMaps,_that.enableAutoCopy,_that.isEnableAutoTranslate,_that.isAutoTranslateWorking);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( Map<String, String>? keyMaps, Map<String, String>? worldMaps, bool enableAutoCopy, bool isEnableAutoTranslate, bool isAutoTranslateWorking)? $default,) {final _that = this;
switch (_that) {
case _InputMethodDialogUIState() when $default != null:
return $default(_that.keyMaps,_that.worldMaps,_that.enableAutoCopy,_that.isEnableAutoTranslate,_that.isAutoTranslateWorking);case _:
return null;
}
}
} }
/// @nodoc /// @nodoc
class _InputMethodDialogUIState implements InputMethodDialogUIState { class _InputMethodDialogUIState implements InputMethodDialogUIState {
_InputMethodDialogUIState( _InputMethodDialogUIState(final Map<String, String>? keyMaps, final Map<String, String>? worldMaps, {this.enableAutoCopy = false, this.isEnableAutoTranslate = false, this.isAutoTranslateWorking = false}): _keyMaps = keyMaps,_worldMaps = worldMaps;
final Map<String, String>? keyMaps, final Map<String, String>? worldMaps,
{this.enableAutoCopy = false,
this.isEnableAutoTranslate = false,
this.isAutoTranslateWorking = false})
: _keyMaps = keyMaps,
_worldMaps = worldMaps;
final Map<String, String>? _keyMaps; final Map<String, String>? _keyMaps;
@override @override Map<String, String>? get keyMaps {
Map<String, String>? get keyMaps {
final value = _keyMaps; final value = _keyMaps;
if (value == null) return null; if (value == null) return null;
if (_keyMaps is EqualUnmodifiableMapView) return _keyMaps; if (_keyMaps is EqualUnmodifiableMapView) return _keyMaps;
@ -139,8 +223,7 @@ class _InputMethodDialogUIState implements InputMethodDialogUIState {
} }
final Map<String, String>? _worldMaps; final Map<String, String>? _worldMaps;
@override @override Map<String, String>? get worldMaps {
Map<String, String>? get worldMaps {
final value = _worldMaps; final value = _worldMaps;
if (value == null) return null; if (value == null) return null;
if (_worldMaps is EqualUnmodifiableMapView) return _worldMaps; if (_worldMaps is EqualUnmodifiableMapView) return _worldMaps;
@ -148,72 +231,47 @@ class _InputMethodDialogUIState implements InputMethodDialogUIState {
return EqualUnmodifiableMapView(value); return EqualUnmodifiableMapView(value);
} }
@override @override@JsonKey() final bool enableAutoCopy;
@JsonKey() @override@JsonKey() final bool isEnableAutoTranslate;
final bool enableAutoCopy; @override@JsonKey() final bool isAutoTranslateWorking;
@override
@JsonKey()
final bool isEnableAutoTranslate;
@override
@JsonKey()
final bool isAutoTranslateWorking;
/// Create a copy of InputMethodDialogUIState /// Create a copy of InputMethodDialogUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
_$InputMethodDialogUIStateCopyWith<_InputMethodDialogUIState> get copyWith => _$InputMethodDialogUIStateCopyWith<_InputMethodDialogUIState> get copyWith => __$InputMethodDialogUIStateCopyWithImpl<_InputMethodDialogUIState>(this, _$identity);
__$InputMethodDialogUIStateCopyWithImpl<_InputMethodDialogUIState>(
this, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is _InputMethodDialogUIState&&const DeepCollectionEquality().equals(other._keyMaps, _keyMaps)&&const DeepCollectionEquality().equals(other._worldMaps, _worldMaps)&&(identical(other.enableAutoCopy, enableAutoCopy) || other.enableAutoCopy == enableAutoCopy)&&(identical(other.isEnableAutoTranslate, isEnableAutoTranslate) || other.isEnableAutoTranslate == isEnableAutoTranslate)&&(identical(other.isAutoTranslateWorking, isAutoTranslateWorking) || other.isAutoTranslateWorking == isAutoTranslateWorking));
(other.runtimeType == runtimeType &&
other is _InputMethodDialogUIState &&
const DeepCollectionEquality().equals(other._keyMaps, _keyMaps) &&
const DeepCollectionEquality()
.equals(other._worldMaps, _worldMaps) &&
(identical(other.enableAutoCopy, enableAutoCopy) ||
other.enableAutoCopy == enableAutoCopy) &&
(identical(other.isEnableAutoTranslate, isEnableAutoTranslate) ||
other.isEnableAutoTranslate == isEnableAutoTranslate) &&
(identical(other.isAutoTranslateWorking, isAutoTranslateWorking) ||
other.isAutoTranslateWorking == isAutoTranslateWorking));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(_keyMaps),const DeepCollectionEquality().hash(_worldMaps),enableAutoCopy,isEnableAutoTranslate,isAutoTranslateWorking);
runtimeType,
const DeepCollectionEquality().hash(_keyMaps),
const DeepCollectionEquality().hash(_worldMaps),
enableAutoCopy,
isEnableAutoTranslate,
isAutoTranslateWorking);
@override @override
String toString() { String toString() {
return 'InputMethodDialogUIState(keyMaps: $keyMaps, worldMaps: $worldMaps, enableAutoCopy: $enableAutoCopy, isEnableAutoTranslate: $isEnableAutoTranslate, isAutoTranslateWorking: $isAutoTranslateWorking)'; return 'InputMethodDialogUIState(keyMaps: $keyMaps, worldMaps: $worldMaps, enableAutoCopy: $enableAutoCopy, isEnableAutoTranslate: $isEnableAutoTranslate, isAutoTranslateWorking: $isAutoTranslateWorking)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class _$InputMethodDialogUIStateCopyWith<$Res> abstract mixin class _$InputMethodDialogUIStateCopyWith<$Res> implements $InputMethodDialogUIStateCopyWith<$Res> {
implements $InputMethodDialogUIStateCopyWith<$Res> { factory _$InputMethodDialogUIStateCopyWith(_InputMethodDialogUIState value, $Res Function(_InputMethodDialogUIState) _then) = __$InputMethodDialogUIStateCopyWithImpl;
factory _$InputMethodDialogUIStateCopyWith(_InputMethodDialogUIState value, @override @useResult
$Res Function(_InputMethodDialogUIState) _then) = $Res call({
__$InputMethodDialogUIStateCopyWithImpl; Map<String, String>? keyMaps, Map<String, String>? worldMaps, bool enableAutoCopy, bool isEnableAutoTranslate, bool isAutoTranslateWorking
@override });
@useResult
$Res call(
{Map<String, String>? keyMaps,
Map<String, String>? worldMaps,
bool enableAutoCopy,
bool isEnableAutoTranslate,
bool isAutoTranslateWorking});
}
}
/// @nodoc /// @nodoc
class __$InputMethodDialogUIStateCopyWithImpl<$Res> class __$InputMethodDialogUIStateCopyWithImpl<$Res>
implements _$InputMethodDialogUIStateCopyWith<$Res> { implements _$InputMethodDialogUIStateCopyWith<$Res> {
@ -224,38 +282,18 @@ class __$InputMethodDialogUIStateCopyWithImpl<$Res>
/// Create a copy of InputMethodDialogUIState /// Create a copy of InputMethodDialogUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @pragma('vm:prefer-inline') $Res call({Object? keyMaps = freezed,Object? worldMaps = freezed,Object? enableAutoCopy = null,Object? isEnableAutoTranslate = null,Object? isAutoTranslateWorking = null,}) {
@pragma('vm:prefer-inline')
$Res call({
Object? keyMaps = freezed,
Object? worldMaps = freezed,
Object? enableAutoCopy = null,
Object? isEnableAutoTranslate = null,
Object? isAutoTranslateWorking = null,
}) {
return _then(_InputMethodDialogUIState( return _then(_InputMethodDialogUIState(
freezed == keyMaps freezed == keyMaps ? _self._keyMaps : keyMaps // ignore: cast_nullable_to_non_nullable
? _self._keyMaps as Map<String, String>?,freezed == worldMaps ? _self._worldMaps : worldMaps // ignore: cast_nullable_to_non_nullable
: keyMaps // ignore: cast_nullable_to_non_nullable as Map<String, String>?,enableAutoCopy: null == enableAutoCopy ? _self.enableAutoCopy : enableAutoCopy // ignore: cast_nullable_to_non_nullable
as Map<String, String>?, as bool,isEnableAutoTranslate: null == isEnableAutoTranslate ? _self.isEnableAutoTranslate : isEnableAutoTranslate // ignore: cast_nullable_to_non_nullable
freezed == worldMaps as bool,isAutoTranslateWorking: null == isAutoTranslateWorking ? _self.isAutoTranslateWorking : isAutoTranslateWorking // ignore: cast_nullable_to_non_nullable
? _self._worldMaps
: worldMaps // ignore: cast_nullable_to_non_nullable
as Map<String, String>?,
enableAutoCopy: null == enableAutoCopy
? _self.enableAutoCopy
: enableAutoCopy // ignore: cast_nullable_to_non_nullable
as bool,
isEnableAutoTranslate: null == isEnableAutoTranslate
? _self.isEnableAutoTranslate
: isEnableAutoTranslate // ignore: cast_nullable_to_non_nullable
as bool,
isAutoTranslateWorking: null == isAutoTranslateWorking
? _self.isAutoTranslateWorking
: isAutoTranslateWorking // ignore: cast_nullable_to_non_nullable
as bool, as bool,
)); ));
} }
} }
// dart format on // dart format on

View File

@ -11,8 +11,11 @@ String _$inputMethodDialogUIModelHash() =>
/// See also [InputMethodDialogUIModel]. /// See also [InputMethodDialogUIModel].
@ProviderFor(InputMethodDialogUIModel) @ProviderFor(InputMethodDialogUIModel)
final inputMethodDialogUIModelProvider = AutoDisposeNotifierProvider< final inputMethodDialogUIModelProvider =
InputMethodDialogUIModel, InputMethodDialogUIState>.internal( AutoDisposeNotifierProvider<
InputMethodDialogUIModel,
InputMethodDialogUIState
>.internal(
InputMethodDialogUIModel.new, InputMethodDialogUIModel.new,
name: r'inputMethodDialogUIModelProvider', name: r'inputMethodDialogUIModelProvider',
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
@ -22,7 +25,7 @@ final inputMethodDialogUIModelProvider = AutoDisposeNotifierProvider<
allTransitiveDependencies: null, allTransitiveDependencies: null,
); );
typedef _$InputMethodDialogUIModel typedef _$InputMethodDialogUIModel =
= AutoDisposeNotifier<InputMethodDialogUIState>; AutoDisposeNotifier<InputMethodDialogUIState>;
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package

View File

@ -1,6 +1,5 @@
// dart format width=80
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// ignore_for_file: type=lint // 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 // 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
@ -12,50 +11,47 @@ part of 'server.dart';
// dart format off // dart format off
T _$identity<T>(T value) => value; T _$identity<T>(T value) => value;
/// @nodoc /// @nodoc
mixin _$InputMethodServerState { mixin _$InputMethodServerState {
bool get isServerStartup;
String? get serverAddressText;
bool get isServerStartup; String? get serverAddressText;
/// Create a copy of InputMethodServerState /// Create a copy of InputMethodServerState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
$InputMethodServerStateCopyWith<InputMethodServerState> get copyWith => $InputMethodServerStateCopyWith<InputMethodServerState> get copyWith => _$InputMethodServerStateCopyWithImpl<InputMethodServerState>(this as InputMethodServerState, _$identity);
_$InputMethodServerStateCopyWithImpl<InputMethodServerState>(
this as InputMethodServerState, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is InputMethodServerState&&(identical(other.isServerStartup, isServerStartup) || other.isServerStartup == isServerStartup)&&(identical(other.serverAddressText, serverAddressText) || other.serverAddressText == serverAddressText));
(other.runtimeType == runtimeType &&
other is InputMethodServerState &&
(identical(other.isServerStartup, isServerStartup) ||
other.isServerStartup == isServerStartup) &&
(identical(other.serverAddressText, serverAddressText) ||
other.serverAddressText == serverAddressText));
} }
@override @override
int get hashCode => int get hashCode => Object.hash(runtimeType,isServerStartup,serverAddressText);
Object.hash(runtimeType, isServerStartup, serverAddressText);
@override @override
String toString() { String toString() {
return 'InputMethodServerState(isServerStartup: $isServerStartup, serverAddressText: $serverAddressText)'; return 'InputMethodServerState(isServerStartup: $isServerStartup, serverAddressText: $serverAddressText)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class $InputMethodServerStateCopyWith<$Res> { abstract mixin class $InputMethodServerStateCopyWith<$Res> {
factory $InputMethodServerStateCopyWith(InputMethodServerState value, factory $InputMethodServerStateCopyWith(InputMethodServerState value, $Res Function(InputMethodServerState) _then) = _$InputMethodServerStateCopyWithImpl;
$Res Function(InputMethodServerState) _then) =
_$InputMethodServerStateCopyWithImpl;
@useResult @useResult
$Res call({bool isServerStartup, String? serverAddressText}); $Res call({
} bool isServerStartup, String? serverAddressText
});
}
/// @nodoc /// @nodoc
class _$InputMethodServerStateCopyWithImpl<$Res> class _$InputMethodServerStateCopyWithImpl<$Res>
implements $InputMethodServerStateCopyWith<$Res> { implements $InputMethodServerStateCopyWith<$Res> {
@ -66,78 +62,194 @@ class _$InputMethodServerStateCopyWithImpl<$Res>
/// Create a copy of InputMethodServerState /// Create a copy of InputMethodServerState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline') @override $Res call({Object? isServerStartup = null,Object? serverAddressText = freezed,}) {
@override
$Res call({
Object? isServerStartup = null,
Object? serverAddressText = freezed,
}) {
return _then(_self.copyWith( return _then(_self.copyWith(
isServerStartup: null == isServerStartup isServerStartup: null == isServerStartup ? _self.isServerStartup : isServerStartup // ignore: cast_nullable_to_non_nullable
? _self.isServerStartup as bool,serverAddressText: freezed == serverAddressText ? _self.serverAddressText : serverAddressText // ignore: cast_nullable_to_non_nullable
: isServerStartup // ignore: cast_nullable_to_non_nullable
as bool,
serverAddressText: freezed == serverAddressText
? _self.serverAddressText
: serverAddressText // ignore: cast_nullable_to_non_nullable
as String?, as String?,
)); ));
} }
}
/// Adds pattern-matching-related methods to [InputMethodServerState].
extension InputMethodServerStatePatterns on InputMethodServerState {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _InputMethodServerState value)? $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _InputMethodServerState() when $default != null:
return $default(_that);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _InputMethodServerState value) $default,){
final _that = this;
switch (_that) {
case _InputMethodServerState():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _InputMethodServerState value)? $default,){
final _that = this;
switch (_that) {
case _InputMethodServerState() when $default != null:
return $default(_that);case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( bool isServerStartup, String? serverAddressText)? $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _InputMethodServerState() when $default != null:
return $default(_that.isServerStartup,_that.serverAddressText);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( bool isServerStartup, String? serverAddressText) $default,) {final _that = this;
switch (_that) {
case _InputMethodServerState():
return $default(_that.isServerStartup,_that.serverAddressText);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( bool isServerStartup, String? serverAddressText)? $default,) {final _that = this;
switch (_that) {
case _InputMethodServerState() when $default != null:
return $default(_that.isServerStartup,_that.serverAddressText);case _:
return null;
}
}
} }
/// @nodoc /// @nodoc
class _InputMethodServerState implements InputMethodServerState {
const _InputMethodServerState(
{this.isServerStartup = false, this.serverAddressText});
@override class _InputMethodServerState implements InputMethodServerState {
@JsonKey() const _InputMethodServerState({this.isServerStartup = false, this.serverAddressText});
final bool isServerStartup;
@override
final String? serverAddressText; @override@JsonKey() final bool isServerStartup;
@override final String? serverAddressText;
/// Create a copy of InputMethodServerState /// Create a copy of InputMethodServerState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
_$InputMethodServerStateCopyWith<_InputMethodServerState> get copyWith => _$InputMethodServerStateCopyWith<_InputMethodServerState> get copyWith => __$InputMethodServerStateCopyWithImpl<_InputMethodServerState>(this, _$identity);
__$InputMethodServerStateCopyWithImpl<_InputMethodServerState>(
this, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is _InputMethodServerState&&(identical(other.isServerStartup, isServerStartup) || other.isServerStartup == isServerStartup)&&(identical(other.serverAddressText, serverAddressText) || other.serverAddressText == serverAddressText));
(other.runtimeType == runtimeType &&
other is _InputMethodServerState &&
(identical(other.isServerStartup, isServerStartup) ||
other.isServerStartup == isServerStartup) &&
(identical(other.serverAddressText, serverAddressText) ||
other.serverAddressText == serverAddressText));
} }
@override @override
int get hashCode => int get hashCode => Object.hash(runtimeType,isServerStartup,serverAddressText);
Object.hash(runtimeType, isServerStartup, serverAddressText);
@override @override
String toString() { String toString() {
return 'InputMethodServerState(isServerStartup: $isServerStartup, serverAddressText: $serverAddressText)'; return 'InputMethodServerState(isServerStartup: $isServerStartup, serverAddressText: $serverAddressText)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class _$InputMethodServerStateCopyWith<$Res> abstract mixin class _$InputMethodServerStateCopyWith<$Res> implements $InputMethodServerStateCopyWith<$Res> {
implements $InputMethodServerStateCopyWith<$Res> { factory _$InputMethodServerStateCopyWith(_InputMethodServerState value, $Res Function(_InputMethodServerState) _then) = __$InputMethodServerStateCopyWithImpl;
factory _$InputMethodServerStateCopyWith(_InputMethodServerState value, @override @useResult
$Res Function(_InputMethodServerState) _then) = $Res call({
__$InputMethodServerStateCopyWithImpl; bool isServerStartup, String? serverAddressText
@override });
@useResult
$Res call({bool isServerStartup, String? serverAddressText});
}
}
/// @nodoc /// @nodoc
class __$InputMethodServerStateCopyWithImpl<$Res> class __$InputMethodServerStateCopyWithImpl<$Res>
implements _$InputMethodServerStateCopyWith<$Res> { implements _$InputMethodServerStateCopyWith<$Res> {
@ -148,23 +260,15 @@ class __$InputMethodServerStateCopyWithImpl<$Res>
/// Create a copy of InputMethodServerState /// Create a copy of InputMethodServerState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @pragma('vm:prefer-inline') $Res call({Object? isServerStartup = null,Object? serverAddressText = freezed,}) {
@pragma('vm:prefer-inline')
$Res call({
Object? isServerStartup = null,
Object? serverAddressText = freezed,
}) {
return _then(_InputMethodServerState( return _then(_InputMethodServerState(
isServerStartup: null == isServerStartup isServerStartup: null == isServerStartup ? _self.isServerStartup : isServerStartup // ignore: cast_nullable_to_non_nullable
? _self.isServerStartup as bool,serverAddressText: freezed == serverAddressText ? _self.serverAddressText : serverAddressText // ignore: cast_nullable_to_non_nullable
: isServerStartup // ignore: cast_nullable_to_non_nullable
as bool,
serverAddressText: freezed == serverAddressText
? _self.serverAddressText
: serverAddressText // ignore: cast_nullable_to_non_nullable
as String?, as String?,
)); ));
} }
} }
// dart format on // dart format on

View File

@ -10,8 +10,11 @@ String _$inputMethodServerHash() => r'58ff318c051f16c76f620258520aadedbdd5057c';
/// See also [InputMethodServer]. /// See also [InputMethodServer].
@ProviderFor(InputMethodServer) @ProviderFor(InputMethodServer)
final inputMethodServerProvider = AutoDisposeNotifierProvider<InputMethodServer, final inputMethodServerProvider =
InputMethodServerState>.internal( AutoDisposeNotifierProvider<
InputMethodServer,
InputMethodServerState
>.internal(
InputMethodServer.new, InputMethodServer.new,
name: r'inputMethodServerProvider', name: r'inputMethodServerProvider',
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')

View File

@ -1,6 +1,5 @@
// dart format width=80
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// ignore_for_file: type=lint // 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 // 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
@ -12,90 +11,47 @@ part of 'advanced_localization_ui_model.dart';
// dart format off // dart format off
T _$identity<T>(T value) => value; T _$identity<T>(T value) => value;
/// @nodoc /// @nodoc
mixin _$AdvancedLocalizationUIState { mixin _$AdvancedLocalizationUIState {
String get workingText;
Map<String, AppAdvancedLocalizationClassKeysData>? get classMap;
String? get p4kGlobalIni;
String? get serverGlobalIni;
String? get customizeGlobalIni;
ScLocalizationData? get apiLocalizationData;
int get p4kGlobalIniLines;
int get serverGlobalIniLines;
String get errorMessage;
String get workingText; Map<String, AppAdvancedLocalizationClassKeysData>? get classMap; String? get p4kGlobalIni; String? get serverGlobalIni; String? get customizeGlobalIni; ScLocalizationData? get apiLocalizationData; int get p4kGlobalIniLines; int get serverGlobalIniLines; String get errorMessage;
/// Create a copy of AdvancedLocalizationUIState /// Create a copy of AdvancedLocalizationUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
$AdvancedLocalizationUIStateCopyWith<AdvancedLocalizationUIState> $AdvancedLocalizationUIStateCopyWith<AdvancedLocalizationUIState> get copyWith => _$AdvancedLocalizationUIStateCopyWithImpl<AdvancedLocalizationUIState>(this as AdvancedLocalizationUIState, _$identity);
get copyWith => _$AdvancedLocalizationUIStateCopyWithImpl<
AdvancedLocalizationUIState>(
this as AdvancedLocalizationUIState, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is AdvancedLocalizationUIState&&(identical(other.workingText, workingText) || other.workingText == workingText)&&const DeepCollectionEquality().equals(other.classMap, classMap)&&(identical(other.p4kGlobalIni, p4kGlobalIni) || other.p4kGlobalIni == p4kGlobalIni)&&(identical(other.serverGlobalIni, serverGlobalIni) || other.serverGlobalIni == serverGlobalIni)&&(identical(other.customizeGlobalIni, customizeGlobalIni) || other.customizeGlobalIni == customizeGlobalIni)&&(identical(other.apiLocalizationData, apiLocalizationData) || other.apiLocalizationData == apiLocalizationData)&&(identical(other.p4kGlobalIniLines, p4kGlobalIniLines) || other.p4kGlobalIniLines == p4kGlobalIniLines)&&(identical(other.serverGlobalIniLines, serverGlobalIniLines) || other.serverGlobalIniLines == serverGlobalIniLines)&&(identical(other.errorMessage, errorMessage) || other.errorMessage == errorMessage));
(other.runtimeType == runtimeType &&
other is AdvancedLocalizationUIState &&
(identical(other.workingText, workingText) ||
other.workingText == workingText) &&
const DeepCollectionEquality().equals(other.classMap, classMap) &&
(identical(other.p4kGlobalIni, p4kGlobalIni) ||
other.p4kGlobalIni == p4kGlobalIni) &&
(identical(other.serverGlobalIni, serverGlobalIni) ||
other.serverGlobalIni == serverGlobalIni) &&
(identical(other.customizeGlobalIni, customizeGlobalIni) ||
other.customizeGlobalIni == customizeGlobalIni) &&
(identical(other.apiLocalizationData, apiLocalizationData) ||
other.apiLocalizationData == apiLocalizationData) &&
(identical(other.p4kGlobalIniLines, p4kGlobalIniLines) ||
other.p4kGlobalIniLines == p4kGlobalIniLines) &&
(identical(other.serverGlobalIniLines, serverGlobalIniLines) ||
other.serverGlobalIniLines == serverGlobalIniLines) &&
(identical(other.errorMessage, errorMessage) ||
other.errorMessage == errorMessage));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,workingText,const DeepCollectionEquality().hash(classMap),p4kGlobalIni,serverGlobalIni,customizeGlobalIni,apiLocalizationData,p4kGlobalIniLines,serverGlobalIniLines,errorMessage);
runtimeType,
workingText,
const DeepCollectionEquality().hash(classMap),
p4kGlobalIni,
serverGlobalIni,
customizeGlobalIni,
apiLocalizationData,
p4kGlobalIniLines,
serverGlobalIniLines,
errorMessage);
@override @override
String toString() { String toString() {
return 'AdvancedLocalizationUIState(workingText: $workingText, classMap: $classMap, p4kGlobalIni: $p4kGlobalIni, serverGlobalIni: $serverGlobalIni, customizeGlobalIni: $customizeGlobalIni, apiLocalizationData: $apiLocalizationData, p4kGlobalIniLines: $p4kGlobalIniLines, serverGlobalIniLines: $serverGlobalIniLines, errorMessage: $errorMessage)'; return 'AdvancedLocalizationUIState(workingText: $workingText, classMap: $classMap, p4kGlobalIni: $p4kGlobalIni, serverGlobalIni: $serverGlobalIni, customizeGlobalIni: $customizeGlobalIni, apiLocalizationData: $apiLocalizationData, p4kGlobalIniLines: $p4kGlobalIniLines, serverGlobalIniLines: $serverGlobalIniLines, errorMessage: $errorMessage)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class $AdvancedLocalizationUIStateCopyWith<$Res> { abstract mixin class $AdvancedLocalizationUIStateCopyWith<$Res> {
factory $AdvancedLocalizationUIStateCopyWith( factory $AdvancedLocalizationUIStateCopyWith(AdvancedLocalizationUIState value, $Res Function(AdvancedLocalizationUIState) _then) = _$AdvancedLocalizationUIStateCopyWithImpl;
AdvancedLocalizationUIState value,
$Res Function(AdvancedLocalizationUIState) _then) =
_$AdvancedLocalizationUIStateCopyWithImpl;
@useResult @useResult
$Res call( $Res call({
{String workingText, String workingText, Map<String, AppAdvancedLocalizationClassKeysData>? classMap, String? p4kGlobalIni, String? serverGlobalIni, String? customizeGlobalIni, ScLocalizationData? apiLocalizationData, int p4kGlobalIniLines, int serverGlobalIniLines, String errorMessage
Map<String, AppAdvancedLocalizationClassKeysData>? classMap, });
String? p4kGlobalIni,
String? serverGlobalIni,
String? customizeGlobalIni,
ScLocalizationData? apiLocalizationData,
int p4kGlobalIniLines,
int serverGlobalIniLines,
String errorMessage});
}
}
/// @nodoc /// @nodoc
class _$AdvancedLocalizationUIStateCopyWithImpl<$Res> class _$AdvancedLocalizationUIStateCopyWithImpl<$Res>
implements $AdvancedLocalizationUIStateCopyWith<$Res> { implements $AdvancedLocalizationUIStateCopyWith<$Res> {
@ -106,81 +62,164 @@ class _$AdvancedLocalizationUIStateCopyWithImpl<$Res>
/// Create a copy of AdvancedLocalizationUIState /// Create a copy of AdvancedLocalizationUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline') @override $Res call({Object? workingText = null,Object? classMap = freezed,Object? p4kGlobalIni = freezed,Object? serverGlobalIni = freezed,Object? customizeGlobalIni = freezed,Object? apiLocalizationData = freezed,Object? p4kGlobalIniLines = null,Object? serverGlobalIniLines = null,Object? errorMessage = null,}) {
@override
$Res call({
Object? workingText = null,
Object? classMap = freezed,
Object? p4kGlobalIni = freezed,
Object? serverGlobalIni = freezed,
Object? customizeGlobalIni = freezed,
Object? apiLocalizationData = freezed,
Object? p4kGlobalIniLines = null,
Object? serverGlobalIniLines = null,
Object? errorMessage = null,
}) {
return _then(_self.copyWith( return _then(_self.copyWith(
workingText: null == workingText workingText: null == workingText ? _self.workingText : workingText // ignore: cast_nullable_to_non_nullable
? _self.workingText as String,classMap: freezed == classMap ? _self.classMap : classMap // ignore: cast_nullable_to_non_nullable
: workingText // ignore: cast_nullable_to_non_nullable as Map<String, AppAdvancedLocalizationClassKeysData>?,p4kGlobalIni: freezed == p4kGlobalIni ? _self.p4kGlobalIni : p4kGlobalIni // ignore: cast_nullable_to_non_nullable
as String, as String?,serverGlobalIni: freezed == serverGlobalIni ? _self.serverGlobalIni : serverGlobalIni // ignore: cast_nullable_to_non_nullable
classMap: freezed == classMap as String?,customizeGlobalIni: freezed == customizeGlobalIni ? _self.customizeGlobalIni : customizeGlobalIni // ignore: cast_nullable_to_non_nullable
? _self.classMap as String?,apiLocalizationData: freezed == apiLocalizationData ? _self.apiLocalizationData : apiLocalizationData // ignore: cast_nullable_to_non_nullable
: classMap // ignore: cast_nullable_to_non_nullable as ScLocalizationData?,p4kGlobalIniLines: null == p4kGlobalIniLines ? _self.p4kGlobalIniLines : p4kGlobalIniLines // ignore: cast_nullable_to_non_nullable
as Map<String, AppAdvancedLocalizationClassKeysData>?, as int,serverGlobalIniLines: null == serverGlobalIniLines ? _self.serverGlobalIniLines : serverGlobalIniLines // ignore: cast_nullable_to_non_nullable
p4kGlobalIni: freezed == p4kGlobalIni as int,errorMessage: null == errorMessage ? _self.errorMessage : errorMessage // ignore: cast_nullable_to_non_nullable
? _self.p4kGlobalIni
: p4kGlobalIni // ignore: cast_nullable_to_non_nullable
as String?,
serverGlobalIni: freezed == serverGlobalIni
? _self.serverGlobalIni
: serverGlobalIni // ignore: cast_nullable_to_non_nullable
as String?,
customizeGlobalIni: freezed == customizeGlobalIni
? _self.customizeGlobalIni
: customizeGlobalIni // ignore: cast_nullable_to_non_nullable
as String?,
apiLocalizationData: freezed == apiLocalizationData
? _self.apiLocalizationData
: apiLocalizationData // ignore: cast_nullable_to_non_nullable
as ScLocalizationData?,
p4kGlobalIniLines: null == p4kGlobalIniLines
? _self.p4kGlobalIniLines
: p4kGlobalIniLines // ignore: cast_nullable_to_non_nullable
as int,
serverGlobalIniLines: null == serverGlobalIniLines
? _self.serverGlobalIniLines
: serverGlobalIniLines // ignore: cast_nullable_to_non_nullable
as int,
errorMessage: null == errorMessage
? _self.errorMessage
: errorMessage // ignore: cast_nullable_to_non_nullable
as String, as String,
)); ));
} }
}
/// Adds pattern-matching-related methods to [AdvancedLocalizationUIState].
extension AdvancedLocalizationUIStatePatterns on AdvancedLocalizationUIState {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _AdvancedLocalizationUIState value)? $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _AdvancedLocalizationUIState() when $default != null:
return $default(_that);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _AdvancedLocalizationUIState value) $default,){
final _that = this;
switch (_that) {
case _AdvancedLocalizationUIState():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _AdvancedLocalizationUIState value)? $default,){
final _that = this;
switch (_that) {
case _AdvancedLocalizationUIState() when $default != null:
return $default(_that);case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String workingText, Map<String, AppAdvancedLocalizationClassKeysData>? classMap, String? p4kGlobalIni, String? serverGlobalIni, String? customizeGlobalIni, ScLocalizationData? apiLocalizationData, int p4kGlobalIniLines, int serverGlobalIniLines, String errorMessage)? $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _AdvancedLocalizationUIState() when $default != null:
return $default(_that.workingText,_that.classMap,_that.p4kGlobalIni,_that.serverGlobalIni,_that.customizeGlobalIni,_that.apiLocalizationData,_that.p4kGlobalIniLines,_that.serverGlobalIniLines,_that.errorMessage);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String workingText, Map<String, AppAdvancedLocalizationClassKeysData>? classMap, String? p4kGlobalIni, String? serverGlobalIni, String? customizeGlobalIni, ScLocalizationData? apiLocalizationData, int p4kGlobalIniLines, int serverGlobalIniLines, String errorMessage) $default,) {final _that = this;
switch (_that) {
case _AdvancedLocalizationUIState():
return $default(_that.workingText,_that.classMap,_that.p4kGlobalIni,_that.serverGlobalIni,_that.customizeGlobalIni,_that.apiLocalizationData,_that.p4kGlobalIniLines,_that.serverGlobalIniLines,_that.errorMessage);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String workingText, Map<String, AppAdvancedLocalizationClassKeysData>? classMap, String? p4kGlobalIni, String? serverGlobalIni, String? customizeGlobalIni, ScLocalizationData? apiLocalizationData, int p4kGlobalIniLines, int serverGlobalIniLines, String errorMessage)? $default,) {final _that = this;
switch (_that) {
case _AdvancedLocalizationUIState() when $default != null:
return $default(_that.workingText,_that.classMap,_that.p4kGlobalIni,_that.serverGlobalIni,_that.customizeGlobalIni,_that.apiLocalizationData,_that.p4kGlobalIniLines,_that.serverGlobalIniLines,_that.errorMessage);case _:
return null;
}
}
} }
/// @nodoc /// @nodoc
class _AdvancedLocalizationUIState implements AdvancedLocalizationUIState {
_AdvancedLocalizationUIState(
{this.workingText = "",
final Map<String, AppAdvancedLocalizationClassKeysData>? classMap,
this.p4kGlobalIni,
this.serverGlobalIni,
this.customizeGlobalIni,
this.apiLocalizationData,
this.p4kGlobalIniLines = 0,
this.serverGlobalIniLines = 0,
this.errorMessage = ""})
: _classMap = classMap;
@override class _AdvancedLocalizationUIState implements AdvancedLocalizationUIState {
@JsonKey() _AdvancedLocalizationUIState({this.workingText = "", final Map<String, AppAdvancedLocalizationClassKeysData>? classMap, this.p4kGlobalIni, this.serverGlobalIni, this.customizeGlobalIni, this.apiLocalizationData, this.p4kGlobalIniLines = 0, this.serverGlobalIniLines = 0, this.errorMessage = ""}): _classMap = classMap;
final String workingText;
@override@JsonKey() final String workingText;
final Map<String, AppAdvancedLocalizationClassKeysData>? _classMap; final Map<String, AppAdvancedLocalizationClassKeysData>? _classMap;
@override @override Map<String, AppAdvancedLocalizationClassKeysData>? get classMap {
Map<String, AppAdvancedLocalizationClassKeysData>? get classMap {
final value = _classMap; final value = _classMap;
if (value == null) return null; if (value == null) return null;
if (_classMap is EqualUnmodifiableMapView) return _classMap; if (_classMap is EqualUnmodifiableMapView) return _classMap;
@ -188,97 +227,51 @@ class _AdvancedLocalizationUIState implements AdvancedLocalizationUIState {
return EqualUnmodifiableMapView(value); return EqualUnmodifiableMapView(value);
} }
@override @override final String? p4kGlobalIni;
final String? p4kGlobalIni; @override final String? serverGlobalIni;
@override @override final String? customizeGlobalIni;
final String? serverGlobalIni; @override final ScLocalizationData? apiLocalizationData;
@override @override@JsonKey() final int p4kGlobalIniLines;
final String? customizeGlobalIni; @override@JsonKey() final int serverGlobalIniLines;
@override @override@JsonKey() final String errorMessage;
final ScLocalizationData? apiLocalizationData;
@override
@JsonKey()
final int p4kGlobalIniLines;
@override
@JsonKey()
final int serverGlobalIniLines;
@override
@JsonKey()
final String errorMessage;
/// Create a copy of AdvancedLocalizationUIState /// Create a copy of AdvancedLocalizationUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
_$AdvancedLocalizationUIStateCopyWith<_AdvancedLocalizationUIState> _$AdvancedLocalizationUIStateCopyWith<_AdvancedLocalizationUIState> get copyWith => __$AdvancedLocalizationUIStateCopyWithImpl<_AdvancedLocalizationUIState>(this, _$identity);
get copyWith => __$AdvancedLocalizationUIStateCopyWithImpl<
_AdvancedLocalizationUIState>(this, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is _AdvancedLocalizationUIState&&(identical(other.workingText, workingText) || other.workingText == workingText)&&const DeepCollectionEquality().equals(other._classMap, _classMap)&&(identical(other.p4kGlobalIni, p4kGlobalIni) || other.p4kGlobalIni == p4kGlobalIni)&&(identical(other.serverGlobalIni, serverGlobalIni) || other.serverGlobalIni == serverGlobalIni)&&(identical(other.customizeGlobalIni, customizeGlobalIni) || other.customizeGlobalIni == customizeGlobalIni)&&(identical(other.apiLocalizationData, apiLocalizationData) || other.apiLocalizationData == apiLocalizationData)&&(identical(other.p4kGlobalIniLines, p4kGlobalIniLines) || other.p4kGlobalIniLines == p4kGlobalIniLines)&&(identical(other.serverGlobalIniLines, serverGlobalIniLines) || other.serverGlobalIniLines == serverGlobalIniLines)&&(identical(other.errorMessage, errorMessage) || other.errorMessage == errorMessage));
(other.runtimeType == runtimeType &&
other is _AdvancedLocalizationUIState &&
(identical(other.workingText, workingText) ||
other.workingText == workingText) &&
const DeepCollectionEquality().equals(other._classMap, _classMap) &&
(identical(other.p4kGlobalIni, p4kGlobalIni) ||
other.p4kGlobalIni == p4kGlobalIni) &&
(identical(other.serverGlobalIni, serverGlobalIni) ||
other.serverGlobalIni == serverGlobalIni) &&
(identical(other.customizeGlobalIni, customizeGlobalIni) ||
other.customizeGlobalIni == customizeGlobalIni) &&
(identical(other.apiLocalizationData, apiLocalizationData) ||
other.apiLocalizationData == apiLocalizationData) &&
(identical(other.p4kGlobalIniLines, p4kGlobalIniLines) ||
other.p4kGlobalIniLines == p4kGlobalIniLines) &&
(identical(other.serverGlobalIniLines, serverGlobalIniLines) ||
other.serverGlobalIniLines == serverGlobalIniLines) &&
(identical(other.errorMessage, errorMessage) ||
other.errorMessage == errorMessage));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,workingText,const DeepCollectionEquality().hash(_classMap),p4kGlobalIni,serverGlobalIni,customizeGlobalIni,apiLocalizationData,p4kGlobalIniLines,serverGlobalIniLines,errorMessage);
runtimeType,
workingText,
const DeepCollectionEquality().hash(_classMap),
p4kGlobalIni,
serverGlobalIni,
customizeGlobalIni,
apiLocalizationData,
p4kGlobalIniLines,
serverGlobalIniLines,
errorMessage);
@override @override
String toString() { String toString() {
return 'AdvancedLocalizationUIState(workingText: $workingText, classMap: $classMap, p4kGlobalIni: $p4kGlobalIni, serverGlobalIni: $serverGlobalIni, customizeGlobalIni: $customizeGlobalIni, apiLocalizationData: $apiLocalizationData, p4kGlobalIniLines: $p4kGlobalIniLines, serverGlobalIniLines: $serverGlobalIniLines, errorMessage: $errorMessage)'; return 'AdvancedLocalizationUIState(workingText: $workingText, classMap: $classMap, p4kGlobalIni: $p4kGlobalIni, serverGlobalIni: $serverGlobalIni, customizeGlobalIni: $customizeGlobalIni, apiLocalizationData: $apiLocalizationData, p4kGlobalIniLines: $p4kGlobalIniLines, serverGlobalIniLines: $serverGlobalIniLines, errorMessage: $errorMessage)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class _$AdvancedLocalizationUIStateCopyWith<$Res> abstract mixin class _$AdvancedLocalizationUIStateCopyWith<$Res> implements $AdvancedLocalizationUIStateCopyWith<$Res> {
implements $AdvancedLocalizationUIStateCopyWith<$Res> { factory _$AdvancedLocalizationUIStateCopyWith(_AdvancedLocalizationUIState value, $Res Function(_AdvancedLocalizationUIState) _then) = __$AdvancedLocalizationUIStateCopyWithImpl;
factory _$AdvancedLocalizationUIStateCopyWith( @override @useResult
_AdvancedLocalizationUIState value, $Res call({
$Res Function(_AdvancedLocalizationUIState) _then) = String workingText, Map<String, AppAdvancedLocalizationClassKeysData>? classMap, String? p4kGlobalIni, String? serverGlobalIni, String? customizeGlobalIni, ScLocalizationData? apiLocalizationData, int p4kGlobalIniLines, int serverGlobalIniLines, String errorMessage
__$AdvancedLocalizationUIStateCopyWithImpl; });
@override
@useResult
$Res call(
{String workingText,
Map<String, AppAdvancedLocalizationClassKeysData>? classMap,
String? p4kGlobalIni,
String? serverGlobalIni,
String? customizeGlobalIni,
ScLocalizationData? apiLocalizationData,
int p4kGlobalIniLines,
int serverGlobalIniLines,
String errorMessage});
}
}
/// @nodoc /// @nodoc
class __$AdvancedLocalizationUIStateCopyWithImpl<$Res> class __$AdvancedLocalizationUIStateCopyWithImpl<$Res>
implements _$AdvancedLocalizationUIStateCopyWith<$Res> { implements _$AdvancedLocalizationUIStateCopyWith<$Res> {
@ -289,58 +282,22 @@ class __$AdvancedLocalizationUIStateCopyWithImpl<$Res>
/// Create a copy of AdvancedLocalizationUIState /// Create a copy of AdvancedLocalizationUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @pragma('vm:prefer-inline') $Res call({Object? workingText = null,Object? classMap = freezed,Object? p4kGlobalIni = freezed,Object? serverGlobalIni = freezed,Object? customizeGlobalIni = freezed,Object? apiLocalizationData = freezed,Object? p4kGlobalIniLines = null,Object? serverGlobalIniLines = null,Object? errorMessage = null,}) {
@pragma('vm:prefer-inline')
$Res call({
Object? workingText = null,
Object? classMap = freezed,
Object? p4kGlobalIni = freezed,
Object? serverGlobalIni = freezed,
Object? customizeGlobalIni = freezed,
Object? apiLocalizationData = freezed,
Object? p4kGlobalIniLines = null,
Object? serverGlobalIniLines = null,
Object? errorMessage = null,
}) {
return _then(_AdvancedLocalizationUIState( return _then(_AdvancedLocalizationUIState(
workingText: null == workingText workingText: null == workingText ? _self.workingText : workingText // ignore: cast_nullable_to_non_nullable
? _self.workingText as String,classMap: freezed == classMap ? _self._classMap : classMap // ignore: cast_nullable_to_non_nullable
: workingText // ignore: cast_nullable_to_non_nullable as Map<String, AppAdvancedLocalizationClassKeysData>?,p4kGlobalIni: freezed == p4kGlobalIni ? _self.p4kGlobalIni : p4kGlobalIni // ignore: cast_nullable_to_non_nullable
as String, as String?,serverGlobalIni: freezed == serverGlobalIni ? _self.serverGlobalIni : serverGlobalIni // ignore: cast_nullable_to_non_nullable
classMap: freezed == classMap as String?,customizeGlobalIni: freezed == customizeGlobalIni ? _self.customizeGlobalIni : customizeGlobalIni // ignore: cast_nullable_to_non_nullable
? _self._classMap as String?,apiLocalizationData: freezed == apiLocalizationData ? _self.apiLocalizationData : apiLocalizationData // ignore: cast_nullable_to_non_nullable
: classMap // ignore: cast_nullable_to_non_nullable as ScLocalizationData?,p4kGlobalIniLines: null == p4kGlobalIniLines ? _self.p4kGlobalIniLines : p4kGlobalIniLines // ignore: cast_nullable_to_non_nullable
as Map<String, AppAdvancedLocalizationClassKeysData>?, as int,serverGlobalIniLines: null == serverGlobalIniLines ? _self.serverGlobalIniLines : serverGlobalIniLines // ignore: cast_nullable_to_non_nullable
p4kGlobalIni: freezed == p4kGlobalIni as int,errorMessage: null == errorMessage ? _self.errorMessage : errorMessage // ignore: cast_nullable_to_non_nullable
? _self.p4kGlobalIni
: p4kGlobalIni // ignore: cast_nullable_to_non_nullable
as String?,
serverGlobalIni: freezed == serverGlobalIni
? _self.serverGlobalIni
: serverGlobalIni // ignore: cast_nullable_to_non_nullable
as String?,
customizeGlobalIni: freezed == customizeGlobalIni
? _self.customizeGlobalIni
: customizeGlobalIni // ignore: cast_nullable_to_non_nullable
as String?,
apiLocalizationData: freezed == apiLocalizationData
? _self.apiLocalizationData
: apiLocalizationData // ignore: cast_nullable_to_non_nullable
as ScLocalizationData?,
p4kGlobalIniLines: null == p4kGlobalIniLines
? _self.p4kGlobalIniLines
: p4kGlobalIniLines // ignore: cast_nullable_to_non_nullable
as int,
serverGlobalIniLines: null == serverGlobalIniLines
? _self.serverGlobalIniLines
: serverGlobalIniLines // ignore: cast_nullable_to_non_nullable
as int,
errorMessage: null == errorMessage
? _self.errorMessage
: errorMessage // ignore: cast_nullable_to_non_nullable
as String, as String,
)); ));
} }
} }
// dart format on // dart format on

View File

@ -11,8 +11,11 @@ String _$advancedLocalizationUIModelHash() =>
/// See also [AdvancedLocalizationUIModel]. /// See also [AdvancedLocalizationUIModel].
@ProviderFor(AdvancedLocalizationUIModel) @ProviderFor(AdvancedLocalizationUIModel)
final advancedLocalizationUIModelProvider = AutoDisposeNotifierProvider< final advancedLocalizationUIModelProvider =
AdvancedLocalizationUIModel, AdvancedLocalizationUIState>.internal( AutoDisposeNotifierProvider<
AdvancedLocalizationUIModel,
AdvancedLocalizationUIState
>.internal(
AdvancedLocalizationUIModel.new, AdvancedLocalizationUIModel.new,
name: r'advancedLocalizationUIModelProvider', name: r'advancedLocalizationUIModelProvider',
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
@ -22,7 +25,7 @@ final advancedLocalizationUIModelProvider = AutoDisposeNotifierProvider<
allTransitiveDependencies: null, allTransitiveDependencies: null,
); );
typedef _$AdvancedLocalizationUIModel typedef _$AdvancedLocalizationUIModel =
= AutoDisposeNotifier<AdvancedLocalizationUIState>; AutoDisposeNotifier<AdvancedLocalizationUIState>;
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package

View File

@ -1,6 +1,5 @@
// dart format width=80
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// ignore_for_file: type=lint // 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 // 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
@ -12,88 +11,47 @@ part of 'localization_ui_model.dart';
// dart format off // dart format off
T _$identity<T>(T value) => value; T _$identity<T>(T value) => value;
/// @nodoc /// @nodoc
mixin _$LocalizationUIState { mixin _$LocalizationUIState {
String? get selectedLanguage;
String? get installedCommunityInputMethodSupportVersion;
InputMethodApiLanguageData? get communityInputMethodLanguageData;
Map<String, ScLocalizationData>? get apiLocalizationData;
String get workingVersion;
MapEntry<bool, String>? get patchStatus;
bool? get isInstalledAdvanced;
List<String>? get customizeList;
String? get selectedLanguage; String? get installedCommunityInputMethodSupportVersion; InputMethodApiLanguageData? get communityInputMethodLanguageData; Map<String, ScLocalizationData>? get apiLocalizationData; String get workingVersion; MapEntry<bool, String>? get patchStatus; bool? get isInstalledAdvanced; List<String>? get customizeList;
/// Create a copy of LocalizationUIState /// Create a copy of LocalizationUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
$LocalizationUIStateCopyWith<LocalizationUIState> get copyWith => $LocalizationUIStateCopyWith<LocalizationUIState> get copyWith => _$LocalizationUIStateCopyWithImpl<LocalizationUIState>(this as LocalizationUIState, _$identity);
_$LocalizationUIStateCopyWithImpl<LocalizationUIState>(
this as LocalizationUIState, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is LocalizationUIState&&(identical(other.selectedLanguage, selectedLanguage) || other.selectedLanguage == selectedLanguage)&&(identical(other.installedCommunityInputMethodSupportVersion, installedCommunityInputMethodSupportVersion) || other.installedCommunityInputMethodSupportVersion == installedCommunityInputMethodSupportVersion)&&(identical(other.communityInputMethodLanguageData, communityInputMethodLanguageData) || other.communityInputMethodLanguageData == communityInputMethodLanguageData)&&const DeepCollectionEquality().equals(other.apiLocalizationData, apiLocalizationData)&&(identical(other.workingVersion, workingVersion) || other.workingVersion == workingVersion)&&(identical(other.patchStatus, patchStatus) || other.patchStatus == patchStatus)&&(identical(other.isInstalledAdvanced, isInstalledAdvanced) || other.isInstalledAdvanced == isInstalledAdvanced)&&const DeepCollectionEquality().equals(other.customizeList, customizeList));
(other.runtimeType == runtimeType &&
other is LocalizationUIState &&
(identical(other.selectedLanguage, selectedLanguage) ||
other.selectedLanguage == selectedLanguage) &&
(identical(other.installedCommunityInputMethodSupportVersion,
installedCommunityInputMethodSupportVersion) ||
other.installedCommunityInputMethodSupportVersion ==
installedCommunityInputMethodSupportVersion) &&
(identical(other.communityInputMethodLanguageData,
communityInputMethodLanguageData) ||
other.communityInputMethodLanguageData ==
communityInputMethodLanguageData) &&
const DeepCollectionEquality()
.equals(other.apiLocalizationData, apiLocalizationData) &&
(identical(other.workingVersion, workingVersion) ||
other.workingVersion == workingVersion) &&
(identical(other.patchStatus, patchStatus) ||
other.patchStatus == patchStatus) &&
(identical(other.isInstalledAdvanced, isInstalledAdvanced) ||
other.isInstalledAdvanced == isInstalledAdvanced) &&
const DeepCollectionEquality()
.equals(other.customizeList, customizeList));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,selectedLanguage,installedCommunityInputMethodSupportVersion,communityInputMethodLanguageData,const DeepCollectionEquality().hash(apiLocalizationData),workingVersion,patchStatus,isInstalledAdvanced,const DeepCollectionEquality().hash(customizeList));
runtimeType,
selectedLanguage,
installedCommunityInputMethodSupportVersion,
communityInputMethodLanguageData,
const DeepCollectionEquality().hash(apiLocalizationData),
workingVersion,
patchStatus,
isInstalledAdvanced,
const DeepCollectionEquality().hash(customizeList));
@override @override
String toString() { String toString() {
return 'LocalizationUIState(selectedLanguage: $selectedLanguage, installedCommunityInputMethodSupportVersion: $installedCommunityInputMethodSupportVersion, communityInputMethodLanguageData: $communityInputMethodLanguageData, apiLocalizationData: $apiLocalizationData, workingVersion: $workingVersion, patchStatus: $patchStatus, isInstalledAdvanced: $isInstalledAdvanced, customizeList: $customizeList)'; return 'LocalizationUIState(selectedLanguage: $selectedLanguage, installedCommunityInputMethodSupportVersion: $installedCommunityInputMethodSupportVersion, communityInputMethodLanguageData: $communityInputMethodLanguageData, apiLocalizationData: $apiLocalizationData, workingVersion: $workingVersion, patchStatus: $patchStatus, isInstalledAdvanced: $isInstalledAdvanced, customizeList: $customizeList)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class $LocalizationUIStateCopyWith<$Res> { abstract mixin class $LocalizationUIStateCopyWith<$Res> {
factory $LocalizationUIStateCopyWith( factory $LocalizationUIStateCopyWith(LocalizationUIState value, $Res Function(LocalizationUIState) _then) = _$LocalizationUIStateCopyWithImpl;
LocalizationUIState value, $Res Function(LocalizationUIState) _then) =
_$LocalizationUIStateCopyWithImpl;
@useResult @useResult
$Res call( $Res call({
{String? selectedLanguage, String? selectedLanguage, String? installedCommunityInputMethodSupportVersion, InputMethodApiLanguageData? communityInputMethodLanguageData, Map<String, ScLocalizationData>? apiLocalizationData, String workingVersion, MapEntry<bool, String>? patchStatus, bool? isInstalledAdvanced, List<String>? customizeList
String? installedCommunityInputMethodSupportVersion, });
InputMethodApiLanguageData? communityInputMethodLanguageData,
Map<String, ScLocalizationData>? apiLocalizationData,
String workingVersion,
MapEntry<bool, String>? patchStatus,
bool? isInstalledAdvanced,
List<String>? customizeList});
}
}
/// @nodoc /// @nodoc
class _$LocalizationUIStateCopyWithImpl<$Res> class _$LocalizationUIStateCopyWithImpl<$Res>
implements $LocalizationUIStateCopyWith<$Res> { implements $LocalizationUIStateCopyWith<$Res> {
@ -104,99 +62,177 @@ class _$LocalizationUIStateCopyWithImpl<$Res>
/// Create a copy of LocalizationUIState /// Create a copy of LocalizationUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline') @override $Res call({Object? selectedLanguage = freezed,Object? installedCommunityInputMethodSupportVersion = freezed,Object? communityInputMethodLanguageData = freezed,Object? apiLocalizationData = freezed,Object? workingVersion = null,Object? patchStatus = freezed,Object? isInstalledAdvanced = freezed,Object? customizeList = freezed,}) {
@override
$Res call({
Object? selectedLanguage = freezed,
Object? installedCommunityInputMethodSupportVersion = freezed,
Object? communityInputMethodLanguageData = freezed,
Object? apiLocalizationData = freezed,
Object? workingVersion = null,
Object? patchStatus = freezed,
Object? isInstalledAdvanced = freezed,
Object? customizeList = freezed,
}) {
return _then(_self.copyWith( return _then(_self.copyWith(
selectedLanguage: freezed == selectedLanguage selectedLanguage: freezed == selectedLanguage ? _self.selectedLanguage : selectedLanguage // ignore: cast_nullable_to_non_nullable
? _self.selectedLanguage as String?,installedCommunityInputMethodSupportVersion: freezed == installedCommunityInputMethodSupportVersion ? _self.installedCommunityInputMethodSupportVersion : installedCommunityInputMethodSupportVersion // ignore: cast_nullable_to_non_nullable
: selectedLanguage // ignore: cast_nullable_to_non_nullable as String?,communityInputMethodLanguageData: freezed == communityInputMethodLanguageData ? _self.communityInputMethodLanguageData : communityInputMethodLanguageData // ignore: cast_nullable_to_non_nullable
as String?, as InputMethodApiLanguageData?,apiLocalizationData: freezed == apiLocalizationData ? _self.apiLocalizationData : apiLocalizationData // ignore: cast_nullable_to_non_nullable
installedCommunityInputMethodSupportVersion: freezed == as Map<String, ScLocalizationData>?,workingVersion: null == workingVersion ? _self.workingVersion : workingVersion // ignore: cast_nullable_to_non_nullable
installedCommunityInputMethodSupportVersion as String,patchStatus: freezed == patchStatus ? _self.patchStatus : patchStatus // ignore: cast_nullable_to_non_nullable
? _self.installedCommunityInputMethodSupportVersion as MapEntry<bool, String>?,isInstalledAdvanced: freezed == isInstalledAdvanced ? _self.isInstalledAdvanced : isInstalledAdvanced // ignore: cast_nullable_to_non_nullable
: installedCommunityInputMethodSupportVersion // ignore: cast_nullable_to_non_nullable as bool?,customizeList: freezed == customizeList ? _self.customizeList : customizeList // ignore: cast_nullable_to_non_nullable
as String?,
communityInputMethodLanguageData: freezed ==
communityInputMethodLanguageData
? _self.communityInputMethodLanguageData
: communityInputMethodLanguageData // ignore: cast_nullable_to_non_nullable
as InputMethodApiLanguageData?,
apiLocalizationData: freezed == apiLocalizationData
? _self.apiLocalizationData
: apiLocalizationData // ignore: cast_nullable_to_non_nullable
as Map<String, ScLocalizationData>?,
workingVersion: null == workingVersion
? _self.workingVersion
: workingVersion // ignore: cast_nullable_to_non_nullable
as String,
patchStatus: freezed == patchStatus
? _self.patchStatus
: patchStatus // ignore: cast_nullable_to_non_nullable
as MapEntry<bool, String>?,
isInstalledAdvanced: freezed == isInstalledAdvanced
? _self.isInstalledAdvanced
: isInstalledAdvanced // ignore: cast_nullable_to_non_nullable
as bool?,
customizeList: freezed == customizeList
? _self.customizeList
: customizeList // ignore: cast_nullable_to_non_nullable
as List<String>?, as List<String>?,
)); ));
} }
}
/// Adds pattern-matching-related methods to [LocalizationUIState].
extension LocalizationUIStatePatterns on LocalizationUIState {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _LocalizationUIState value)? $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _LocalizationUIState() when $default != null:
return $default(_that);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _LocalizationUIState value) $default,){
final _that = this;
switch (_that) {
case _LocalizationUIState():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _LocalizationUIState value)? $default,){
final _that = this;
switch (_that) {
case _LocalizationUIState() when $default != null:
return $default(_that);case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String? selectedLanguage, String? installedCommunityInputMethodSupportVersion, InputMethodApiLanguageData? communityInputMethodLanguageData, Map<String, ScLocalizationData>? apiLocalizationData, String workingVersion, MapEntry<bool, String>? patchStatus, bool? isInstalledAdvanced, List<String>? customizeList)? $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _LocalizationUIState() when $default != null:
return $default(_that.selectedLanguage,_that.installedCommunityInputMethodSupportVersion,_that.communityInputMethodLanguageData,_that.apiLocalizationData,_that.workingVersion,_that.patchStatus,_that.isInstalledAdvanced,_that.customizeList);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String? selectedLanguage, String? installedCommunityInputMethodSupportVersion, InputMethodApiLanguageData? communityInputMethodLanguageData, Map<String, ScLocalizationData>? apiLocalizationData, String workingVersion, MapEntry<bool, String>? patchStatus, bool? isInstalledAdvanced, List<String>? customizeList) $default,) {final _that = this;
switch (_that) {
case _LocalizationUIState():
return $default(_that.selectedLanguage,_that.installedCommunityInputMethodSupportVersion,_that.communityInputMethodLanguageData,_that.apiLocalizationData,_that.workingVersion,_that.patchStatus,_that.isInstalledAdvanced,_that.customizeList);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String? selectedLanguage, String? installedCommunityInputMethodSupportVersion, InputMethodApiLanguageData? communityInputMethodLanguageData, Map<String, ScLocalizationData>? apiLocalizationData, String workingVersion, MapEntry<bool, String>? patchStatus, bool? isInstalledAdvanced, List<String>? customizeList)? $default,) {final _that = this;
switch (_that) {
case _LocalizationUIState() when $default != null:
return $default(_that.selectedLanguage,_that.installedCommunityInputMethodSupportVersion,_that.communityInputMethodLanguageData,_that.apiLocalizationData,_that.workingVersion,_that.patchStatus,_that.isInstalledAdvanced,_that.customizeList);case _:
return null;
}
}
} }
/// @nodoc /// @nodoc
class _LocalizationUIState implements LocalizationUIState {
_LocalizationUIState(
{this.selectedLanguage,
this.installedCommunityInputMethodSupportVersion,
this.communityInputMethodLanguageData,
final Map<String, ScLocalizationData>? apiLocalizationData,
this.workingVersion = "",
this.patchStatus,
this.isInstalledAdvanced,
final List<String>? customizeList})
: _apiLocalizationData = apiLocalizationData,
_customizeList = customizeList;
@override class _LocalizationUIState implements LocalizationUIState {
final String? selectedLanguage; _LocalizationUIState({this.selectedLanguage, this.installedCommunityInputMethodSupportVersion, this.communityInputMethodLanguageData, final Map<String, ScLocalizationData>? apiLocalizationData, this.workingVersion = "", this.patchStatus, this.isInstalledAdvanced, final List<String>? customizeList}): _apiLocalizationData = apiLocalizationData,_customizeList = customizeList;
@override
final String? installedCommunityInputMethodSupportVersion;
@override @override final String? selectedLanguage;
final InputMethodApiLanguageData? communityInputMethodLanguageData; @override final String? installedCommunityInputMethodSupportVersion;
@override final InputMethodApiLanguageData? communityInputMethodLanguageData;
final Map<String, ScLocalizationData>? _apiLocalizationData; final Map<String, ScLocalizationData>? _apiLocalizationData;
@override @override Map<String, ScLocalizationData>? get apiLocalizationData {
Map<String, ScLocalizationData>? get apiLocalizationData {
final value = _apiLocalizationData; final value = _apiLocalizationData;
if (value == null) return null; if (value == null) return null;
if (_apiLocalizationData is EqualUnmodifiableMapView) if (_apiLocalizationData is EqualUnmodifiableMapView) return _apiLocalizationData;
return _apiLocalizationData;
// ignore: implicit_dynamic_type // ignore: implicit_dynamic_type
return EqualUnmodifiableMapView(value); return EqualUnmodifiableMapView(value);
} }
@override @override@JsonKey() final String workingVersion;
@JsonKey() @override final MapEntry<bool, String>? patchStatus;
final String workingVersion; @override final bool? isInstalledAdvanced;
@override
final MapEntry<bool, String>? patchStatus;
@override
final bool? isInstalledAdvanced;
final List<String>? _customizeList; final List<String>? _customizeList;
@override @override List<String>? get customizeList {
List<String>? get customizeList {
final value = _customizeList; final value = _customizeList;
if (value == null) return null; if (value == null) return null;
if (_customizeList is EqualUnmodifiableListView) return _customizeList; if (_customizeList is EqualUnmodifiableListView) return _customizeList;
@ -204,79 +240,44 @@ class _LocalizationUIState implements LocalizationUIState {
return EqualUnmodifiableListView(value); return EqualUnmodifiableListView(value);
} }
/// Create a copy of LocalizationUIState /// Create a copy of LocalizationUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
_$LocalizationUIStateCopyWith<_LocalizationUIState> get copyWith => _$LocalizationUIStateCopyWith<_LocalizationUIState> get copyWith => __$LocalizationUIStateCopyWithImpl<_LocalizationUIState>(this, _$identity);
__$LocalizationUIStateCopyWithImpl<_LocalizationUIState>(
this, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is _LocalizationUIState&&(identical(other.selectedLanguage, selectedLanguage) || other.selectedLanguage == selectedLanguage)&&(identical(other.installedCommunityInputMethodSupportVersion, installedCommunityInputMethodSupportVersion) || other.installedCommunityInputMethodSupportVersion == installedCommunityInputMethodSupportVersion)&&(identical(other.communityInputMethodLanguageData, communityInputMethodLanguageData) || other.communityInputMethodLanguageData == communityInputMethodLanguageData)&&const DeepCollectionEquality().equals(other._apiLocalizationData, _apiLocalizationData)&&(identical(other.workingVersion, workingVersion) || other.workingVersion == workingVersion)&&(identical(other.patchStatus, patchStatus) || other.patchStatus == patchStatus)&&(identical(other.isInstalledAdvanced, isInstalledAdvanced) || other.isInstalledAdvanced == isInstalledAdvanced)&&const DeepCollectionEquality().equals(other._customizeList, _customizeList));
(other.runtimeType == runtimeType &&
other is _LocalizationUIState &&
(identical(other.selectedLanguage, selectedLanguage) ||
other.selectedLanguage == selectedLanguage) &&
(identical(other.installedCommunityInputMethodSupportVersion,
installedCommunityInputMethodSupportVersion) ||
other.installedCommunityInputMethodSupportVersion ==
installedCommunityInputMethodSupportVersion) &&
(identical(other.communityInputMethodLanguageData,
communityInputMethodLanguageData) ||
other.communityInputMethodLanguageData ==
communityInputMethodLanguageData) &&
const DeepCollectionEquality()
.equals(other._apiLocalizationData, _apiLocalizationData) &&
(identical(other.workingVersion, workingVersion) ||
other.workingVersion == workingVersion) &&
(identical(other.patchStatus, patchStatus) ||
other.patchStatus == patchStatus) &&
(identical(other.isInstalledAdvanced, isInstalledAdvanced) ||
other.isInstalledAdvanced == isInstalledAdvanced) &&
const DeepCollectionEquality()
.equals(other._customizeList, _customizeList));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,selectedLanguage,installedCommunityInputMethodSupportVersion,communityInputMethodLanguageData,const DeepCollectionEquality().hash(_apiLocalizationData),workingVersion,patchStatus,isInstalledAdvanced,const DeepCollectionEquality().hash(_customizeList));
runtimeType,
selectedLanguage,
installedCommunityInputMethodSupportVersion,
communityInputMethodLanguageData,
const DeepCollectionEquality().hash(_apiLocalizationData),
workingVersion,
patchStatus,
isInstalledAdvanced,
const DeepCollectionEquality().hash(_customizeList));
@override @override
String toString() { String toString() {
return 'LocalizationUIState(selectedLanguage: $selectedLanguage, installedCommunityInputMethodSupportVersion: $installedCommunityInputMethodSupportVersion, communityInputMethodLanguageData: $communityInputMethodLanguageData, apiLocalizationData: $apiLocalizationData, workingVersion: $workingVersion, patchStatus: $patchStatus, isInstalledAdvanced: $isInstalledAdvanced, customizeList: $customizeList)'; return 'LocalizationUIState(selectedLanguage: $selectedLanguage, installedCommunityInputMethodSupportVersion: $installedCommunityInputMethodSupportVersion, communityInputMethodLanguageData: $communityInputMethodLanguageData, apiLocalizationData: $apiLocalizationData, workingVersion: $workingVersion, patchStatus: $patchStatus, isInstalledAdvanced: $isInstalledAdvanced, customizeList: $customizeList)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class _$LocalizationUIStateCopyWith<$Res> abstract mixin class _$LocalizationUIStateCopyWith<$Res> implements $LocalizationUIStateCopyWith<$Res> {
implements $LocalizationUIStateCopyWith<$Res> { factory _$LocalizationUIStateCopyWith(_LocalizationUIState value, $Res Function(_LocalizationUIState) _then) = __$LocalizationUIStateCopyWithImpl;
factory _$LocalizationUIStateCopyWith(_LocalizationUIState value, @override @useResult
$Res Function(_LocalizationUIState) _then) = $Res call({
__$LocalizationUIStateCopyWithImpl; String? selectedLanguage, String? installedCommunityInputMethodSupportVersion, InputMethodApiLanguageData? communityInputMethodLanguageData, Map<String, ScLocalizationData>? apiLocalizationData, String workingVersion, MapEntry<bool, String>? patchStatus, bool? isInstalledAdvanced, List<String>? customizeList
@override });
@useResult
$Res call(
{String? selectedLanguage,
String? installedCommunityInputMethodSupportVersion,
InputMethodApiLanguageData? communityInputMethodLanguageData,
Map<String, ScLocalizationData>? apiLocalizationData,
String workingVersion,
MapEntry<bool, String>? patchStatus,
bool? isInstalledAdvanced,
List<String>? customizeList});
}
}
/// @nodoc /// @nodoc
class __$LocalizationUIStateCopyWithImpl<$Res> class __$LocalizationUIStateCopyWithImpl<$Res>
implements _$LocalizationUIStateCopyWith<$Res> { implements _$LocalizationUIStateCopyWith<$Res> {
@ -287,55 +288,21 @@ class __$LocalizationUIStateCopyWithImpl<$Res>
/// Create a copy of LocalizationUIState /// Create a copy of LocalizationUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @pragma('vm:prefer-inline') $Res call({Object? selectedLanguage = freezed,Object? installedCommunityInputMethodSupportVersion = freezed,Object? communityInputMethodLanguageData = freezed,Object? apiLocalizationData = freezed,Object? workingVersion = null,Object? patchStatus = freezed,Object? isInstalledAdvanced = freezed,Object? customizeList = freezed,}) {
@pragma('vm:prefer-inline')
$Res call({
Object? selectedLanguage = freezed,
Object? installedCommunityInputMethodSupportVersion = freezed,
Object? communityInputMethodLanguageData = freezed,
Object? apiLocalizationData = freezed,
Object? workingVersion = null,
Object? patchStatus = freezed,
Object? isInstalledAdvanced = freezed,
Object? customizeList = freezed,
}) {
return _then(_LocalizationUIState( return _then(_LocalizationUIState(
selectedLanguage: freezed == selectedLanguage selectedLanguage: freezed == selectedLanguage ? _self.selectedLanguage : selectedLanguage // ignore: cast_nullable_to_non_nullable
? _self.selectedLanguage as String?,installedCommunityInputMethodSupportVersion: freezed == installedCommunityInputMethodSupportVersion ? _self.installedCommunityInputMethodSupportVersion : installedCommunityInputMethodSupportVersion // ignore: cast_nullable_to_non_nullable
: selectedLanguage // ignore: cast_nullable_to_non_nullable as String?,communityInputMethodLanguageData: freezed == communityInputMethodLanguageData ? _self.communityInputMethodLanguageData : communityInputMethodLanguageData // ignore: cast_nullable_to_non_nullable
as String?, as InputMethodApiLanguageData?,apiLocalizationData: freezed == apiLocalizationData ? _self._apiLocalizationData : apiLocalizationData // ignore: cast_nullable_to_non_nullable
installedCommunityInputMethodSupportVersion: freezed == as Map<String, ScLocalizationData>?,workingVersion: null == workingVersion ? _self.workingVersion : workingVersion // ignore: cast_nullable_to_non_nullable
installedCommunityInputMethodSupportVersion as String,patchStatus: freezed == patchStatus ? _self.patchStatus : patchStatus // ignore: cast_nullable_to_non_nullable
? _self.installedCommunityInputMethodSupportVersion as MapEntry<bool, String>?,isInstalledAdvanced: freezed == isInstalledAdvanced ? _self.isInstalledAdvanced : isInstalledAdvanced // ignore: cast_nullable_to_non_nullable
: installedCommunityInputMethodSupportVersion // ignore: cast_nullable_to_non_nullable as bool?,customizeList: freezed == customizeList ? _self._customizeList : customizeList // ignore: cast_nullable_to_non_nullable
as String?,
communityInputMethodLanguageData: freezed ==
communityInputMethodLanguageData
? _self.communityInputMethodLanguageData
: communityInputMethodLanguageData // ignore: cast_nullable_to_non_nullable
as InputMethodApiLanguageData?,
apiLocalizationData: freezed == apiLocalizationData
? _self._apiLocalizationData
: apiLocalizationData // ignore: cast_nullable_to_non_nullable
as Map<String, ScLocalizationData>?,
workingVersion: null == workingVersion
? _self.workingVersion
: workingVersion // ignore: cast_nullable_to_non_nullable
as String,
patchStatus: freezed == patchStatus
? _self.patchStatus
: patchStatus // ignore: cast_nullable_to_non_nullable
as MapEntry<bool, String>?,
isInstalledAdvanced: freezed == isInstalledAdvanced
? _self.isInstalledAdvanced
: isInstalledAdvanced // ignore: cast_nullable_to_non_nullable
as bool?,
customizeList: freezed == customizeList
? _self._customizeList
: customizeList // ignore: cast_nullable_to_non_nullable
as List<String>?, as List<String>?,
)); ));
} }
} }
// dart format on // dart format on

View File

@ -7,12 +7,15 @@ part of 'localization_ui_model.dart';
// ************************************************************************** // **************************************************************************
String _$localizationUIModelHash() => String _$localizationUIModelHash() =>
r'640a129e8ecf7854d7668278046e808925d7f9d2'; r'd114577031b7d62ac5c395f0ced314721b852ee9';
/// See also [LocalizationUIModel]. /// See also [LocalizationUIModel].
@ProviderFor(LocalizationUIModel) @ProviderFor(LocalizationUIModel)
final localizationUIModelProvider = AutoDisposeNotifierProvider< final localizationUIModelProvider =
LocalizationUIModel, LocalizationUIState>.internal( AutoDisposeNotifierProvider<
LocalizationUIModel,
LocalizationUIState
>.internal(
LocalizationUIModel.new, LocalizationUIModel.new,
name: r'localizationUIModelProvider', name: r'localizationUIModelProvider',
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')

View File

@ -1,6 +1,5 @@
// dart format width=80
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// ignore_for_file: type=lint // 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 // 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
@ -12,65 +11,47 @@ part of 'performance_ui_model.dart';
// dart format off // dart format off
T _$identity<T>(T value) => value; T _$identity<T>(T value) => value;
/// @nodoc /// @nodoc
mixin _$HomePerformanceUIState { mixin _$HomePerformanceUIState {
bool get showGraphicsPerformanceTip;
bool get enabled;
Map<String, List<GamePerformanceData>>? get performanceMap;
String get workingString;
bool get showGraphicsPerformanceTip; bool get enabled; Map<String, List<GamePerformanceData>>? get performanceMap; String get workingString;
/// Create a copy of HomePerformanceUIState /// Create a copy of HomePerformanceUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
$HomePerformanceUIStateCopyWith<HomePerformanceUIState> get copyWith => $HomePerformanceUIStateCopyWith<HomePerformanceUIState> get copyWith => _$HomePerformanceUIStateCopyWithImpl<HomePerformanceUIState>(this as HomePerformanceUIState, _$identity);
_$HomePerformanceUIStateCopyWithImpl<HomePerformanceUIState>(
this as HomePerformanceUIState, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is HomePerformanceUIState&&(identical(other.showGraphicsPerformanceTip, showGraphicsPerformanceTip) || other.showGraphicsPerformanceTip == showGraphicsPerformanceTip)&&(identical(other.enabled, enabled) || other.enabled == enabled)&&const DeepCollectionEquality().equals(other.performanceMap, performanceMap)&&(identical(other.workingString, workingString) || other.workingString == workingString));
(other.runtimeType == runtimeType &&
other is HomePerformanceUIState &&
(identical(other.showGraphicsPerformanceTip,
showGraphicsPerformanceTip) ||
other.showGraphicsPerformanceTip ==
showGraphicsPerformanceTip) &&
(identical(other.enabled, enabled) || other.enabled == enabled) &&
const DeepCollectionEquality()
.equals(other.performanceMap, performanceMap) &&
(identical(other.workingString, workingString) ||
other.workingString == workingString));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,showGraphicsPerformanceTip,enabled,const DeepCollectionEquality().hash(performanceMap),workingString);
runtimeType,
showGraphicsPerformanceTip,
enabled,
const DeepCollectionEquality().hash(performanceMap),
workingString);
@override @override
String toString() { String toString() {
return 'HomePerformanceUIState(showGraphicsPerformanceTip: $showGraphicsPerformanceTip, enabled: $enabled, performanceMap: $performanceMap, workingString: $workingString)'; return 'HomePerformanceUIState(showGraphicsPerformanceTip: $showGraphicsPerformanceTip, enabled: $enabled, performanceMap: $performanceMap, workingString: $workingString)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class $HomePerformanceUIStateCopyWith<$Res> { abstract mixin class $HomePerformanceUIStateCopyWith<$Res> {
factory $HomePerformanceUIStateCopyWith(HomePerformanceUIState value, factory $HomePerformanceUIStateCopyWith(HomePerformanceUIState value, $Res Function(HomePerformanceUIState) _then) = _$HomePerformanceUIStateCopyWithImpl;
$Res Function(HomePerformanceUIState) _then) =
_$HomePerformanceUIStateCopyWithImpl;
@useResult @useResult
$Res call( $Res call({
{bool showGraphicsPerformanceTip, bool showGraphicsPerformanceTip, bool enabled, Map<String, List<GamePerformanceData>>? performanceMap, String workingString
bool enabled, });
Map<String, List<GamePerformanceData>>? performanceMap,
String workingString});
}
}
/// @nodoc /// @nodoc
class _$HomePerformanceUIStateCopyWithImpl<$Res> class _$HomePerformanceUIStateCopyWithImpl<$Res>
implements $HomePerformanceUIStateCopyWith<$Res> { implements $HomePerformanceUIStateCopyWith<$Res> {
@ -81,54 +62,160 @@ class _$HomePerformanceUIStateCopyWithImpl<$Res>
/// Create a copy of HomePerformanceUIState /// Create a copy of HomePerformanceUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline') @override $Res call({Object? showGraphicsPerformanceTip = null,Object? enabled = null,Object? performanceMap = freezed,Object? workingString = null,}) {
@override
$Res call({
Object? showGraphicsPerformanceTip = null,
Object? enabled = null,
Object? performanceMap = freezed,
Object? workingString = null,
}) {
return _then(_self.copyWith( return _then(_self.copyWith(
showGraphicsPerformanceTip: null == showGraphicsPerformanceTip showGraphicsPerformanceTip: null == showGraphicsPerformanceTip ? _self.showGraphicsPerformanceTip : showGraphicsPerformanceTip // ignore: cast_nullable_to_non_nullable
? _self.showGraphicsPerformanceTip as bool,enabled: null == enabled ? _self.enabled : enabled // ignore: cast_nullable_to_non_nullable
: showGraphicsPerformanceTip // ignore: cast_nullable_to_non_nullable as bool,performanceMap: freezed == performanceMap ? _self.performanceMap : performanceMap // ignore: cast_nullable_to_non_nullable
as bool, as Map<String, List<GamePerformanceData>>?,workingString: null == workingString ? _self.workingString : workingString // ignore: cast_nullable_to_non_nullable
enabled: null == enabled
? _self.enabled
: enabled // ignore: cast_nullable_to_non_nullable
as bool,
performanceMap: freezed == performanceMap
? _self.performanceMap
: performanceMap // ignore: cast_nullable_to_non_nullable
as Map<String, List<GamePerformanceData>>?,
workingString: null == workingString
? _self.workingString
: workingString // ignore: cast_nullable_to_non_nullable
as String, as String,
)); ));
} }
}
/// Adds pattern-matching-related methods to [HomePerformanceUIState].
extension HomePerformanceUIStatePatterns on HomePerformanceUIState {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _HomePerformanceUIState value)? $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _HomePerformanceUIState() when $default != null:
return $default(_that);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _HomePerformanceUIState value) $default,){
final _that = this;
switch (_that) {
case _HomePerformanceUIState():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _HomePerformanceUIState value)? $default,){
final _that = this;
switch (_that) {
case _HomePerformanceUIState() when $default != null:
return $default(_that);case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( bool showGraphicsPerformanceTip, bool enabled, Map<String, List<GamePerformanceData>>? performanceMap, String workingString)? $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _HomePerformanceUIState() when $default != null:
return $default(_that.showGraphicsPerformanceTip,_that.enabled,_that.performanceMap,_that.workingString);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( bool showGraphicsPerformanceTip, bool enabled, Map<String, List<GamePerformanceData>>? performanceMap, String workingString) $default,) {final _that = this;
switch (_that) {
case _HomePerformanceUIState():
return $default(_that.showGraphicsPerformanceTip,_that.enabled,_that.performanceMap,_that.workingString);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( bool showGraphicsPerformanceTip, bool enabled, Map<String, List<GamePerformanceData>>? performanceMap, String workingString)? $default,) {final _that = this;
switch (_that) {
case _HomePerformanceUIState() when $default != null:
return $default(_that.showGraphicsPerformanceTip,_that.enabled,_that.performanceMap,_that.workingString);case _:
return null;
}
}
} }
/// @nodoc /// @nodoc
class _HomePerformanceUIState implements HomePerformanceUIState {
_HomePerformanceUIState(
{this.showGraphicsPerformanceTip = true,
this.enabled = false,
final Map<String, List<GamePerformanceData>>? performanceMap,
this.workingString = ""})
: _performanceMap = performanceMap;
@override class _HomePerformanceUIState implements HomePerformanceUIState {
@JsonKey() _HomePerformanceUIState({this.showGraphicsPerformanceTip = true, this.enabled = false, final Map<String, List<GamePerformanceData>>? performanceMap, this.workingString = ""}): _performanceMap = performanceMap;
final bool showGraphicsPerformanceTip;
@override
@JsonKey() @override@JsonKey() final bool showGraphicsPerformanceTip;
final bool enabled; @override@JsonKey() final bool enabled;
final Map<String, List<GamePerformanceData>>? _performanceMap; final Map<String, List<GamePerformanceData>>? _performanceMap;
@override @override Map<String, List<GamePerformanceData>>? get performanceMap {
Map<String, List<GamePerformanceData>>? get performanceMap {
final value = _performanceMap; final value = _performanceMap;
if (value == null) return null; if (value == null) return null;
if (_performanceMap is EqualUnmodifiableMapView) return _performanceMap; if (_performanceMap is EqualUnmodifiableMapView) return _performanceMap;
@ -136,64 +223,45 @@ class _HomePerformanceUIState implements HomePerformanceUIState {
return EqualUnmodifiableMapView(value); return EqualUnmodifiableMapView(value);
} }
@override @override@JsonKey() final String workingString;
@JsonKey()
final String workingString;
/// Create a copy of HomePerformanceUIState /// Create a copy of HomePerformanceUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
_$HomePerformanceUIStateCopyWith<_HomePerformanceUIState> get copyWith => _$HomePerformanceUIStateCopyWith<_HomePerformanceUIState> get copyWith => __$HomePerformanceUIStateCopyWithImpl<_HomePerformanceUIState>(this, _$identity);
__$HomePerformanceUIStateCopyWithImpl<_HomePerformanceUIState>(
this, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is _HomePerformanceUIState&&(identical(other.showGraphicsPerformanceTip, showGraphicsPerformanceTip) || other.showGraphicsPerformanceTip == showGraphicsPerformanceTip)&&(identical(other.enabled, enabled) || other.enabled == enabled)&&const DeepCollectionEquality().equals(other._performanceMap, _performanceMap)&&(identical(other.workingString, workingString) || other.workingString == workingString));
(other.runtimeType == runtimeType &&
other is _HomePerformanceUIState &&
(identical(other.showGraphicsPerformanceTip,
showGraphicsPerformanceTip) ||
other.showGraphicsPerformanceTip ==
showGraphicsPerformanceTip) &&
(identical(other.enabled, enabled) || other.enabled == enabled) &&
const DeepCollectionEquality()
.equals(other._performanceMap, _performanceMap) &&
(identical(other.workingString, workingString) ||
other.workingString == workingString));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,showGraphicsPerformanceTip,enabled,const DeepCollectionEquality().hash(_performanceMap),workingString);
runtimeType,
showGraphicsPerformanceTip,
enabled,
const DeepCollectionEquality().hash(_performanceMap),
workingString);
@override @override
String toString() { String toString() {
return 'HomePerformanceUIState(showGraphicsPerformanceTip: $showGraphicsPerformanceTip, enabled: $enabled, performanceMap: $performanceMap, workingString: $workingString)'; return 'HomePerformanceUIState(showGraphicsPerformanceTip: $showGraphicsPerformanceTip, enabled: $enabled, performanceMap: $performanceMap, workingString: $workingString)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class _$HomePerformanceUIStateCopyWith<$Res> abstract mixin class _$HomePerformanceUIStateCopyWith<$Res> implements $HomePerformanceUIStateCopyWith<$Res> {
implements $HomePerformanceUIStateCopyWith<$Res> { factory _$HomePerformanceUIStateCopyWith(_HomePerformanceUIState value, $Res Function(_HomePerformanceUIState) _then) = __$HomePerformanceUIStateCopyWithImpl;
factory _$HomePerformanceUIStateCopyWith(_HomePerformanceUIState value, @override @useResult
$Res Function(_HomePerformanceUIState) _then) = $Res call({
__$HomePerformanceUIStateCopyWithImpl; bool showGraphicsPerformanceTip, bool enabled, Map<String, List<GamePerformanceData>>? performanceMap, String workingString
@override });
@useResult
$Res call(
{bool showGraphicsPerformanceTip,
bool enabled,
Map<String, List<GamePerformanceData>>? performanceMap,
String workingString});
}
}
/// @nodoc /// @nodoc
class __$HomePerformanceUIStateCopyWithImpl<$Res> class __$HomePerformanceUIStateCopyWithImpl<$Res>
implements _$HomePerformanceUIStateCopyWith<$Res> { implements _$HomePerformanceUIStateCopyWith<$Res> {
@ -204,33 +272,17 @@ class __$HomePerformanceUIStateCopyWithImpl<$Res>
/// Create a copy of HomePerformanceUIState /// Create a copy of HomePerformanceUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @pragma('vm:prefer-inline') $Res call({Object? showGraphicsPerformanceTip = null,Object? enabled = null,Object? performanceMap = freezed,Object? workingString = null,}) {
@pragma('vm:prefer-inline')
$Res call({
Object? showGraphicsPerformanceTip = null,
Object? enabled = null,
Object? performanceMap = freezed,
Object? workingString = null,
}) {
return _then(_HomePerformanceUIState( return _then(_HomePerformanceUIState(
showGraphicsPerformanceTip: null == showGraphicsPerformanceTip showGraphicsPerformanceTip: null == showGraphicsPerformanceTip ? _self.showGraphicsPerformanceTip : showGraphicsPerformanceTip // ignore: cast_nullable_to_non_nullable
? _self.showGraphicsPerformanceTip as bool,enabled: null == enabled ? _self.enabled : enabled // ignore: cast_nullable_to_non_nullable
: showGraphicsPerformanceTip // ignore: cast_nullable_to_non_nullable as bool,performanceMap: freezed == performanceMap ? _self._performanceMap : performanceMap // ignore: cast_nullable_to_non_nullable
as bool, as Map<String, List<GamePerformanceData>>?,workingString: null == workingString ? _self.workingString : workingString // ignore: cast_nullable_to_non_nullable
enabled: null == enabled
? _self.enabled
: enabled // ignore: cast_nullable_to_non_nullable
as bool,
performanceMap: freezed == performanceMap
? _self._performanceMap
: performanceMap // ignore: cast_nullable_to_non_nullable
as Map<String, List<GamePerformanceData>>?,
workingString: null == workingString
? _self.workingString
: workingString // ignore: cast_nullable_to_non_nullable
as String, as String,
)); ));
} }
} }
// dart format on // dart format on

View File

@ -11,8 +11,11 @@ String _$homePerformanceUIModelHash() =>
/// See also [HomePerformanceUIModel]. /// See also [HomePerformanceUIModel].
@ProviderFor(HomePerformanceUIModel) @ProviderFor(HomePerformanceUIModel)
final homePerformanceUIModelProvider = AutoDisposeNotifierProvider< final homePerformanceUIModelProvider =
HomePerformanceUIModel, HomePerformanceUIState>.internal( AutoDisposeNotifierProvider<
HomePerformanceUIModel,
HomePerformanceUIState
>.internal(
HomePerformanceUIModel.new, HomePerformanceUIModel.new,
name: r'homePerformanceUIModelProvider', name: r'homePerformanceUIModelProvider',
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')

View File

@ -1,6 +1,5 @@
// dart format width=80
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// ignore_for_file: type=lint // 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 // 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
@ -12,49 +11,50 @@ part of 'nav_state.dart';
// dart format off // dart format off
T _$identity<T>(T value) => value; T _$identity<T>(T value) => value;
/// @nodoc /// @nodoc
mixin _$NavState { mixin _$NavState {
List<NavApiDocsItemData>? get items;
String get errorInfo;
List<NavApiDocsItemData>? get items; String get errorInfo;
/// Create a copy of NavState /// Create a copy of NavState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
$NavStateCopyWith<NavState> get copyWith => $NavStateCopyWith<NavState> get copyWith => _$NavStateCopyWithImpl<NavState>(this as NavState, _$identity);
_$NavStateCopyWithImpl<NavState>(this as NavState, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is NavState&&const DeepCollectionEquality().equals(other.items, items)&&(identical(other.errorInfo, errorInfo) || other.errorInfo == errorInfo));
(other.runtimeType == runtimeType &&
other is NavState &&
const DeepCollectionEquality().equals(other.items, items) &&
(identical(other.errorInfo, errorInfo) ||
other.errorInfo == errorInfo));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(items),errorInfo);
runtimeType, const DeepCollectionEquality().hash(items), errorInfo);
@override @override
String toString() { String toString() {
return 'NavState(items: $items, errorInfo: $errorInfo)'; return 'NavState(items: $items, errorInfo: $errorInfo)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class $NavStateCopyWith<$Res> { abstract mixin class $NavStateCopyWith<$Res> {
factory $NavStateCopyWith(NavState value, $Res Function(NavState) _then) = factory $NavStateCopyWith(NavState value, $Res Function(NavState) _then) = _$NavStateCopyWithImpl;
_$NavStateCopyWithImpl;
@useResult @useResult
$Res call({List<NavApiDocsItemData>? items, String errorInfo}); $Res call({
} List<NavApiDocsItemData>? items, String errorInfo
});
}
/// @nodoc /// @nodoc
class _$NavStateCopyWithImpl<$Res> implements $NavStateCopyWith<$Res> { class _$NavStateCopyWithImpl<$Res>
implements $NavStateCopyWith<$Res> {
_$NavStateCopyWithImpl(this._self, this._then); _$NavStateCopyWithImpl(this._self, this._then);
final NavState _self; final NavState _self;
@ -62,34 +62,156 @@ class _$NavStateCopyWithImpl<$Res> implements $NavStateCopyWith<$Res> {
/// Create a copy of NavState /// Create a copy of NavState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline') @override $Res call({Object? items = freezed,Object? errorInfo = null,}) {
@override
$Res call({
Object? items = freezed,
Object? errorInfo = null,
}) {
return _then(_self.copyWith( return _then(_self.copyWith(
items: freezed == items items: freezed == items ? _self.items : items // ignore: cast_nullable_to_non_nullable
? _self.items as List<NavApiDocsItemData>?,errorInfo: null == errorInfo ? _self.errorInfo : errorInfo // ignore: cast_nullable_to_non_nullable
: items // ignore: cast_nullable_to_non_nullable
as List<NavApiDocsItemData>?,
errorInfo: null == errorInfo
? _self.errorInfo
: errorInfo // ignore: cast_nullable_to_non_nullable
as String, as String,
)); ));
} }
}
/// Adds pattern-matching-related methods to [NavState].
extension NavStatePatterns on NavState {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _NavState value)? $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _NavState() when $default != null:
return $default(_that);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _NavState value) $default,){
final _that = this;
switch (_that) {
case _NavState():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _NavState value)? $default,){
final _that = this;
switch (_that) {
case _NavState() when $default != null:
return $default(_that);case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( List<NavApiDocsItemData>? items, String errorInfo)? $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _NavState() when $default != null:
return $default(_that.items,_that.errorInfo);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( List<NavApiDocsItemData>? items, String errorInfo) $default,) {final _that = this;
switch (_that) {
case _NavState():
return $default(_that.items,_that.errorInfo);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( List<NavApiDocsItemData>? items, String errorInfo)? $default,) {final _that = this;
switch (_that) {
case _NavState() when $default != null:
return $default(_that.items,_that.errorInfo);case _:
return null;
}
}
} }
/// @nodoc /// @nodoc
class _NavState implements NavState { class _NavState implements NavState {
const _NavState({final List<NavApiDocsItemData>? items, this.errorInfo = ""}) const _NavState({final List<NavApiDocsItemData>? items, this.errorInfo = ""}): _items = items;
: _items = items;
final List<NavApiDocsItemData>? _items; final List<NavApiDocsItemData>? _items;
@override @override List<NavApiDocsItemData>? get items {
List<NavApiDocsItemData>? get items {
final value = _items; final value = _items;
if (value == null) return null; if (value == null) return null;
if (_items is EqualUnmodifiableListView) return _items; if (_items is EqualUnmodifiableListView) return _items;
@ -97,50 +219,48 @@ class _NavState implements NavState {
return EqualUnmodifiableListView(value); return EqualUnmodifiableListView(value);
} }
@override @override@JsonKey() final String errorInfo;
@JsonKey()
final String errorInfo;
/// Create a copy of NavState /// Create a copy of NavState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
_$NavStateCopyWith<_NavState> get copyWith => _$NavStateCopyWith<_NavState> get copyWith => __$NavStateCopyWithImpl<_NavState>(this, _$identity);
__$NavStateCopyWithImpl<_NavState>(this, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is _NavState&&const DeepCollectionEquality().equals(other._items, _items)&&(identical(other.errorInfo, errorInfo) || other.errorInfo == errorInfo));
(other.runtimeType == runtimeType &&
other is _NavState &&
const DeepCollectionEquality().equals(other._items, _items) &&
(identical(other.errorInfo, errorInfo) ||
other.errorInfo == errorInfo));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(_items),errorInfo);
runtimeType, const DeepCollectionEquality().hash(_items), errorInfo);
@override @override
String toString() { String toString() {
return 'NavState(items: $items, errorInfo: $errorInfo)'; return 'NavState(items: $items, errorInfo: $errorInfo)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class _$NavStateCopyWith<$Res> abstract mixin class _$NavStateCopyWith<$Res> implements $NavStateCopyWith<$Res> {
implements $NavStateCopyWith<$Res> { factory _$NavStateCopyWith(_NavState value, $Res Function(_NavState) _then) = __$NavStateCopyWithImpl;
factory _$NavStateCopyWith(_NavState value, $Res Function(_NavState) _then) = @override @useResult
__$NavStateCopyWithImpl; $Res call({
@override List<NavApiDocsItemData>? items, String errorInfo
@useResult });
$Res call({List<NavApiDocsItemData>? items, String errorInfo});
}
}
/// @nodoc /// @nodoc
class __$NavStateCopyWithImpl<$Res> implements _$NavStateCopyWith<$Res> { class __$NavStateCopyWithImpl<$Res>
implements _$NavStateCopyWith<$Res> {
__$NavStateCopyWithImpl(this._self, this._then); __$NavStateCopyWithImpl(this._self, this._then);
final _NavState _self; final _NavState _self;
@ -148,23 +268,15 @@ class __$NavStateCopyWithImpl<$Res> implements _$NavStateCopyWith<$Res> {
/// Create a copy of NavState /// Create a copy of NavState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @pragma('vm:prefer-inline') $Res call({Object? items = freezed,Object? errorInfo = null,}) {
@pragma('vm:prefer-inline')
$Res call({
Object? items = freezed,
Object? errorInfo = null,
}) {
return _then(_NavState( return _then(_NavState(
items: freezed == items items: freezed == items ? _self._items : items // ignore: cast_nullable_to_non_nullable
? _self._items as List<NavApiDocsItemData>?,errorInfo: null == errorInfo ? _self.errorInfo : errorInfo // ignore: cast_nullable_to_non_nullable
: items // ignore: cast_nullable_to_non_nullable
as List<NavApiDocsItemData>?,
errorInfo: null == errorInfo
? _self.errorInfo
: errorInfo // ignore: cast_nullable_to_non_nullable
as String, as String,
)); ));
} }
} }
// dart format on // dart format on

View File

@ -13,8 +13,9 @@ String _$navHash() => r'00c4da8fdd37214cda179a81ece3676add7aab53';
final navProvider = AutoDisposeNotifierProvider<Nav, NavState>.internal( final navProvider = AutoDisposeNotifierProvider<Nav, NavState>.internal(
Nav.new, Nav.new,
name: r'navProvider', name: r'navProvider',
debugGetCreateSourceHash: debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
const bool.fromEnvironment('dart.vm.product') ? null : _$navHash, ? null
: _$navHash,
dependencies: null, dependencies: null,
allTransitiveDependencies: null, allTransitiveDependencies: null,
); );

View File

@ -1,6 +1,5 @@
// dart format width=80
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// ignore_for_file: type=lint // 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 // 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
@ -12,75 +11,47 @@ part of 'settings_ui_model.dart';
// dart format off // dart format off
T _$identity<T>(T value) => value; T _$identity<T>(T value) => value;
/// @nodoc /// @nodoc
mixin _$SettingsUIState { mixin _$SettingsUIState {
bool get isEnableToolSiteMirrors;
String get inputGameLaunchECore;
String? get customLauncherPath;
String? get customGamePath;
int get locationCacheSize;
bool get isUseInternalDNS;
bool get isEnableToolSiteMirrors; String get inputGameLaunchECore; String? get customLauncherPath; String? get customGamePath; int get locationCacheSize; bool get isUseInternalDNS;
/// Create a copy of SettingsUIState /// Create a copy of SettingsUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
$SettingsUIStateCopyWith<SettingsUIState> get copyWith => $SettingsUIStateCopyWith<SettingsUIState> get copyWith => _$SettingsUIStateCopyWithImpl<SettingsUIState>(this as SettingsUIState, _$identity);
_$SettingsUIStateCopyWithImpl<SettingsUIState>(
this as SettingsUIState, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is SettingsUIState&&(identical(other.isEnableToolSiteMirrors, isEnableToolSiteMirrors) || other.isEnableToolSiteMirrors == isEnableToolSiteMirrors)&&(identical(other.inputGameLaunchECore, inputGameLaunchECore) || other.inputGameLaunchECore == inputGameLaunchECore)&&(identical(other.customLauncherPath, customLauncherPath) || other.customLauncherPath == customLauncherPath)&&(identical(other.customGamePath, customGamePath) || other.customGamePath == customGamePath)&&(identical(other.locationCacheSize, locationCacheSize) || other.locationCacheSize == locationCacheSize)&&(identical(other.isUseInternalDNS, isUseInternalDNS) || other.isUseInternalDNS == isUseInternalDNS));
(other.runtimeType == runtimeType &&
other is SettingsUIState &&
(identical(
other.isEnableToolSiteMirrors, isEnableToolSiteMirrors) ||
other.isEnableToolSiteMirrors == isEnableToolSiteMirrors) &&
(identical(other.inputGameLaunchECore, inputGameLaunchECore) ||
other.inputGameLaunchECore == inputGameLaunchECore) &&
(identical(other.customLauncherPath, customLauncherPath) ||
other.customLauncherPath == customLauncherPath) &&
(identical(other.customGamePath, customGamePath) ||
other.customGamePath == customGamePath) &&
(identical(other.locationCacheSize, locationCacheSize) ||
other.locationCacheSize == locationCacheSize) &&
(identical(other.isUseInternalDNS, isUseInternalDNS) ||
other.isUseInternalDNS == isUseInternalDNS));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,isEnableToolSiteMirrors,inputGameLaunchECore,customLauncherPath,customGamePath,locationCacheSize,isUseInternalDNS);
runtimeType,
isEnableToolSiteMirrors,
inputGameLaunchECore,
customLauncherPath,
customGamePath,
locationCacheSize,
isUseInternalDNS);
@override @override
String toString() { String toString() {
return 'SettingsUIState(isEnableToolSiteMirrors: $isEnableToolSiteMirrors, inputGameLaunchECore: $inputGameLaunchECore, customLauncherPath: $customLauncherPath, customGamePath: $customGamePath, locationCacheSize: $locationCacheSize, isUseInternalDNS: $isUseInternalDNS)'; return 'SettingsUIState(isEnableToolSiteMirrors: $isEnableToolSiteMirrors, inputGameLaunchECore: $inputGameLaunchECore, customLauncherPath: $customLauncherPath, customGamePath: $customGamePath, locationCacheSize: $locationCacheSize, isUseInternalDNS: $isUseInternalDNS)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class $SettingsUIStateCopyWith<$Res> { abstract mixin class $SettingsUIStateCopyWith<$Res> {
factory $SettingsUIStateCopyWith( factory $SettingsUIStateCopyWith(SettingsUIState value, $Res Function(SettingsUIState) _then) = _$SettingsUIStateCopyWithImpl;
SettingsUIState value, $Res Function(SettingsUIState) _then) =
_$SettingsUIStateCopyWithImpl;
@useResult @useResult
$Res call( $Res call({
{bool isEnableToolSiteMirrors, bool isEnableToolSiteMirrors, String inputGameLaunchECore, String? customLauncherPath, String? customGamePath, int locationCacheSize, bool isUseInternalDNS
String inputGameLaunchECore, });
String? customLauncherPath,
String? customGamePath,
int locationCacheSize,
bool isUseInternalDNS});
}
}
/// @nodoc /// @nodoc
class _$SettingsUIStateCopyWithImpl<$Res> class _$SettingsUIStateCopyWithImpl<$Res>
implements $SettingsUIStateCopyWith<$Res> { implements $SettingsUIStateCopyWith<$Res> {
@ -91,134 +62,202 @@ class _$SettingsUIStateCopyWithImpl<$Res>
/// Create a copy of SettingsUIState /// Create a copy of SettingsUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline') @override $Res call({Object? isEnableToolSiteMirrors = null,Object? inputGameLaunchECore = null,Object? customLauncherPath = freezed,Object? customGamePath = freezed,Object? locationCacheSize = null,Object? isUseInternalDNS = null,}) {
@override
$Res call({
Object? isEnableToolSiteMirrors = null,
Object? inputGameLaunchECore = null,
Object? customLauncherPath = freezed,
Object? customGamePath = freezed,
Object? locationCacheSize = null,
Object? isUseInternalDNS = null,
}) {
return _then(_self.copyWith( return _then(_self.copyWith(
isEnableToolSiteMirrors: null == isEnableToolSiteMirrors isEnableToolSiteMirrors: null == isEnableToolSiteMirrors ? _self.isEnableToolSiteMirrors : isEnableToolSiteMirrors // ignore: cast_nullable_to_non_nullable
? _self.isEnableToolSiteMirrors as bool,inputGameLaunchECore: null == inputGameLaunchECore ? _self.inputGameLaunchECore : inputGameLaunchECore // ignore: cast_nullable_to_non_nullable
: isEnableToolSiteMirrors // ignore: cast_nullable_to_non_nullable as String,customLauncherPath: freezed == customLauncherPath ? _self.customLauncherPath : customLauncherPath // ignore: cast_nullable_to_non_nullable
as bool, as String?,customGamePath: freezed == customGamePath ? _self.customGamePath : customGamePath // ignore: cast_nullable_to_non_nullable
inputGameLaunchECore: null == inputGameLaunchECore as String?,locationCacheSize: null == locationCacheSize ? _self.locationCacheSize : locationCacheSize // ignore: cast_nullable_to_non_nullable
? _self.inputGameLaunchECore as int,isUseInternalDNS: null == isUseInternalDNS ? _self.isUseInternalDNS : isUseInternalDNS // ignore: cast_nullable_to_non_nullable
: inputGameLaunchECore // ignore: cast_nullable_to_non_nullable
as String,
customLauncherPath: freezed == customLauncherPath
? _self.customLauncherPath
: customLauncherPath // ignore: cast_nullable_to_non_nullable
as String?,
customGamePath: freezed == customGamePath
? _self.customGamePath
: customGamePath // ignore: cast_nullable_to_non_nullable
as String?,
locationCacheSize: null == locationCacheSize
? _self.locationCacheSize
: locationCacheSize // ignore: cast_nullable_to_non_nullable
as int,
isUseInternalDNS: null == isUseInternalDNS
? _self.isUseInternalDNS
: isUseInternalDNS // ignore: cast_nullable_to_non_nullable
as bool, as bool,
)); ));
} }
}
/// Adds pattern-matching-related methods to [SettingsUIState].
extension SettingsUIStatePatterns on SettingsUIState {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _SettingsUIState value)? $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _SettingsUIState() when $default != null:
return $default(_that);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _SettingsUIState value) $default,){
final _that = this;
switch (_that) {
case _SettingsUIState():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _SettingsUIState value)? $default,){
final _that = this;
switch (_that) {
case _SettingsUIState() when $default != null:
return $default(_that);case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( bool isEnableToolSiteMirrors, String inputGameLaunchECore, String? customLauncherPath, String? customGamePath, int locationCacheSize, bool isUseInternalDNS)? $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _SettingsUIState() when $default != null:
return $default(_that.isEnableToolSiteMirrors,_that.inputGameLaunchECore,_that.customLauncherPath,_that.customGamePath,_that.locationCacheSize,_that.isUseInternalDNS);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( bool isEnableToolSiteMirrors, String inputGameLaunchECore, String? customLauncherPath, String? customGamePath, int locationCacheSize, bool isUseInternalDNS) $default,) {final _that = this;
switch (_that) {
case _SettingsUIState():
return $default(_that.isEnableToolSiteMirrors,_that.inputGameLaunchECore,_that.customLauncherPath,_that.customGamePath,_that.locationCacheSize,_that.isUseInternalDNS);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( bool isEnableToolSiteMirrors, String inputGameLaunchECore, String? customLauncherPath, String? customGamePath, int locationCacheSize, bool isUseInternalDNS)? $default,) {final _that = this;
switch (_that) {
case _SettingsUIState() when $default != null:
return $default(_that.isEnableToolSiteMirrors,_that.inputGameLaunchECore,_that.customLauncherPath,_that.customGamePath,_that.locationCacheSize,_that.isUseInternalDNS);case _:
return null;
}
}
} }
/// @nodoc /// @nodoc
class _SettingsUIState implements SettingsUIState {
_SettingsUIState(
{this.isEnableToolSiteMirrors = false,
this.inputGameLaunchECore = "0",
this.customLauncherPath,
this.customGamePath,
this.locationCacheSize = 0,
this.isUseInternalDNS = false});
@override class _SettingsUIState implements SettingsUIState {
@JsonKey() _SettingsUIState({this.isEnableToolSiteMirrors = false, this.inputGameLaunchECore = "0", this.customLauncherPath, this.customGamePath, this.locationCacheSize = 0, this.isUseInternalDNS = false});
final bool isEnableToolSiteMirrors;
@override
@JsonKey() @override@JsonKey() final bool isEnableToolSiteMirrors;
final String inputGameLaunchECore; @override@JsonKey() final String inputGameLaunchECore;
@override @override final String? customLauncherPath;
final String? customLauncherPath; @override final String? customGamePath;
@override @override@JsonKey() final int locationCacheSize;
final String? customGamePath; @override@JsonKey() final bool isUseInternalDNS;
@override
@JsonKey()
final int locationCacheSize;
@override
@JsonKey()
final bool isUseInternalDNS;
/// Create a copy of SettingsUIState /// Create a copy of SettingsUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
_$SettingsUIStateCopyWith<_SettingsUIState> get copyWith => _$SettingsUIStateCopyWith<_SettingsUIState> get copyWith => __$SettingsUIStateCopyWithImpl<_SettingsUIState>(this, _$identity);
__$SettingsUIStateCopyWithImpl<_SettingsUIState>(this, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is _SettingsUIState&&(identical(other.isEnableToolSiteMirrors, isEnableToolSiteMirrors) || other.isEnableToolSiteMirrors == isEnableToolSiteMirrors)&&(identical(other.inputGameLaunchECore, inputGameLaunchECore) || other.inputGameLaunchECore == inputGameLaunchECore)&&(identical(other.customLauncherPath, customLauncherPath) || other.customLauncherPath == customLauncherPath)&&(identical(other.customGamePath, customGamePath) || other.customGamePath == customGamePath)&&(identical(other.locationCacheSize, locationCacheSize) || other.locationCacheSize == locationCacheSize)&&(identical(other.isUseInternalDNS, isUseInternalDNS) || other.isUseInternalDNS == isUseInternalDNS));
(other.runtimeType == runtimeType &&
other is _SettingsUIState &&
(identical(
other.isEnableToolSiteMirrors, isEnableToolSiteMirrors) ||
other.isEnableToolSiteMirrors == isEnableToolSiteMirrors) &&
(identical(other.inputGameLaunchECore, inputGameLaunchECore) ||
other.inputGameLaunchECore == inputGameLaunchECore) &&
(identical(other.customLauncherPath, customLauncherPath) ||
other.customLauncherPath == customLauncherPath) &&
(identical(other.customGamePath, customGamePath) ||
other.customGamePath == customGamePath) &&
(identical(other.locationCacheSize, locationCacheSize) ||
other.locationCacheSize == locationCacheSize) &&
(identical(other.isUseInternalDNS, isUseInternalDNS) ||
other.isUseInternalDNS == isUseInternalDNS));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,isEnableToolSiteMirrors,inputGameLaunchECore,customLauncherPath,customGamePath,locationCacheSize,isUseInternalDNS);
runtimeType,
isEnableToolSiteMirrors,
inputGameLaunchECore,
customLauncherPath,
customGamePath,
locationCacheSize,
isUseInternalDNS);
@override @override
String toString() { String toString() {
return 'SettingsUIState(isEnableToolSiteMirrors: $isEnableToolSiteMirrors, inputGameLaunchECore: $inputGameLaunchECore, customLauncherPath: $customLauncherPath, customGamePath: $customGamePath, locationCacheSize: $locationCacheSize, isUseInternalDNS: $isUseInternalDNS)'; return 'SettingsUIState(isEnableToolSiteMirrors: $isEnableToolSiteMirrors, inputGameLaunchECore: $inputGameLaunchECore, customLauncherPath: $customLauncherPath, customGamePath: $customGamePath, locationCacheSize: $locationCacheSize, isUseInternalDNS: $isUseInternalDNS)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class _$SettingsUIStateCopyWith<$Res> abstract mixin class _$SettingsUIStateCopyWith<$Res> implements $SettingsUIStateCopyWith<$Res> {
implements $SettingsUIStateCopyWith<$Res> { factory _$SettingsUIStateCopyWith(_SettingsUIState value, $Res Function(_SettingsUIState) _then) = __$SettingsUIStateCopyWithImpl;
factory _$SettingsUIStateCopyWith( @override @useResult
_SettingsUIState value, $Res Function(_SettingsUIState) _then) = $Res call({
__$SettingsUIStateCopyWithImpl; bool isEnableToolSiteMirrors, String inputGameLaunchECore, String? customLauncherPath, String? customGamePath, int locationCacheSize, bool isUseInternalDNS
@override });
@useResult
$Res call(
{bool isEnableToolSiteMirrors,
String inputGameLaunchECore,
String? customLauncherPath,
String? customGamePath,
int locationCacheSize,
bool isUseInternalDNS});
}
}
/// @nodoc /// @nodoc
class __$SettingsUIStateCopyWithImpl<$Res> class __$SettingsUIStateCopyWithImpl<$Res>
implements _$SettingsUIStateCopyWith<$Res> { implements _$SettingsUIStateCopyWith<$Res> {
@ -229,43 +268,19 @@ class __$SettingsUIStateCopyWithImpl<$Res>
/// Create a copy of SettingsUIState /// Create a copy of SettingsUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @pragma('vm:prefer-inline') $Res call({Object? isEnableToolSiteMirrors = null,Object? inputGameLaunchECore = null,Object? customLauncherPath = freezed,Object? customGamePath = freezed,Object? locationCacheSize = null,Object? isUseInternalDNS = null,}) {
@pragma('vm:prefer-inline')
$Res call({
Object? isEnableToolSiteMirrors = null,
Object? inputGameLaunchECore = null,
Object? customLauncherPath = freezed,
Object? customGamePath = freezed,
Object? locationCacheSize = null,
Object? isUseInternalDNS = null,
}) {
return _then(_SettingsUIState( return _then(_SettingsUIState(
isEnableToolSiteMirrors: null == isEnableToolSiteMirrors isEnableToolSiteMirrors: null == isEnableToolSiteMirrors ? _self.isEnableToolSiteMirrors : isEnableToolSiteMirrors // ignore: cast_nullable_to_non_nullable
? _self.isEnableToolSiteMirrors as bool,inputGameLaunchECore: null == inputGameLaunchECore ? _self.inputGameLaunchECore : inputGameLaunchECore // ignore: cast_nullable_to_non_nullable
: isEnableToolSiteMirrors // ignore: cast_nullable_to_non_nullable as String,customLauncherPath: freezed == customLauncherPath ? _self.customLauncherPath : customLauncherPath // ignore: cast_nullable_to_non_nullable
as bool, as String?,customGamePath: freezed == customGamePath ? _self.customGamePath : customGamePath // ignore: cast_nullable_to_non_nullable
inputGameLaunchECore: null == inputGameLaunchECore as String?,locationCacheSize: null == locationCacheSize ? _self.locationCacheSize : locationCacheSize // ignore: cast_nullable_to_non_nullable
? _self.inputGameLaunchECore as int,isUseInternalDNS: null == isUseInternalDNS ? _self.isUseInternalDNS : isUseInternalDNS // ignore: cast_nullable_to_non_nullable
: inputGameLaunchECore // ignore: cast_nullable_to_non_nullable
as String,
customLauncherPath: freezed == customLauncherPath
? _self.customLauncherPath
: customLauncherPath // ignore: cast_nullable_to_non_nullable
as String?,
customGamePath: freezed == customGamePath
? _self.customGamePath
: customGamePath // ignore: cast_nullable_to_non_nullable
as String?,
locationCacheSize: null == locationCacheSize
? _self.locationCacheSize
: locationCacheSize // ignore: cast_nullable_to_non_nullable
as int,
isUseInternalDNS: null == isUseInternalDNS
? _self.isUseInternalDNS
: isUseInternalDNS // ignore: cast_nullable_to_non_nullable
as bool, as bool,
)); ));
} }
} }
// dart format on // dart format on

View File

@ -1,6 +1,5 @@
// dart format width=80
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// ignore_for_file: type=lint // 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 // 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
@ -12,66 +11,47 @@ part of 'rsi_launcher_enhance_dialog_ui.dart';
// dart format off // dart format off
T _$identity<T>(T value) => value; T _$identity<T>(T value) => value;
/// @nodoc /// @nodoc
mixin _$RSILauncherStateData { mixin _$RSILauncherStateData {
String get version;
asar_api.RsiLauncherAsarData get data;
String get serverData;
bool get isPatchInstalled;
String? get enabledLocalization;
bool? get enableDownloaderBoost;
String get version; asar_api.RsiLauncherAsarData get data; String get serverData; bool get isPatchInstalled; String? get enabledLocalization; bool? get enableDownloaderBoost;
/// Create a copy of RSILauncherStateData /// Create a copy of RSILauncherStateData
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
$RSILauncherStateDataCopyWith<RSILauncherStateData> get copyWith => $RSILauncherStateDataCopyWith<RSILauncherStateData> get copyWith => _$RSILauncherStateDataCopyWithImpl<RSILauncherStateData>(this as RSILauncherStateData, _$identity);
_$RSILauncherStateDataCopyWithImpl<RSILauncherStateData>(
this as RSILauncherStateData, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is RSILauncherStateData&&(identical(other.version, version) || other.version == version)&&(identical(other.data, data) || other.data == data)&&(identical(other.serverData, serverData) || other.serverData == serverData)&&(identical(other.isPatchInstalled, isPatchInstalled) || other.isPatchInstalled == isPatchInstalled)&&(identical(other.enabledLocalization, enabledLocalization) || other.enabledLocalization == enabledLocalization)&&(identical(other.enableDownloaderBoost, enableDownloaderBoost) || other.enableDownloaderBoost == enableDownloaderBoost));
(other.runtimeType == runtimeType &&
other is RSILauncherStateData &&
(identical(other.version, version) || other.version == version) &&
(identical(other.data, data) || other.data == data) &&
(identical(other.serverData, serverData) ||
other.serverData == serverData) &&
(identical(other.isPatchInstalled, isPatchInstalled) ||
other.isPatchInstalled == isPatchInstalled) &&
(identical(other.enabledLocalization, enabledLocalization) ||
other.enabledLocalization == enabledLocalization) &&
(identical(other.enableDownloaderBoost, enableDownloaderBoost) ||
other.enableDownloaderBoost == enableDownloaderBoost));
} }
@override @override
int get hashCode => Object.hash(runtimeType, version, data, serverData, int get hashCode => Object.hash(runtimeType,version,data,serverData,isPatchInstalled,enabledLocalization,enableDownloaderBoost);
isPatchInstalled, enabledLocalization, enableDownloaderBoost);
@override @override
String toString() { String toString() {
return 'RSILauncherStateData(version: $version, data: $data, serverData: $serverData, isPatchInstalled: $isPatchInstalled, enabledLocalization: $enabledLocalization, enableDownloaderBoost: $enableDownloaderBoost)'; return 'RSILauncherStateData(version: $version, data: $data, serverData: $serverData, isPatchInstalled: $isPatchInstalled, enabledLocalization: $enabledLocalization, enableDownloaderBoost: $enableDownloaderBoost)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class $RSILauncherStateDataCopyWith<$Res> { abstract mixin class $RSILauncherStateDataCopyWith<$Res> {
factory $RSILauncherStateDataCopyWith(RSILauncherStateData value, factory $RSILauncherStateDataCopyWith(RSILauncherStateData value, $Res Function(RSILauncherStateData) _then) = _$RSILauncherStateDataCopyWithImpl;
$Res Function(RSILauncherStateData) _then) =
_$RSILauncherStateDataCopyWithImpl;
@useResult @useResult
$Res call( $Res call({
{String version, String version, asar_api.RsiLauncherAsarData data, String serverData, bool isPatchInstalled, String? enabledLocalization, bool? enableDownloaderBoost
asar_api.RsiLauncherAsarData data, });
String serverData,
bool isPatchInstalled,
String? enabledLocalization,
bool? enableDownloaderBoost});
}
}
/// @nodoc /// @nodoc
class _$RSILauncherStateDataCopyWithImpl<$Res> class _$RSILauncherStateDataCopyWithImpl<$Res>
implements $RSILauncherStateDataCopyWith<$Res> { implements $RSILauncherStateDataCopyWith<$Res> {
@ -82,123 +62,202 @@ class _$RSILauncherStateDataCopyWithImpl<$Res>
/// Create a copy of RSILauncherStateData /// Create a copy of RSILauncherStateData
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline') @override $Res call({Object? version = null,Object? data = null,Object? serverData = null,Object? isPatchInstalled = null,Object? enabledLocalization = freezed,Object? enableDownloaderBoost = freezed,}) {
@override
$Res call({
Object? version = null,
Object? data = null,
Object? serverData = null,
Object? isPatchInstalled = null,
Object? enabledLocalization = freezed,
Object? enableDownloaderBoost = freezed,
}) {
return _then(_self.copyWith( return _then(_self.copyWith(
version: null == version version: null == version ? _self.version : version // ignore: cast_nullable_to_non_nullable
? _self.version as String,data: null == data ? _self.data : data // ignore: cast_nullable_to_non_nullable
: version // ignore: cast_nullable_to_non_nullable as asar_api.RsiLauncherAsarData,serverData: null == serverData ? _self.serverData : serverData // ignore: cast_nullable_to_non_nullable
as String, as String,isPatchInstalled: null == isPatchInstalled ? _self.isPatchInstalled : isPatchInstalled // ignore: cast_nullable_to_non_nullable
data: null == data as bool,enabledLocalization: freezed == enabledLocalization ? _self.enabledLocalization : enabledLocalization // ignore: cast_nullable_to_non_nullable
? _self.data as String?,enableDownloaderBoost: freezed == enableDownloaderBoost ? _self.enableDownloaderBoost : enableDownloaderBoost // ignore: cast_nullable_to_non_nullable
: data // ignore: cast_nullable_to_non_nullable
as asar_api.RsiLauncherAsarData,
serverData: null == serverData
? _self.serverData
: serverData // ignore: cast_nullable_to_non_nullable
as String,
isPatchInstalled: null == isPatchInstalled
? _self.isPatchInstalled
: isPatchInstalled // ignore: cast_nullable_to_non_nullable
as bool,
enabledLocalization: freezed == enabledLocalization
? _self.enabledLocalization
: enabledLocalization // ignore: cast_nullable_to_non_nullable
as String?,
enableDownloaderBoost: freezed == enableDownloaderBoost
? _self.enableDownloaderBoost
: enableDownloaderBoost // ignore: cast_nullable_to_non_nullable
as bool?, as bool?,
)); ));
} }
}
/// Adds pattern-matching-related methods to [RSILauncherStateData].
extension RSILauncherStateDataPatterns on RSILauncherStateData {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _RSILauncherStateData value)? $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _RSILauncherStateData() when $default != null:
return $default(_that);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _RSILauncherStateData value) $default,){
final _that = this;
switch (_that) {
case _RSILauncherStateData():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _RSILauncherStateData value)? $default,){
final _that = this;
switch (_that) {
case _RSILauncherStateData() when $default != null:
return $default(_that);case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String version, asar_api.RsiLauncherAsarData data, String serverData, bool isPatchInstalled, String? enabledLocalization, bool? enableDownloaderBoost)? $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _RSILauncherStateData() when $default != null:
return $default(_that.version,_that.data,_that.serverData,_that.isPatchInstalled,_that.enabledLocalization,_that.enableDownloaderBoost);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String version, asar_api.RsiLauncherAsarData data, String serverData, bool isPatchInstalled, String? enabledLocalization, bool? enableDownloaderBoost) $default,) {final _that = this;
switch (_that) {
case _RSILauncherStateData():
return $default(_that.version,_that.data,_that.serverData,_that.isPatchInstalled,_that.enabledLocalization,_that.enableDownloaderBoost);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String version, asar_api.RsiLauncherAsarData data, String serverData, bool isPatchInstalled, String? enabledLocalization, bool? enableDownloaderBoost)? $default,) {final _that = this;
switch (_that) {
case _RSILauncherStateData() when $default != null:
return $default(_that.version,_that.data,_that.serverData,_that.isPatchInstalled,_that.enabledLocalization,_that.enableDownloaderBoost);case _:
return null;
}
}
} }
/// @nodoc /// @nodoc
class _RSILauncherStateData implements RSILauncherStateData {
const _RSILauncherStateData(
{required this.version,
required this.data,
required this.serverData,
this.isPatchInstalled = false,
this.enabledLocalization,
this.enableDownloaderBoost});
@override class _RSILauncherStateData implements RSILauncherStateData {
final String version; const _RSILauncherStateData({required this.version, required this.data, required this.serverData, this.isPatchInstalled = false, this.enabledLocalization, this.enableDownloaderBoost});
@override
final asar_api.RsiLauncherAsarData data;
@override @override final String version;
final String serverData; @override final asar_api.RsiLauncherAsarData data;
@override @override final String serverData;
@JsonKey() @override@JsonKey() final bool isPatchInstalled;
final bool isPatchInstalled; @override final String? enabledLocalization;
@override @override final bool? enableDownloaderBoost;
final String? enabledLocalization;
@override
final bool? enableDownloaderBoost;
/// Create a copy of RSILauncherStateData /// Create a copy of RSILauncherStateData
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
_$RSILauncherStateDataCopyWith<_RSILauncherStateData> get copyWith => _$RSILauncherStateDataCopyWith<_RSILauncherStateData> get copyWith => __$RSILauncherStateDataCopyWithImpl<_RSILauncherStateData>(this, _$identity);
__$RSILauncherStateDataCopyWithImpl<_RSILauncherStateData>(
this, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is _RSILauncherStateData&&(identical(other.version, version) || other.version == version)&&(identical(other.data, data) || other.data == data)&&(identical(other.serverData, serverData) || other.serverData == serverData)&&(identical(other.isPatchInstalled, isPatchInstalled) || other.isPatchInstalled == isPatchInstalled)&&(identical(other.enabledLocalization, enabledLocalization) || other.enabledLocalization == enabledLocalization)&&(identical(other.enableDownloaderBoost, enableDownloaderBoost) || other.enableDownloaderBoost == enableDownloaderBoost));
(other.runtimeType == runtimeType &&
other is _RSILauncherStateData &&
(identical(other.version, version) || other.version == version) &&
(identical(other.data, data) || other.data == data) &&
(identical(other.serverData, serverData) ||
other.serverData == serverData) &&
(identical(other.isPatchInstalled, isPatchInstalled) ||
other.isPatchInstalled == isPatchInstalled) &&
(identical(other.enabledLocalization, enabledLocalization) ||
other.enabledLocalization == enabledLocalization) &&
(identical(other.enableDownloaderBoost, enableDownloaderBoost) ||
other.enableDownloaderBoost == enableDownloaderBoost));
} }
@override @override
int get hashCode => Object.hash(runtimeType, version, data, serverData, int get hashCode => Object.hash(runtimeType,version,data,serverData,isPatchInstalled,enabledLocalization,enableDownloaderBoost);
isPatchInstalled, enabledLocalization, enableDownloaderBoost);
@override @override
String toString() { String toString() {
return 'RSILauncherStateData(version: $version, data: $data, serverData: $serverData, isPatchInstalled: $isPatchInstalled, enabledLocalization: $enabledLocalization, enableDownloaderBoost: $enableDownloaderBoost)'; return 'RSILauncherStateData(version: $version, data: $data, serverData: $serverData, isPatchInstalled: $isPatchInstalled, enabledLocalization: $enabledLocalization, enableDownloaderBoost: $enableDownloaderBoost)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class _$RSILauncherStateDataCopyWith<$Res> abstract mixin class _$RSILauncherStateDataCopyWith<$Res> implements $RSILauncherStateDataCopyWith<$Res> {
implements $RSILauncherStateDataCopyWith<$Res> { factory _$RSILauncherStateDataCopyWith(_RSILauncherStateData value, $Res Function(_RSILauncherStateData) _then) = __$RSILauncherStateDataCopyWithImpl;
factory _$RSILauncherStateDataCopyWith(_RSILauncherStateData value, @override @useResult
$Res Function(_RSILauncherStateData) _then) = $Res call({
__$RSILauncherStateDataCopyWithImpl; String version, asar_api.RsiLauncherAsarData data, String serverData, bool isPatchInstalled, String? enabledLocalization, bool? enableDownloaderBoost
@override });
@useResult
$Res call(
{String version,
asar_api.RsiLauncherAsarData data,
String serverData,
bool isPatchInstalled,
String? enabledLocalization,
bool? enableDownloaderBoost});
}
}
/// @nodoc /// @nodoc
class __$RSILauncherStateDataCopyWithImpl<$Res> class __$RSILauncherStateDataCopyWithImpl<$Res>
implements _$RSILauncherStateDataCopyWith<$Res> { implements _$RSILauncherStateDataCopyWith<$Res> {
@ -209,43 +268,19 @@ class __$RSILauncherStateDataCopyWithImpl<$Res>
/// Create a copy of RSILauncherStateData /// Create a copy of RSILauncherStateData
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @pragma('vm:prefer-inline') $Res call({Object? version = null,Object? data = null,Object? serverData = null,Object? isPatchInstalled = null,Object? enabledLocalization = freezed,Object? enableDownloaderBoost = freezed,}) {
@pragma('vm:prefer-inline')
$Res call({
Object? version = null,
Object? data = null,
Object? serverData = null,
Object? isPatchInstalled = null,
Object? enabledLocalization = freezed,
Object? enableDownloaderBoost = freezed,
}) {
return _then(_RSILauncherStateData( return _then(_RSILauncherStateData(
version: null == version version: null == version ? _self.version : version // ignore: cast_nullable_to_non_nullable
? _self.version as String,data: null == data ? _self.data : data // ignore: cast_nullable_to_non_nullable
: version // ignore: cast_nullable_to_non_nullable as asar_api.RsiLauncherAsarData,serverData: null == serverData ? _self.serverData : serverData // ignore: cast_nullable_to_non_nullable
as String, as String,isPatchInstalled: null == isPatchInstalled ? _self.isPatchInstalled : isPatchInstalled // ignore: cast_nullable_to_non_nullable
data: null == data as bool,enabledLocalization: freezed == enabledLocalization ? _self.enabledLocalization : enabledLocalization // ignore: cast_nullable_to_non_nullable
? _self.data as String?,enableDownloaderBoost: freezed == enableDownloaderBoost ? _self.enableDownloaderBoost : enableDownloaderBoost // ignore: cast_nullable_to_non_nullable
: data // ignore: cast_nullable_to_non_nullable
as asar_api.RsiLauncherAsarData,
serverData: null == serverData
? _self.serverData
: serverData // ignore: cast_nullable_to_non_nullable
as String,
isPatchInstalled: null == isPatchInstalled
? _self.isPatchInstalled
: isPatchInstalled // ignore: cast_nullable_to_non_nullable
as bool,
enabledLocalization: freezed == enabledLocalization
? _self.enabledLocalization
: enabledLocalization // ignore: cast_nullable_to_non_nullable
as String?,
enableDownloaderBoost: freezed == enableDownloaderBoost
? _self.enableDownloaderBoost
: enableDownloaderBoost // ignore: cast_nullable_to_non_nullable
as bool?, as bool?,
)); ));
} }
} }
// dart format on // dart format on

View File

@ -1,6 +1,5 @@
// dart format width=80
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// ignore_for_file: type=lint // 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 // 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
@ -12,34 +11,24 @@ part of 'log_analyze_provider.dart';
// dart format off // dart format off
T _$identity<T>(T value) => value; T _$identity<T>(T value) => value;
/// @nodoc /// @nodoc
mixin _$LogAnalyzeLineData { mixin _$LogAnalyzeLineData {
String get type;
String get title;
String? get data;
String? get dateTime;
String get type; String get title; String? get data; String? get dateTime;
/// Create a copy of LogAnalyzeLineData /// Create a copy of LogAnalyzeLineData
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
$LogAnalyzeLineDataCopyWith<LogAnalyzeLineData> get copyWith => $LogAnalyzeLineDataCopyWith<LogAnalyzeLineData> get copyWith => _$LogAnalyzeLineDataCopyWithImpl<LogAnalyzeLineData>(this as LogAnalyzeLineData, _$identity);
_$LogAnalyzeLineDataCopyWithImpl<LogAnalyzeLineData>(
this as LogAnalyzeLineData, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is LogAnalyzeLineData&&(identical(other.type, type) || other.type == type)&&(identical(other.title, title) || other.title == title)&&(identical(other.data, data) || other.data == data)&&(identical(other.dateTime, dateTime) || other.dateTime == dateTime));
(other.runtimeType == runtimeType &&
other is LogAnalyzeLineData &&
(identical(other.type, type) || other.type == type) &&
(identical(other.title, title) || other.title == title) &&
(identical(other.data, data) || other.data == data) &&
(identical(other.dateTime, dateTime) ||
other.dateTime == dateTime));
} }
@override @override
int get hashCode => Object.hash(runtimeType,type,title,data,dateTime); int get hashCode => Object.hash(runtimeType,type,title,data,dateTime);
@ -47,17 +36,22 @@ mixin _$LogAnalyzeLineData {
String toString() { String toString() {
return 'LogAnalyzeLineData(type: $type, title: $title, data: $data, dateTime: $dateTime)'; return 'LogAnalyzeLineData(type: $type, title: $title, data: $data, dateTime: $dateTime)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class $LogAnalyzeLineDataCopyWith<$Res> { abstract mixin class $LogAnalyzeLineDataCopyWith<$Res> {
factory $LogAnalyzeLineDataCopyWith( factory $LogAnalyzeLineDataCopyWith(LogAnalyzeLineData value, $Res Function(LogAnalyzeLineData) _then) = _$LogAnalyzeLineDataCopyWithImpl;
LogAnalyzeLineData value, $Res Function(LogAnalyzeLineData) _then) =
_$LogAnalyzeLineDataCopyWithImpl;
@useResult @useResult
$Res call({String type, String title, String? data, String? dateTime}); $Res call({
} String type, String title, String? data, String? dateTime
});
}
/// @nodoc /// @nodoc
class _$LogAnalyzeLineDataCopyWithImpl<$Res> class _$LogAnalyzeLineDataCopyWithImpl<$Res>
implements $LogAnalyzeLineDataCopyWith<$Res> { implements $LogAnalyzeLineDataCopyWith<$Res> {
@ -68,70 +62,175 @@ class _$LogAnalyzeLineDataCopyWithImpl<$Res>
/// Create a copy of LogAnalyzeLineData /// Create a copy of LogAnalyzeLineData
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline') @override $Res call({Object? type = null,Object? title = null,Object? data = freezed,Object? dateTime = freezed,}) {
@override
$Res call({
Object? type = null,
Object? title = null,
Object? data = freezed,
Object? dateTime = freezed,
}) {
return _then(_self.copyWith( return _then(_self.copyWith(
type: null == type type: null == type ? _self.type : type // ignore: cast_nullable_to_non_nullable
? _self.type as String,title: null == title ? _self.title : title // ignore: cast_nullable_to_non_nullable
: type // ignore: cast_nullable_to_non_nullable as String,data: freezed == data ? _self.data : data // ignore: cast_nullable_to_non_nullable
as String, as String?,dateTime: freezed == dateTime ? _self.dateTime : dateTime // ignore: cast_nullable_to_non_nullable
title: null == title
? _self.title
: title // ignore: cast_nullable_to_non_nullable
as String,
data: freezed == data
? _self.data
: data // ignore: cast_nullable_to_non_nullable
as String?,
dateTime: freezed == dateTime
? _self.dateTime
: dateTime // ignore: cast_nullable_to_non_nullable
as String?, as String?,
)); ));
} }
}
/// Adds pattern-matching-related methods to [LogAnalyzeLineData].
extension LogAnalyzeLineDataPatterns on LogAnalyzeLineData {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _LogAnalyzeLineData value)? $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _LogAnalyzeLineData() when $default != null:
return $default(_that);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _LogAnalyzeLineData value) $default,){
final _that = this;
switch (_that) {
case _LogAnalyzeLineData():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _LogAnalyzeLineData value)? $default,){
final _that = this;
switch (_that) {
case _LogAnalyzeLineData() when $default != null:
return $default(_that);case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String type, String title, String? data, String? dateTime)? $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _LogAnalyzeLineData() when $default != null:
return $default(_that.type,_that.title,_that.data,_that.dateTime);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String type, String title, String? data, String? dateTime) $default,) {final _that = this;
switch (_that) {
case _LogAnalyzeLineData():
return $default(_that.type,_that.title,_that.data,_that.dateTime);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String type, String title, String? data, String? dateTime)? $default,) {final _that = this;
switch (_that) {
case _LogAnalyzeLineData() when $default != null:
return $default(_that.type,_that.title,_that.data,_that.dateTime);case _:
return null;
}
}
} }
/// @nodoc /// @nodoc
class _LogAnalyzeLineData implements LogAnalyzeLineData {
const _LogAnalyzeLineData(
{required this.type, required this.title, this.data, this.dateTime});
@override class _LogAnalyzeLineData implements LogAnalyzeLineData {
final String type; const _LogAnalyzeLineData({required this.type, required this.title, this.data, this.dateTime});
@override
final String title;
@override @override final String type;
final String? data; @override final String title;
@override @override final String? data;
final String? dateTime; @override final String? dateTime;
/// Create a copy of LogAnalyzeLineData /// Create a copy of LogAnalyzeLineData
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
_$LogAnalyzeLineDataCopyWith<_LogAnalyzeLineData> get copyWith => _$LogAnalyzeLineDataCopyWith<_LogAnalyzeLineData> get copyWith => __$LogAnalyzeLineDataCopyWithImpl<_LogAnalyzeLineData>(this, _$identity);
__$LogAnalyzeLineDataCopyWithImpl<_LogAnalyzeLineData>(this, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is _LogAnalyzeLineData&&(identical(other.type, type) || other.type == type)&&(identical(other.title, title) || other.title == title)&&(identical(other.data, data) || other.data == data)&&(identical(other.dateTime, dateTime) || other.dateTime == dateTime));
(other.runtimeType == runtimeType &&
other is _LogAnalyzeLineData &&
(identical(other.type, type) || other.type == type) &&
(identical(other.title, title) || other.title == title) &&
(identical(other.data, data) || other.data == data) &&
(identical(other.dateTime, dateTime) ||
other.dateTime == dateTime));
} }
@override @override
int get hashCode => Object.hash(runtimeType,type,title,data,dateTime); int get hashCode => Object.hash(runtimeType,type,title,data,dateTime);
@ -139,19 +238,22 @@ class _LogAnalyzeLineData implements LogAnalyzeLineData {
String toString() { String toString() {
return 'LogAnalyzeLineData(type: $type, title: $title, data: $data, dateTime: $dateTime)'; return 'LogAnalyzeLineData(type: $type, title: $title, data: $data, dateTime: $dateTime)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class _$LogAnalyzeLineDataCopyWith<$Res> abstract mixin class _$LogAnalyzeLineDataCopyWith<$Res> implements $LogAnalyzeLineDataCopyWith<$Res> {
implements $LogAnalyzeLineDataCopyWith<$Res> { factory _$LogAnalyzeLineDataCopyWith(_LogAnalyzeLineData value, $Res Function(_LogAnalyzeLineData) _then) = __$LogAnalyzeLineDataCopyWithImpl;
factory _$LogAnalyzeLineDataCopyWith( @override @useResult
_LogAnalyzeLineData value, $Res Function(_LogAnalyzeLineData) _then) = $Res call({
__$LogAnalyzeLineDataCopyWithImpl; String type, String title, String? data, String? dateTime
@override });
@useResult
$Res call({String type, String title, String? data, String? dateTime});
}
}
/// @nodoc /// @nodoc
class __$LogAnalyzeLineDataCopyWithImpl<$Res> class __$LogAnalyzeLineDataCopyWithImpl<$Res>
implements _$LogAnalyzeLineDataCopyWith<$Res> { implements _$LogAnalyzeLineDataCopyWith<$Res> {
@ -162,33 +264,17 @@ class __$LogAnalyzeLineDataCopyWithImpl<$Res>
/// Create a copy of LogAnalyzeLineData /// Create a copy of LogAnalyzeLineData
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @pragma('vm:prefer-inline') $Res call({Object? type = null,Object? title = null,Object? data = freezed,Object? dateTime = freezed,}) {
@pragma('vm:prefer-inline')
$Res call({
Object? type = null,
Object? title = null,
Object? data = freezed,
Object? dateTime = freezed,
}) {
return _then(_LogAnalyzeLineData( return _then(_LogAnalyzeLineData(
type: null == type type: null == type ? _self.type : type // ignore: cast_nullable_to_non_nullable
? _self.type as String,title: null == title ? _self.title : title // ignore: cast_nullable_to_non_nullable
: type // ignore: cast_nullable_to_non_nullable as String,data: freezed == data ? _self.data : data // ignore: cast_nullable_to_non_nullable
as String, as String?,dateTime: freezed == dateTime ? _self.dateTime : dateTime // ignore: cast_nullable_to_non_nullable
title: null == title
? _self.title
: title // ignore: cast_nullable_to_non_nullable
as String,
data: freezed == data
? _self.data
: data // ignore: cast_nullable_to_non_nullable
as String?,
dateTime: freezed == dateTime
? _self.dateTime
: dateTime // ignore: cast_nullable_to_non_nullable
as String?, as String?,
)); ));
} }
} }
// dart format on // dart format on

View File

@ -51,24 +51,15 @@ class ToolsLogAnalyzeFamily
const ToolsLogAnalyzeFamily(); const ToolsLogAnalyzeFamily();
/// See also [ToolsLogAnalyze]. /// See also [ToolsLogAnalyze].
ToolsLogAnalyzeProvider call( ToolsLogAnalyzeProvider call(String gameInstallPath, bool listSortReverse) {
String gameInstallPath, return ToolsLogAnalyzeProvider(gameInstallPath, listSortReverse);
bool listSortReverse,
) {
return ToolsLogAnalyzeProvider(
gameInstallPath,
listSortReverse,
);
} }
@override @override
ToolsLogAnalyzeProvider getProviderOverride( ToolsLogAnalyzeProvider getProviderOverride(
covariant ToolsLogAnalyzeProvider provider, covariant ToolsLogAnalyzeProvider provider,
) { ) {
return call( return call(provider.gameInstallPath, provider.listSortReverse);
provider.gameInstallPath,
provider.listSortReverse,
);
} }
static const Iterable<ProviderOrFamily>? _dependencies = null; static const Iterable<ProviderOrFamily>? _dependencies = null;
@ -87,20 +78,21 @@ class ToolsLogAnalyzeFamily
} }
/// See also [ToolsLogAnalyze]. /// See also [ToolsLogAnalyze].
class ToolsLogAnalyzeProvider extends AutoDisposeAsyncNotifierProviderImpl< class ToolsLogAnalyzeProvider
ToolsLogAnalyze, List<LogAnalyzeLineData>> { extends
AutoDisposeAsyncNotifierProviderImpl<
ToolsLogAnalyze,
List<LogAnalyzeLineData>
> {
/// See also [ToolsLogAnalyze]. /// See also [ToolsLogAnalyze].
ToolsLogAnalyzeProvider( ToolsLogAnalyzeProvider(String gameInstallPath, bool listSortReverse)
String gameInstallPath, : this._internal(
bool listSortReverse,
) : this._internal(
() => ToolsLogAnalyze() () => ToolsLogAnalyze()
..gameInstallPath = gameInstallPath ..gameInstallPath = gameInstallPath
..listSortReverse = listSortReverse, ..listSortReverse = listSortReverse,
from: toolsLogAnalyzeProvider, from: toolsLogAnalyzeProvider,
name: r'toolsLogAnalyzeProvider', name: r'toolsLogAnalyzeProvider',
debugGetCreateSourceHash: debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
const bool.fromEnvironment('dart.vm.product')
? null ? null
: _$toolsLogAnalyzeHash, : _$toolsLogAnalyzeHash,
dependencies: ToolsLogAnalyzeFamily._dependencies, dependencies: ToolsLogAnalyzeFamily._dependencies,
@ -128,10 +120,7 @@ class ToolsLogAnalyzeProvider extends AutoDisposeAsyncNotifierProviderImpl<
FutureOr<List<LogAnalyzeLineData>> runNotifierBuild( FutureOr<List<LogAnalyzeLineData>> runNotifierBuild(
covariant ToolsLogAnalyze notifier, covariant ToolsLogAnalyze notifier,
) { ) {
return notifier.build( return notifier.build(gameInstallPath, listSortReverse);
gameInstallPath,
listSortReverse,
);
} }
@override @override
@ -154,8 +143,11 @@ class ToolsLogAnalyzeProvider extends AutoDisposeAsyncNotifierProviderImpl<
} }
@override @override
AutoDisposeAsyncNotifierProviderElement<ToolsLogAnalyze, AutoDisposeAsyncNotifierProviderElement<
List<LogAnalyzeLineData>> createElement() { ToolsLogAnalyze,
List<LogAnalyzeLineData>
>
createElement() {
return _ToolsLogAnalyzeProviderElement(this); return _ToolsLogAnalyzeProviderElement(this);
} }
@ -188,8 +180,12 @@ mixin ToolsLogAnalyzeRef
} }
class _ToolsLogAnalyzeProviderElement class _ToolsLogAnalyzeProviderElement
extends AutoDisposeAsyncNotifierProviderElement<ToolsLogAnalyze, extends
List<LogAnalyzeLineData>> with ToolsLogAnalyzeRef { AutoDisposeAsyncNotifierProviderElement<
ToolsLogAnalyze,
List<LogAnalyzeLineData>
>
with ToolsLogAnalyzeRef {
_ToolsLogAnalyzeProviderElement(super.provider); _ToolsLogAnalyzeProviderElement(super.provider);
@override @override
@ -199,5 +195,6 @@ class _ToolsLogAnalyzeProviderElement
bool get listSortReverse => bool get listSortReverse =>
(origin as ToolsLogAnalyzeProvider).listSortReverse; (origin as ToolsLogAnalyzeProvider).listSortReverse;
} }
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package

View File

@ -1,6 +1,5 @@
// dart format width=80
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// ignore_for_file: type=lint // 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 // 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
@ -12,80 +11,50 @@ part of 'tools_ui_model.dart';
// dart format off // dart format off
T _$identity<T>(T value) => value; T _$identity<T>(T value) => value;
/// @nodoc /// @nodoc
mixin _$ToolsUIState { mixin _$ToolsUIState {
bool get working;
String get scInstalledPath;
String get rsiLauncherInstalledPath;
List<String> get scInstallPaths;
List<String> get rsiLauncherInstallPaths;
List<ToolsItemData> get items;
bool get isItemLoading;
bool get working; String get scInstalledPath; String get rsiLauncherInstalledPath; List<String> get scInstallPaths; List<String> get rsiLauncherInstallPaths; List<ToolsItemData> get items; bool get isItemLoading;
/// Create a copy of ToolsUIState /// Create a copy of ToolsUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
$ToolsUIStateCopyWith<ToolsUIState> get copyWith => $ToolsUIStateCopyWith<ToolsUIState> get copyWith => _$ToolsUIStateCopyWithImpl<ToolsUIState>(this as ToolsUIState, _$identity);
_$ToolsUIStateCopyWithImpl<ToolsUIState>(
this as ToolsUIState, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is ToolsUIState&&(identical(other.working, working) || other.working == working)&&(identical(other.scInstalledPath, scInstalledPath) || other.scInstalledPath == scInstalledPath)&&(identical(other.rsiLauncherInstalledPath, rsiLauncherInstalledPath) || other.rsiLauncherInstalledPath == rsiLauncherInstalledPath)&&const DeepCollectionEquality().equals(other.scInstallPaths, scInstallPaths)&&const DeepCollectionEquality().equals(other.rsiLauncherInstallPaths, rsiLauncherInstallPaths)&&const DeepCollectionEquality().equals(other.items, items)&&(identical(other.isItemLoading, isItemLoading) || other.isItemLoading == isItemLoading));
(other.runtimeType == runtimeType &&
other is ToolsUIState &&
(identical(other.working, working) || other.working == working) &&
(identical(other.scInstalledPath, scInstalledPath) ||
other.scInstalledPath == scInstalledPath) &&
(identical(
other.rsiLauncherInstalledPath, rsiLauncherInstalledPath) ||
other.rsiLauncherInstalledPath == rsiLauncherInstalledPath) &&
const DeepCollectionEquality()
.equals(other.scInstallPaths, scInstallPaths) &&
const DeepCollectionEquality().equals(
other.rsiLauncherInstallPaths, rsiLauncherInstallPaths) &&
const DeepCollectionEquality().equals(other.items, items) &&
(identical(other.isItemLoading, isItemLoading) ||
other.isItemLoading == isItemLoading));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,working,scInstalledPath,rsiLauncherInstalledPath,const DeepCollectionEquality().hash(scInstallPaths),const DeepCollectionEquality().hash(rsiLauncherInstallPaths),const DeepCollectionEquality().hash(items),isItemLoading);
runtimeType,
working,
scInstalledPath,
rsiLauncherInstalledPath,
const DeepCollectionEquality().hash(scInstallPaths),
const DeepCollectionEquality().hash(rsiLauncherInstallPaths),
const DeepCollectionEquality().hash(items),
isItemLoading);
@override @override
String toString() { String toString() {
return 'ToolsUIState(working: $working, scInstalledPath: $scInstalledPath, rsiLauncherInstalledPath: $rsiLauncherInstalledPath, scInstallPaths: $scInstallPaths, rsiLauncherInstallPaths: $rsiLauncherInstallPaths, items: $items, isItemLoading: $isItemLoading)'; return 'ToolsUIState(working: $working, scInstalledPath: $scInstalledPath, rsiLauncherInstalledPath: $rsiLauncherInstalledPath, scInstallPaths: $scInstallPaths, rsiLauncherInstallPaths: $rsiLauncherInstallPaths, items: $items, isItemLoading: $isItemLoading)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class $ToolsUIStateCopyWith<$Res> { abstract mixin class $ToolsUIStateCopyWith<$Res> {
factory $ToolsUIStateCopyWith( factory $ToolsUIStateCopyWith(ToolsUIState value, $Res Function(ToolsUIState) _then) = _$ToolsUIStateCopyWithImpl;
ToolsUIState value, $Res Function(ToolsUIState) _then) =
_$ToolsUIStateCopyWithImpl;
@useResult @useResult
$Res call( $Res call({
{bool working, bool working, String scInstalledPath, String rsiLauncherInstalledPath, List<String> scInstallPaths, List<String> rsiLauncherInstallPaths, List<ToolsItemData> items, bool isItemLoading
String scInstalledPath, });
String rsiLauncherInstalledPath,
List<String> scInstallPaths,
List<String> rsiLauncherInstallPaths,
List<ToolsItemData> items,
bool isItemLoading});
}
}
/// @nodoc /// @nodoc
class _$ToolsUIStateCopyWithImpl<$Res> implements $ToolsUIStateCopyWith<$Res> { class _$ToolsUIStateCopyWithImpl<$Res>
implements $ToolsUIStateCopyWith<$Res> {
_$ToolsUIStateCopyWithImpl(this._self, this._then); _$ToolsUIStateCopyWithImpl(this._self, this._then);
final ToolsUIState _self; final ToolsUIState _self;
@ -93,169 +62,222 @@ class _$ToolsUIStateCopyWithImpl<$Res> implements $ToolsUIStateCopyWith<$Res> {
/// Create a copy of ToolsUIState /// Create a copy of ToolsUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline') @override $Res call({Object? working = null,Object? scInstalledPath = null,Object? rsiLauncherInstalledPath = null,Object? scInstallPaths = null,Object? rsiLauncherInstallPaths = null,Object? items = null,Object? isItemLoading = null,}) {
@override
$Res call({
Object? working = null,
Object? scInstalledPath = null,
Object? rsiLauncherInstalledPath = null,
Object? scInstallPaths = null,
Object? rsiLauncherInstallPaths = null,
Object? items = null,
Object? isItemLoading = null,
}) {
return _then(_self.copyWith( return _then(_self.copyWith(
working: null == working working: null == working ? _self.working : working // ignore: cast_nullable_to_non_nullable
? _self.working as bool,scInstalledPath: null == scInstalledPath ? _self.scInstalledPath : scInstalledPath // ignore: cast_nullable_to_non_nullable
: working // ignore: cast_nullable_to_non_nullable as String,rsiLauncherInstalledPath: null == rsiLauncherInstalledPath ? _self.rsiLauncherInstalledPath : rsiLauncherInstalledPath // ignore: cast_nullable_to_non_nullable
as bool, as String,scInstallPaths: null == scInstallPaths ? _self.scInstallPaths : scInstallPaths // ignore: cast_nullable_to_non_nullable
scInstalledPath: null == scInstalledPath as List<String>,rsiLauncherInstallPaths: null == rsiLauncherInstallPaths ? _self.rsiLauncherInstallPaths : rsiLauncherInstallPaths // ignore: cast_nullable_to_non_nullable
? _self.scInstalledPath as List<String>,items: null == items ? _self.items : items // ignore: cast_nullable_to_non_nullable
: scInstalledPath // ignore: cast_nullable_to_non_nullable as List<ToolsItemData>,isItemLoading: null == isItemLoading ? _self.isItemLoading : isItemLoading // ignore: cast_nullable_to_non_nullable
as String,
rsiLauncherInstalledPath: null == rsiLauncherInstalledPath
? _self.rsiLauncherInstalledPath
: rsiLauncherInstalledPath // ignore: cast_nullable_to_non_nullable
as String,
scInstallPaths: null == scInstallPaths
? _self.scInstallPaths
: scInstallPaths // ignore: cast_nullable_to_non_nullable
as List<String>,
rsiLauncherInstallPaths: null == rsiLauncherInstallPaths
? _self.rsiLauncherInstallPaths
: rsiLauncherInstallPaths // ignore: cast_nullable_to_non_nullable
as List<String>,
items: null == items
? _self.items
: items // ignore: cast_nullable_to_non_nullable
as List<ToolsItemData>,
isItemLoading: null == isItemLoading
? _self.isItemLoading
: isItemLoading // ignore: cast_nullable_to_non_nullable
as bool, as bool,
)); ));
} }
}
/// Adds pattern-matching-related methods to [ToolsUIState].
extension ToolsUIStatePatterns on ToolsUIState {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _ToolsUIState value)? $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _ToolsUIState() when $default != null:
return $default(_that);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _ToolsUIState value) $default,){
final _that = this;
switch (_that) {
case _ToolsUIState():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _ToolsUIState value)? $default,){
final _that = this;
switch (_that) {
case _ToolsUIState() when $default != null:
return $default(_that);case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( bool working, String scInstalledPath, String rsiLauncherInstalledPath, List<String> scInstallPaths, List<String> rsiLauncherInstallPaths, List<ToolsItemData> items, bool isItemLoading)? $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _ToolsUIState() when $default != null:
return $default(_that.working,_that.scInstalledPath,_that.rsiLauncherInstalledPath,_that.scInstallPaths,_that.rsiLauncherInstallPaths,_that.items,_that.isItemLoading);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( bool working, String scInstalledPath, String rsiLauncherInstalledPath, List<String> scInstallPaths, List<String> rsiLauncherInstallPaths, List<ToolsItemData> items, bool isItemLoading) $default,) {final _that = this;
switch (_that) {
case _ToolsUIState():
return $default(_that.working,_that.scInstalledPath,_that.rsiLauncherInstalledPath,_that.scInstallPaths,_that.rsiLauncherInstallPaths,_that.items,_that.isItemLoading);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( bool working, String scInstalledPath, String rsiLauncherInstalledPath, List<String> scInstallPaths, List<String> rsiLauncherInstallPaths, List<ToolsItemData> items, bool isItemLoading)? $default,) {final _that = this;
switch (_that) {
case _ToolsUIState() when $default != null:
return $default(_that.working,_that.scInstalledPath,_that.rsiLauncherInstalledPath,_that.scInstallPaths,_that.rsiLauncherInstallPaths,_that.items,_that.isItemLoading);case _:
return null;
}
}
} }
/// @nodoc /// @nodoc
class _ToolsUIState implements ToolsUIState {
_ToolsUIState(
{this.working = false,
this.scInstalledPath = "",
this.rsiLauncherInstalledPath = "",
final List<String> scInstallPaths = const [],
final List<String> rsiLauncherInstallPaths = const [],
final List<ToolsItemData> items = const [],
this.isItemLoading = false})
: _scInstallPaths = scInstallPaths,
_rsiLauncherInstallPaths = rsiLauncherInstallPaths,
_items = items;
@override class _ToolsUIState implements ToolsUIState {
@JsonKey() _ToolsUIState({this.working = false, this.scInstalledPath = "", this.rsiLauncherInstalledPath = "", final List<String> scInstallPaths = const [], final List<String> rsiLauncherInstallPaths = const [], final List<ToolsItemData> items = const [], this.isItemLoading = false}): _scInstallPaths = scInstallPaths,_rsiLauncherInstallPaths = rsiLauncherInstallPaths,_items = items;
final bool working;
@override
@JsonKey() @override@JsonKey() final bool working;
final String scInstalledPath; @override@JsonKey() final String scInstalledPath;
@override @override@JsonKey() final String rsiLauncherInstalledPath;
@JsonKey()
final String rsiLauncherInstalledPath;
final List<String> _scInstallPaths; final List<String> _scInstallPaths;
@override @override@JsonKey() List<String> get scInstallPaths {
@JsonKey()
List<String> get scInstallPaths {
if (_scInstallPaths is EqualUnmodifiableListView) return _scInstallPaths; if (_scInstallPaths is EqualUnmodifiableListView) return _scInstallPaths;
// ignore: implicit_dynamic_type // ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_scInstallPaths); return EqualUnmodifiableListView(_scInstallPaths);
} }
final List<String> _rsiLauncherInstallPaths; final List<String> _rsiLauncherInstallPaths;
@override @override@JsonKey() List<String> get rsiLauncherInstallPaths {
@JsonKey() if (_rsiLauncherInstallPaths is EqualUnmodifiableListView) return _rsiLauncherInstallPaths;
List<String> get rsiLauncherInstallPaths {
if (_rsiLauncherInstallPaths is EqualUnmodifiableListView)
return _rsiLauncherInstallPaths;
// ignore: implicit_dynamic_type // ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_rsiLauncherInstallPaths); return EqualUnmodifiableListView(_rsiLauncherInstallPaths);
} }
final List<ToolsItemData> _items; final List<ToolsItemData> _items;
@override @override@JsonKey() List<ToolsItemData> get items {
@JsonKey()
List<ToolsItemData> get items {
if (_items is EqualUnmodifiableListView) return _items; if (_items is EqualUnmodifiableListView) return _items;
// ignore: implicit_dynamic_type // ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_items); return EqualUnmodifiableListView(_items);
} }
@override @override@JsonKey() final bool isItemLoading;
@JsonKey()
final bool isItemLoading;
/// Create a copy of ToolsUIState /// Create a copy of ToolsUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
_$ToolsUIStateCopyWith<_ToolsUIState> get copyWith => _$ToolsUIStateCopyWith<_ToolsUIState> get copyWith => __$ToolsUIStateCopyWithImpl<_ToolsUIState>(this, _$identity);
__$ToolsUIStateCopyWithImpl<_ToolsUIState>(this, _$identity);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) || (other.runtimeType == runtimeType&&other is _ToolsUIState&&(identical(other.working, working) || other.working == working)&&(identical(other.scInstalledPath, scInstalledPath) || other.scInstalledPath == scInstalledPath)&&(identical(other.rsiLauncherInstalledPath, rsiLauncherInstalledPath) || other.rsiLauncherInstalledPath == rsiLauncherInstalledPath)&&const DeepCollectionEquality().equals(other._scInstallPaths, _scInstallPaths)&&const DeepCollectionEquality().equals(other._rsiLauncherInstallPaths, _rsiLauncherInstallPaths)&&const DeepCollectionEquality().equals(other._items, _items)&&(identical(other.isItemLoading, isItemLoading) || other.isItemLoading == isItemLoading));
(other.runtimeType == runtimeType &&
other is _ToolsUIState &&
(identical(other.working, working) || other.working == working) &&
(identical(other.scInstalledPath, scInstalledPath) ||
other.scInstalledPath == scInstalledPath) &&
(identical(
other.rsiLauncherInstalledPath, rsiLauncherInstalledPath) ||
other.rsiLauncherInstalledPath == rsiLauncherInstalledPath) &&
const DeepCollectionEquality()
.equals(other._scInstallPaths, _scInstallPaths) &&
const DeepCollectionEquality().equals(
other._rsiLauncherInstallPaths, _rsiLauncherInstallPaths) &&
const DeepCollectionEquality().equals(other._items, _items) &&
(identical(other.isItemLoading, isItemLoading) ||
other.isItemLoading == isItemLoading));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType,working,scInstalledPath,rsiLauncherInstalledPath,const DeepCollectionEquality().hash(_scInstallPaths),const DeepCollectionEquality().hash(_rsiLauncherInstallPaths),const DeepCollectionEquality().hash(_items),isItemLoading);
runtimeType,
working,
scInstalledPath,
rsiLauncherInstalledPath,
const DeepCollectionEquality().hash(_scInstallPaths),
const DeepCollectionEquality().hash(_rsiLauncherInstallPaths),
const DeepCollectionEquality().hash(_items),
isItemLoading);
@override @override
String toString() { String toString() {
return 'ToolsUIState(working: $working, scInstalledPath: $scInstalledPath, rsiLauncherInstalledPath: $rsiLauncherInstalledPath, scInstallPaths: $scInstallPaths, rsiLauncherInstallPaths: $rsiLauncherInstallPaths, items: $items, isItemLoading: $isItemLoading)'; return 'ToolsUIState(working: $working, scInstalledPath: $scInstalledPath, rsiLauncherInstalledPath: $rsiLauncherInstalledPath, scInstallPaths: $scInstallPaths, rsiLauncherInstallPaths: $rsiLauncherInstallPaths, items: $items, isItemLoading: $isItemLoading)';
} }
} }
/// @nodoc /// @nodoc
abstract mixin class _$ToolsUIStateCopyWith<$Res> abstract mixin class _$ToolsUIStateCopyWith<$Res> implements $ToolsUIStateCopyWith<$Res> {
implements $ToolsUIStateCopyWith<$Res> { factory _$ToolsUIStateCopyWith(_ToolsUIState value, $Res Function(_ToolsUIState) _then) = __$ToolsUIStateCopyWithImpl;
factory _$ToolsUIStateCopyWith( @override @useResult
_ToolsUIState value, $Res Function(_ToolsUIState) _then) = $Res call({
__$ToolsUIStateCopyWithImpl; bool working, String scInstalledPath, String rsiLauncherInstalledPath, List<String> scInstallPaths, List<String> rsiLauncherInstallPaths, List<ToolsItemData> items, bool isItemLoading
@override });
@useResult
$Res call(
{bool working,
String scInstalledPath,
String rsiLauncherInstalledPath,
List<String> scInstallPaths,
List<String> rsiLauncherInstallPaths,
List<ToolsItemData> items,
bool isItemLoading});
}
}
/// @nodoc /// @nodoc
class __$ToolsUIStateCopyWithImpl<$Res> class __$ToolsUIStateCopyWithImpl<$Res>
implements _$ToolsUIStateCopyWith<$Res> { implements _$ToolsUIStateCopyWith<$Res> {
@ -266,48 +288,20 @@ class __$ToolsUIStateCopyWithImpl<$Res>
/// Create a copy of ToolsUIState /// Create a copy of ToolsUIState
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @override @pragma('vm:prefer-inline') $Res call({Object? working = null,Object? scInstalledPath = null,Object? rsiLauncherInstalledPath = null,Object? scInstallPaths = null,Object? rsiLauncherInstallPaths = null,Object? items = null,Object? isItemLoading = null,}) {
@pragma('vm:prefer-inline')
$Res call({
Object? working = null,
Object? scInstalledPath = null,
Object? rsiLauncherInstalledPath = null,
Object? scInstallPaths = null,
Object? rsiLauncherInstallPaths = null,
Object? items = null,
Object? isItemLoading = null,
}) {
return _then(_ToolsUIState( return _then(_ToolsUIState(
working: null == working working: null == working ? _self.working : working // ignore: cast_nullable_to_non_nullable
? _self.working as bool,scInstalledPath: null == scInstalledPath ? _self.scInstalledPath : scInstalledPath // ignore: cast_nullable_to_non_nullable
: working // ignore: cast_nullable_to_non_nullable as String,rsiLauncherInstalledPath: null == rsiLauncherInstalledPath ? _self.rsiLauncherInstalledPath : rsiLauncherInstalledPath // ignore: cast_nullable_to_non_nullable
as bool, as String,scInstallPaths: null == scInstallPaths ? _self._scInstallPaths : scInstallPaths // ignore: cast_nullable_to_non_nullable
scInstalledPath: null == scInstalledPath as List<String>,rsiLauncherInstallPaths: null == rsiLauncherInstallPaths ? _self._rsiLauncherInstallPaths : rsiLauncherInstallPaths // ignore: cast_nullable_to_non_nullable
? _self.scInstalledPath as List<String>,items: null == items ? _self._items : items // ignore: cast_nullable_to_non_nullable
: scInstalledPath // ignore: cast_nullable_to_non_nullable as List<ToolsItemData>,isItemLoading: null == isItemLoading ? _self.isItemLoading : isItemLoading // ignore: cast_nullable_to_non_nullable
as String,
rsiLauncherInstalledPath: null == rsiLauncherInstalledPath
? _self.rsiLauncherInstalledPath
: rsiLauncherInstalledPath // ignore: cast_nullable_to_non_nullable
as String,
scInstallPaths: null == scInstallPaths
? _self._scInstallPaths
: scInstallPaths // ignore: cast_nullable_to_non_nullable
as List<String>,
rsiLauncherInstallPaths: null == rsiLauncherInstallPaths
? _self._rsiLauncherInstallPaths
: rsiLauncherInstallPaths // ignore: cast_nullable_to_non_nullable
as List<String>,
items: null == items
? _self._items
: items // ignore: cast_nullable_to_non_nullable
as List<ToolsItemData>,
isItemLoading: null == isItemLoading
? _self.isItemLoading
: isItemLoading // ignore: cast_nullable_to_non_nullable
as bool, as bool,
)); ));
} }
} }
// dart format on // dart format on

View File

@ -14,8 +14,9 @@ final toolsUIModelProvider =
AutoDisposeNotifierProvider<ToolsUIModel, ToolsUIState>.internal( AutoDisposeNotifierProvider<ToolsUIModel, ToolsUIState>.internal(
ToolsUIModel.new, ToolsUIModel.new,
name: r'toolsUIModelProvider', name: r'toolsUIModelProvider',
debugGetCreateSourceHash: debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
const bool.fromEnvironment('dart.vm.product') ? null : _$toolsUIModelHash, ? null
: _$toolsUIModelHash,
dependencies: null, dependencies: null,
allTransitiveDependencies: null, allTransitiveDependencies: null,
); );

View File

@ -5,26 +5,26 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: _fe_analyzer_shared name: _fe_analyzer_shared
sha256: e55636ed79578b9abca5fecf9437947798f5ef7456308b5cb85720b793eac92f sha256: da0d9209ca76bde579f2da330aeb9df62b6319c834fa7baae052021b0462401f
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "82.0.0" version: "85.0.0"
analyzer: analyzer:
dependency: transitive dependency: transitive
description: description:
name: analyzer name: analyzer
sha256: "904ae5bb474d32c38fb9482e2d925d5454cda04ddd0e55d2e6826bc72f6ba8c0" sha256: f4ad0fea5f102201015c9aae9d93bc02f75dd9491529a8c21f88d17a8523d44c
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "7.4.5" version: "7.6.0"
analyzer_plugin: analyzer_plugin:
dependency: transitive dependency: transitive
description: description:
name: analyzer_plugin name: analyzer_plugin
sha256: ee188b6df6c85f1441497c7171c84f1392affadc0384f71089cb10a3bc508cef sha256: a5ab7590c27b779f3d4de67f31c4109dbe13dd7339f86461a6f2a8ab2594d8ce
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.13.1" version: "0.13.4"
archive: archive:
dependency: "direct main" dependency: "direct main"
description: description:
@ -70,10 +70,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: build name: build
sha256: "74273591bd8b7f82eeb1f191c1b65a6576535bbfd5ca3722778b07d5702d33cc" sha256: "51dc711996cbf609b90cbe5b335bbce83143875a9d58e4b5c6d3c4f684d3dda7"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.5.3" version: "2.5.4"
build_cli_annotations: build_cli_annotations:
dependency: transitive dependency: transitive
description: description:
@ -102,26 +102,26 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: build_resolvers name: build_resolvers
sha256: badce70566085f2e87434531c4a6bc8e833672f755fc51146d612245947e91c9 sha256: ee4257b3f20c0c90e72ed2b57ad637f694ccba48839a821e87db762548c22a62
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.5.3" version: "2.5.4"
build_runner: build_runner:
dependency: "direct dev" dependency: "direct dev"
description: description:
name: build_runner name: build_runner
sha256: b9070a4127033777c0e63195f6f117ed16a351ed676f6313b095cf4f328c0b82 sha256: "382a4d649addbfb7ba71a3631df0ec6a45d5ab9b098638144faf27f02778eb53"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.5.3" version: "2.5.4"
build_runner_core: build_runner_core:
dependency: transitive dependency: transitive
description: description:
name: build_runner_core name: build_runner_core
sha256: "1cdfece3eeb3f1263f7dbf5bcc0cba697bd0c22d2c866cb4b578c954dbb09bcf" sha256: "85fbbb1036d576d966332a3f5ce83f2ce66a40bea1a94ad2d5fc29a19a0d3792"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "9.1.1" version: "9.1.2"
built_collection: built_collection:
dependency: transitive dependency: transitive
description: description:
@ -134,10 +134,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: built_value name: built_value
sha256: "082001b5c3dc495d4a42f1d5789990505df20d8547d42507c29050af6933ee27" sha256: ba95c961bafcd8686d1cf63be864eb59447e795e124d98d6a27d91fcd13602fb
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "8.10.1" version: "8.11.1"
card_swiper: card_swiper:
dependency: "direct main" dependency: "direct main"
description: description:
@ -254,18 +254,18 @@ packages:
dependency: "direct dev" dependency: "direct dev"
description: description:
name: custom_lint name: custom_lint
sha256: "409c485fd14f544af1da965d5a0d160ee57cd58b63eeaa7280a4f28cf5bda7f1" sha256: "9656925637516c5cf0f5da018b33df94025af2088fe09c8ae2ca54c53f2d9a84"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.7.5" version: "0.7.6"
custom_lint_builder: custom_lint_builder:
dependency: transitive dependency: transitive
description: description:
name: custom_lint_builder name: custom_lint_builder
sha256: "107e0a43606138015777590ee8ce32f26ba7415c25b722ff0908a6f5d7a4c228" sha256: "6cdc8e87e51baaaba9c43e283ed8d28e59a0c4732279df62f66f7b5984655414"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.7.5" version: "0.7.6"
custom_lint_core: custom_lint_core:
dependency: transitive dependency: transitive
description: description:
@ -278,10 +278,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: custom_lint_visitor name: custom_lint_visitor
sha256: cba5b6d7a6217312472bf4468cdf68c949488aed7ffb0eab792cd0b6c435054d sha256: "4a86a0d8415a91fbb8298d6ef03e9034dc8e323a599ddc4120a0e36c433983a2"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.0.0+7.4.5" version: "1.0.0+7.7.0"
dart_rss: dart_rss:
dependency: "direct main" dependency: "direct main"
description: description:
@ -294,10 +294,18 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: dart_style name: dart_style
sha256: "5b236382b47ee411741447c1f1e111459c941ea1b3f2b540dde54c210a3662af" sha256: "8a0e5fba27e8ee025d2ffb4ee820b4e6e2cf5e4246a6b1a477eb66866947e0bb"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.1.0" version: "3.1.1"
dbus:
dependency: transitive
description:
name: dbus
sha256: "79e0c23480ff85dc68de79e2cd6334add97e48f7f4865d17686dd6ea81a47e8c"
url: "https://pub.dev"
source: hosted
version: "0.7.11"
desktop_multi_window: desktop_multi_window:
dependency: "direct main" dependency: "direct main"
description: description:
@ -334,10 +342,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: dio name: dio
sha256: "253a18bbd4851fecba42f7343a1df3a9a4c1d31a2c1b37e221086b4fa8c8dbc9" sha256: d90ee57923d1828ac14e492ca49440f65477f4bb1263575900be731a3dac66a9
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "5.8.0+1" version: "5.9.0"
dio_web_adapter: dio_web_adapter:
dependency: transitive dependency: transitive
description: description:
@ -382,10 +390,10 @@ packages:
dependency: "direct dev" dependency: "direct dev"
description: description:
name: ffigen name: ffigen
sha256: cb3edbfb68ac5283102a2deb7057913d3a1fb16552dacda0c07eb144497e4891 sha256: "2bd9a420ca42cb5ce8cff5d80f88547b547a042ae26807704b1698714e4464a2"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "19.0.0" version: "19.1.0"
file: file:
dependency: "direct main" dependency: "direct main"
description: description:
@ -398,10 +406,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: file_picker name: file_picker
sha256: ef9908739bdd9c476353d6adff72e88fd00c625f5b959ae23f7567bd5137db0a sha256: ef7d2a085c1b1d69d17b6842d0734aad90156de08df6bd3c12496d0bd6ddf8e2
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "10.2.0" version: "10.3.1"
file_sizes: file_sizes:
dependency: "direct main" dependency: "direct main"
description: description:
@ -451,10 +459,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: flutter_hooks name: flutter_hooks
sha256: b772e710d16d7a20c0740c4f855095026b31c7eb5ba3ab67d2bd52021cd9461d sha256: c3df76c62bb3a9f9bee75c57cdab40abab6123b734c1cd7e9b26a5dbd436eceb
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.21.2" version: "0.21.3"
flutter_lints: flutter_lints:
dependency: "direct dev" dependency: "direct dev"
description: description:
@ -472,10 +480,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: flutter_plugin_android_lifecycle name: flutter_plugin_android_lifecycle
sha256: f948e346c12f8d5480d2825e03de228d0eb8c3a737e4cdaa122267b89c022b5e sha256: "6382ce712ff69b0f719640ce957559dde459e55ecd433c767e06d139ddf16cab"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.0.28" version: "2.0.29"
flutter_riverpod: flutter_riverpod:
dependency: "direct main" dependency: "direct main"
description: description:
@ -488,10 +496,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: flutter_rust_bridge name: flutter_rust_bridge
sha256: b416ff56002789e636244fb4cc449f587656eff995e5a7169457eb0593fcaddb sha256: "37ef40bc6f863652e865f0b2563ea07f0d3c58d8efad803cc01933a4b2ee067e"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.10.0" version: "2.11.1"
flutter_staggered_grid_view: flutter_staggered_grid_view:
dependency: "direct main" dependency: "direct main"
description: description:
@ -517,10 +525,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: flutter_tilt name: flutter_tilt
sha256: "2bfc76f9962a7706e9a50295098ffc0f53658d67085b1bdfcb20f63421136296" sha256: "30ec9125ee626aadb0c8de61a21089eb6b84ecb259dc58b5fe22218533d252bf"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.2.1" version: "3.2.3"
flutter_web_plugins: flutter_web_plugins:
dependency: transitive dependency: transitive
description: flutter description: flutter
@ -530,26 +538,26 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: font_awesome_flutter name: font_awesome_flutter
sha256: d3a89184101baec7f4600d58840a764d2ef760fe1c5a20ef9e6b0e9b24a07a3a sha256: f50ce90dbe26d977415b9540400d6778bef00894aced6358ae578abd92b14b10
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "10.8.0" version: "10.9.0"
freezed: freezed:
dependency: "direct dev" dependency: "direct dev"
description: description:
name: freezed name: freezed
sha256: "6022db4c7bfa626841b2a10f34dd1e1b68e8f8f9650db6112dcdeeca45ca793c" sha256: "2d399f823b8849663744d2a9ddcce01c49268fb4170d0442a655bf6a2f47be22"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.0.6" version: "3.1.0"
freezed_annotation: freezed_annotation:
dependency: "direct main" dependency: "direct main"
description: description:
name: freezed_annotation name: freezed_annotation
sha256: c87ff004c8aa6af2d531668b46a4ea379f7191dc6dfa066acd53d506da6e044b sha256: "7294967ff0a6d98638e7acb774aac3af2550777accd8149c90af5b014e6d44d8"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.0.0" version: "3.1.0"
frontend_server_client: frontend_server_client:
dependency: transitive dependency: transitive
description: description:
@ -562,10 +570,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: get_it name: get_it
sha256: d85128a5dae4ea777324730dc65edd9c9f43155c109d5cc0a69cab74139fbac1 sha256: a4292e7cf67193f8e7c1258203104eb2a51ec8b3a04baa14695f4064c144297b
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "7.7.0" version: "8.2.0"
glob: glob:
dependency: transitive dependency: transitive
description: description:
@ -578,10 +586,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: go_router name: go_router
sha256: "02ff498f6279470ff7f60c998a69b872f26696ceec237c8402e63a2133868ddf" sha256: "8b1f37dfaf6e958c6b872322db06f946509433bec3de753c3491a42ae9ec2b48"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "15.2.3" version: "16.1.0"
google_identity_services_web: google_identity_services_web:
dependency: transitive dependency: transitive
description: description:
@ -666,10 +674,10 @@ packages:
dependency: "direct overridden" dependency: "direct overridden"
description: description:
name: http name: http
sha256: "2c11f3f94c687ee9bad77c171151672986360b2b001d109814ee7140b2cf261b" sha256: bb2ce4590bc2667c96f318d68cac1b5a7987ec819351d32b1c987239a815e007
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.4.0" version: "1.5.0"
http2: http2:
dependency: transitive dependency: transitive
description: description:
@ -794,26 +802,26 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: leak_tracker name: leak_tracker
sha256: "6bb818ecbdffe216e81182c2f0714a2e62b593f4a4f13098713ff1685dfb6ab0" sha256: "8dcda04c3fc16c14f48a7bb586d4be1f0d1572731b6d81d51772ef47c02081e0"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "10.0.9" version: "11.0.1"
leak_tracker_flutter_testing: leak_tracker_flutter_testing:
dependency: transitive dependency: transitive
description: description:
name: leak_tracker_flutter_testing name: leak_tracker_flutter_testing
sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573 sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.0.9" version: "3.0.10"
leak_tracker_testing: leak_tracker_testing:
dependency: transitive dependency: transitive
description: description:
name: leak_tracker_testing name: leak_tracker_testing
sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.0.1" version: "3.0.2"
lints: lints:
dependency: transitive dependency: transitive
description: description:
@ -898,10 +906,10 @@ packages:
dependency: "direct dev" dependency: "direct dev"
description: description:
name: msix name: msix
sha256: edde648a8133bf301883c869d19d127049683037c65ff64173ba526ac7a8af2f sha256: f88033fcb9e0dd8de5b18897cbebbd28ea30596810f4a7c86b12b0c03ace87e5
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.16.9" version: "3.16.12"
package_config: package_config:
dependency: transitive dependency: transitive
description: description:
@ -1010,18 +1018,18 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: posix name: posix
sha256: f0d7856b6ca1887cfa6d1d394056a296ae33489db914e365e2044fdada449e62 sha256: "6323a5b0fa688b6a010df4905a56b00181479e6d10534cecfecede2aa55add61"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "6.0.2" version: "6.0.3"
protobuf: protobuf:
dependency: "direct main" dependency: "direct main"
description: description:
name: protobuf name: protobuf
sha256: "579fe5557eae58e3adca2e999e38f02441d8aa908703854a9e0a0f47fa857731" sha256: de9c9eb2c33f8e933a42932fe1dc504800ca45ebc3d673e6ed7f39754ee4053e
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "4.1.0" version: "4.2.0"
pub_semver: pub_semver:
dependency: transitive dependency: transitive
description: description:
@ -1208,10 +1216,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: sensors_plus name: sensors_plus
sha256: "905282c917c6bb731c242f928665c2ea15445aa491249dea9d98d7c79dc8fd39" sha256: "89e2bfc3d883743539ce5774a2b93df61effde40ff958ecad78cd66b1a8b8d52"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "6.1.1" version: "6.1.2"
sensors_plus_platform_interface: sensors_plus_platform_interface:
dependency: transitive dependency: transitive
description: description:
@ -1253,10 +1261,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: source_helper name: source_helper
sha256: "86d247119aedce8e63f4751bd9626fc9613255935558447569ad42f9f5b48b3c" sha256: a447acb083d3a5ef17f983dd36201aeea33fedadb3228fa831f2f0c92f0f3aca
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.3.5" version: "1.3.7"
source_span: source_span:
dependency: transitive dependency: transitive
description: description:
@ -1325,10 +1333,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: synchronized name: synchronized
sha256: "0669c70faae6270521ee4f05bffd2919892d42d1276e6c495be80174b6bc0ef6" sha256: c254ade258ec8282947a0acbbc90b9575b4f19673533ee46f2f6e9b3aeefd7c0
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.3.1" version: "3.4.0"
term_glyph: term_glyph:
dependency: transitive dependency: transitive
description: description:
@ -1341,10 +1349,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: test_api name: test_api
sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd sha256: "522f00f556e73044315fa4585ec3270f1808a4b186c936e612cab0b565ff1e00"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.7.4" version: "0.7.6"
timing: timing:
dependency: transitive dependency: transitive
description: description:
@ -1373,18 +1381,18 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: url_launcher name: url_launcher
sha256: "9d06212b1362abc2f0f0d78e6f09f726608c74e3b9462e8368bb03314aa8d603" sha256: f6a7e5c4835bb4e3026a04793a4199ca2d14c739ec378fdfe23fc8075d0439f8
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "6.3.1" version: "6.3.2"
url_launcher_android: url_launcher_android:
dependency: transitive dependency: transitive
description: description:
name: url_launcher_android name: url_launcher_android
sha256: "8582d7f6fe14d2652b4c45c9b6c14c0b678c2af2d083a11b604caeba51930d79" sha256: "0aedad096a85b49df2e4725fa32118f9fa580f3b14af7a2d2221896a02cd5656"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "6.3.16" version: "6.3.17"
url_launcher_ios: url_launcher_ios:
dependency: transitive dependency: transitive
description: description:
@ -1461,18 +1469,18 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: vector_graphics_compiler name: vector_graphics_compiler
sha256: "557a315b7d2a6dbb0aaaff84d857967ce6bdc96a63dc6ee2a57ce5a6ee5d3331" sha256: ca81fdfaf62a5ab45d7296614aea108d2c7d0efca8393e96174bf4d51e6725b0
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.1.17" version: "1.1.18"
vector_math: vector_math:
dependency: transitive dependency: transitive
description: description:
name: vector_math name: vector_math
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.1.4" version: "2.2.0"
visibility_detector: visibility_detector:
dependency: transitive dependency: transitive
description: description:
@ -1485,10 +1493,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: vm_service name: vm_service
sha256: ddfa8d30d89985b96407efce8acbdd124701f96741f2d981ca860662f1c0dc02 sha256: "45caa6c5917fa127b5dbcfbd1fa60b14e583afdc08bfc96dda38886ca252eb60"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "15.0.0" version: "15.0.2"
watcher: watcher:
dependency: "direct main" dependency: "direct main"
description: description:
@ -1533,10 +1541,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: window_manager name: window_manager
sha256: "51d50168ab267d344b975b15390426b1243600d436770d3f13de67e55b05ec16" sha256: "7eb6d6c4164ec08e1bf978d6e733f3cebe792e2a23fb07cbca25c2872bfdbdcd"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.5.0" version: "0.5.1"
xdg_directories: xdg_directories:
dependency: transitive dependency: transitive
description: description:

View File

@ -5,7 +5,7 @@ publish_to: 'none'
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: '>=3.0.0 <4.0.0' sdk: ^3.8.0
dependencies: dependencies:
flutter: flutter:
@ -18,7 +18,7 @@ dependencies:
flutter_hooks: ^0.21.2 flutter_hooks: ^0.21.2
hooks_riverpod: ^2.6.1 hooks_riverpod: ^2.6.1
json_annotation: ^4.9.0 json_annotation: ^4.9.0
go_router: ^15.1.2 go_router: ^16.1.0
window_manager: ^0.5.0 window_manager: ^0.5.0
fluent_ui: ^4.11.5 fluent_ui: ^4.11.5
flutter_staggered_grid_view: ^0.7.0 flutter_staggered_grid_view: ^0.7.0
@ -43,7 +43,7 @@ dependencies:
flutter_tilt: ^3.0.0 flutter_tilt: ^3.0.0
card_swiper: ^3.0.1 card_swiper: ^3.0.1
ffi: ^2.1.0 ffi: ^2.1.0
flutter_rust_bridge: 2.10.0 flutter_rust_bridge: ^2.11.1
freezed_annotation: ^3.0.0 freezed_annotation: ^3.0.0
meta: ^1.9.1 meta: ^1.9.1
hexcolor: ^3.0.1 hexcolor: ^3.0.1
@ -83,7 +83,7 @@ dev_dependencies:
freezed: ^3.0.6 freezed: ^3.0.6
json_serializable: ^6.7.1 json_serializable: ^6.7.1
riverpod_generator: ^2.6.2 riverpod_generator: ^2.6.2
custom_lint: ^0.7.0 custom_lint: ^0.7.6
riverpod_lint: ^2.6.2 riverpod_lint: ^2.6.2
ffigen: ^19.0.0 ffigen: ^19.0.0
sct_dev_tools: sct_dev_tools:

44
rust/Cargo.lock generated
View File

@ -51,14 +51,13 @@ checksum = "84521a3cf562bc62942e294181d9eef17eb38ceb8c68677bc49f144e4c3d4f8d"
[[package]] [[package]]
name = "android_logger" name = "android_logger"
version = "0.13.3" version = "0.15.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c494134f746c14dc653a35a4ea5aca24ac368529da5370ecf41fe0341c35772f" checksum = "dbb4e440d04be07da1f1bf44fb4495ebd58669372fe0cffa6e48595ac5bd88a3"
dependencies = [ dependencies = [
"android_log-sys", "android_log-sys",
"env_logger", "env_filter",
"log", "log",
"once_cell",
] ]
[[package]] [[package]]
@ -693,12 +692,15 @@ dependencies = [
[[package]] [[package]]
name = "dashmap" name = "dashmap"
version = "4.0.2" version = "5.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e77a43b28d0668df09411cb0bc9a8c2adc40f9a048afe863e05fd43251e8e39c" checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856"
dependencies = [ dependencies = [
"cfg-if", "cfg-if",
"num_cpus", "hashbrown 0.14.5",
"lock_api",
"once_cell",
"parking_lot_core",
] ]
[[package]] [[package]]
@ -823,10 +825,10 @@ dependencies = [
] ]
[[package]] [[package]]
name = "env_logger" name = "env_filter"
version = "0.10.2" version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4cd405aab171cb85d6735e5c8d9db038c17d3ca007a4d2c25f337935c3d90580" checksum = "186e05a59d4c50738528153b83b0b0194d3a29507dfec16eccd4b342903397d0"
dependencies = [ dependencies = [
"log", "log",
"regex", "regex",
@ -897,9 +899,9 @@ dependencies = [
[[package]] [[package]]
name = "flutter_rust_bridge" name = "flutter_rust_bridge"
version = "2.10.0" version = "2.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff1d2ad18166cead8c1b92b1c00e64aacc32e6ebd1ac95f77089c276c9c6bd8c" checksum = "dde126295b2acc5f0a712e265e91b6fdc0ed38767496483e592ae7134db83725"
dependencies = [ dependencies = [
"allo-isolate", "allo-isolate",
"android_logger", "android_logger",
@ -926,9 +928,9 @@ dependencies = [
[[package]] [[package]]
name = "flutter_rust_bridge_macros" name = "flutter_rust_bridge_macros"
version = "2.10.0" version = "2.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "36cf75fba54902e67db5eef4a520df1c9f604db6f71f106fbc012477e2d81542" checksum = "d5f0420326b13675321b194928bb7830043b68cf8b810e1c651285c747abb080"
dependencies = [ dependencies = [
"hex", "hex",
"md-5", "md-5",
@ -1150,6 +1152,12 @@ version = "0.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
[[package]]
name = "hashbrown"
version = "0.14.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
[[package]] [[package]]
name = "hashbrown" name = "hashbrown"
version = "0.15.3" version = "0.15.3"
@ -1976,9 +1984,9 @@ dependencies = [
[[package]] [[package]]
name = "oslog" name = "oslog"
version = "0.1.0" version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8343ce955f18e7e68c0207dd0ea776ec453035685395ababd2ea651c569728b3" checksum = "80d2043d1f61d77cb2f4b1f7b7b2295f40507f5f8e9d1c8bf10a1ca5f97a3969"
dependencies = [ dependencies = [
"cc", "cc",
"dashmap", "dashmap",
@ -2087,9 +2095,9 @@ dependencies = [
[[package]] [[package]]
name = "portable-atomic" name = "portable-atomic"
version = "1.11.0" version = "1.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "350e9b48cbc6b0e028b0473b114454c6316e57336ee184ceab6e53f72c178b3e" checksum = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483"
[[package]] [[package]]
name = "powerfmt" name = "powerfmt"

View File

@ -11,11 +11,11 @@ strip = "debuginfo"
crate-type = ["cdylib", "staticlib"] crate-type = ["cdylib", "staticlib"]
[dependencies] [dependencies]
flutter_rust_bridge = "=2.10.0" flutter_rust_bridge = "=2.11.1"
tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros", "process"] } tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros", "process"] }
futures = { version = "0.3", default-features = false, features = ["executor"] } futures = { version = "0.3", default-features = false, features = ["executor"] }
url = "2.5" url = "2.5"
once_cell = "1.20" once_cell = "1.21"
reqwest = { version = "0.12", features = ["rustls-tls-webpki-roots", "cookies", "gzip", "json", "stream"] } reqwest = { version = "0.12", features = ["rustls-tls-webpki-roots", "cookies", "gzip", "json", "stream"] }
hickory-resolver = { version = "0.25" } hickory-resolver = { version = "0.25" }
anyhow = "1.0" anyhow = "1.0"

View File

@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.10.0. // @generated by `flutter_rust_bridge`@ 2.11.1.
#![allow( #![allow(
non_camel_case_types, non_camel_case_types,
@ -36,7 +36,7 @@ flutter_rust_bridge::frb_generated_boilerplate!(
default_rust_opaque = RustOpaqueNom, default_rust_opaque = RustOpaqueNom,
default_rust_auto_opaque = RustAutoOpaqueNom, default_rust_auto_opaque = RustAutoOpaqueNom,
); );
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.10.0"; pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.11.1";
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 1832496273; pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 1832496273;
// Section: executor // Section: executor
@ -1144,7 +1144,7 @@ impl SseEncode for () {
#[cfg(not(target_family = "wasm"))] #[cfg(not(target_family = "wasm"))]
mod io { mod io {
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.10.0. // @generated by `flutter_rust_bridge`@ 2.11.1.
// Section: imports // Section: imports