bump: flutter 3.35.1

This commit is contained in:
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;
/// Create a copy of AppGlobalState String? get deviceUUID; String? get applicationSupportDir; String? get applicationBinaryModuleDir; AppVersionData? get networkVersionData; ThemeConf get themeConf; Locale? get appLocale; Box? get appConfBox;
/// with the given fields replaced by the non-null parameter values. /// Create a copy of AppGlobalState
@JsonKey(includeFromJson: false, includeToJson: false) /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @JsonKey(includeFromJson: false, includeToJson: false)
$AppGlobalStateCopyWith<AppGlobalState> get copyWith => @pragma('vm:prefer-inline')
_$AppGlobalStateCopyWithImpl<AppGlobalState>( $AppGlobalStateCopyWith<AppGlobalState> get copyWith => _$AppGlobalStateCopyWithImpl<AppGlobalState>(this as AppGlobalState, _$identity);
this as AppGlobalState, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode => Object.hash(
runtimeType,
deviceUUID,
applicationSupportDir,
applicationBinaryModuleDir,
networkVersionData,
themeConf,
appLocale,
appConfBox);
@override @override
String toString() { bool operator ==(Object other) {
return 'AppGlobalState(deviceUUID: $deviceUUID, applicationSupportDir: $applicationSupportDir, applicationBinaryModuleDir: $applicationBinaryModuleDir, networkVersionData: $networkVersionData, themeConf: $themeConf, appLocale: $appLocale, appConfBox: $appConfBox)'; 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));
} }
@override
int get hashCode => Object.hash(runtimeType,deviceUUID,applicationSupportDir,applicationBinaryModuleDir,networkVersionData,themeConf,appLocale,appConfBox);
@override
String toString() {
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) = @useResult
_$AppGlobalStateCopyWithImpl; $Res call({
@useResult String? deviceUUID, String? applicationSupportDir, String? applicationBinaryModuleDir, AppVersionData? networkVersionData, ThemeConf themeConf, Locale? appLocale, Box? appConfBox
$Res call( });
{String? deviceUUID,
String? applicationSupportDir,
String? applicationBinaryModuleDir, $ThemeConfCopyWith<$Res> get themeConf;
AppVersionData? networkVersionData,
ThemeConf themeConf,
Locale? appLocale,
Box? appConfBox});
$ThemeConfCopyWith<$Res> get themeConf;
} }
/// @nodoc /// @nodoc
class _$AppGlobalStateCopyWithImpl<$Res> class _$AppGlobalStateCopyWithImpl<$Res>
implements $AppGlobalStateCopyWith<$Res> { implements $AppGlobalStateCopyWith<$Res> {
@@ -97,159 +60,215 @@ class _$AppGlobalStateCopyWithImpl<$Res>
final AppGlobalState _self; final AppGlobalState _self;
final $Res Function(AppGlobalState) _then; final $Res Function(AppGlobalState) _then;
/// 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 return _then(_self.copyWith(
$Res call({ deviceUUID: freezed == deviceUUID ? _self.deviceUUID : deviceUUID // ignore: cast_nullable_to_non_nullable
Object? deviceUUID = freezed, as String?,applicationSupportDir: freezed == applicationSupportDir ? _self.applicationSupportDir : applicationSupportDir // ignore: cast_nullable_to_non_nullable
Object? applicationSupportDir = freezed, as String?,applicationBinaryModuleDir: freezed == applicationBinaryModuleDir ? _self.applicationBinaryModuleDir : applicationBinaryModuleDir // ignore: cast_nullable_to_non_nullable
Object? applicationBinaryModuleDir = freezed, as String?,networkVersionData: freezed == networkVersionData ? _self.networkVersionData : networkVersionData // ignore: cast_nullable_to_non_nullable
Object? networkVersionData = freezed, as AppVersionData?,themeConf: null == themeConf ? _self.themeConf : themeConf // ignore: cast_nullable_to_non_nullable
Object? themeConf = null, as ThemeConf,appLocale: freezed == appLocale ? _self.appLocale : appLocale // ignore: cast_nullable_to_non_nullable
Object? appLocale = freezed, as Locale?,appConfBox: freezed == appConfBox ? _self.appConfBox : appConfBox // ignore: cast_nullable_to_non_nullable
Object? appConfBox = freezed, as Box?,
}) { ));
return _then(_self.copyWith( }
deviceUUID: freezed == deviceUUID /// Create a copy of AppGlobalState
? _self.deviceUUID /// with the given fields replaced by the non-null parameter values.
: deviceUUID // ignore: cast_nullable_to_non_nullable @override
as String?, @pragma('vm:prefer-inline')
applicationSupportDir: freezed == applicationSupportDir $ThemeConfCopyWith<$Res> get themeConf {
? _self.applicationSupportDir
: applicationSupportDir // ignore: cast_nullable_to_non_nullable return $ThemeConfCopyWith<$Res>(_self.themeConf, (value) {
as String?, return _then(_self.copyWith(themeConf: value));
applicationBinaryModuleDir: freezed == applicationBinaryModuleDir });
? _self.applicationBinaryModuleDir }
: applicationBinaryModuleDir // ignore: cast_nullable_to_non_nullable }
as String?,
networkVersionData: freezed == networkVersionData
? _self.networkVersionData /// Adds pattern-matching-related methods to [AppGlobalState].
: networkVersionData // ignore: cast_nullable_to_non_nullable extension AppGlobalStatePatterns on AppGlobalState {
as AppVersionData?, /// A variant of `map` that fallback to returning `orElse`.
themeConf: null == themeConf ///
? _self.themeConf /// It is equivalent to doing:
: themeConf // ignore: cast_nullable_to_non_nullable /// ```dart
as ThemeConf, /// switch (sealedClass) {
appLocale: freezed == appLocale /// case final Subclass value:
? _self.appLocale /// return ...;
: appLocale // ignore: cast_nullable_to_non_nullable /// case _:
as Locale?, /// return orElse();
appConfBox: freezed == appConfBox /// }
? _self.appConfBox /// ```
: appConfBox // ignore: cast_nullable_to_non_nullable
as Box?, @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;
}
}
/// Create a copy of AppGlobalState
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$ThemeConfCopyWith<$Res> get themeConf {
return $ThemeConfCopyWith<$Res>(_self.themeConf, (value) {
return _then(_self.copyWith(themeConf: value));
});
}
} }
/// @nodoc /// @nodoc
class _AppGlobalState implements AppGlobalState { class _AppGlobalState implements AppGlobalState {
const _AppGlobalState( const _AppGlobalState({this.deviceUUID, this.applicationSupportDir, this.applicationBinaryModuleDir, this.networkVersionData, this.themeConf = const ThemeConf(), this.appLocale, this.appConfBox});
{this.deviceUUID,
this.applicationSupportDir,
this.applicationBinaryModuleDir,
this.networkVersionData,
this.themeConf = const ThemeConf(),
this.appLocale,
this.appConfBox});
@override @override final String? deviceUUID;
final String? deviceUUID; @override final String? applicationSupportDir;
@override @override final String? applicationBinaryModuleDir;
final String? applicationSupportDir; @override final AppVersionData? networkVersionData;
@override @override@JsonKey() final ThemeConf themeConf;
final String? applicationBinaryModuleDir; @override final Locale? appLocale;
@override @override final Box? appConfBox;
final AppVersionData? networkVersionData;
@override
@JsonKey()
final ThemeConf themeConf;
@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 => __$AppGlobalStateCopyWithImpl<_AppGlobalState>(this, _$identity);
_$AppGlobalStateCopyWith<_AppGlobalState> get copyWith =>
__$AppGlobalStateCopyWithImpl<_AppGlobalState>(this, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode => Object.hash(
runtimeType,
deviceUUID,
applicationSupportDir,
applicationBinaryModuleDir,
networkVersionData,
themeConf,
appLocale,
appConfBox);
@override @override
String toString() { bool operator ==(Object other) {
return 'AppGlobalState(deviceUUID: $deviceUUID, applicationSupportDir: $applicationSupportDir, applicationBinaryModuleDir: $applicationBinaryModuleDir, networkVersionData: $networkVersionData, themeConf: $themeConf, appLocale: $appLocale, appConfBox: $appConfBox)'; 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));
} }
@override
int get hashCode => Object.hash(runtimeType,deviceUUID,applicationSupportDir,applicationBinaryModuleDir,networkVersionData,themeConf,appLocale,appConfBox);
@override
String toString() {
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> {
@@ -258,230 +277,294 @@ class __$AppGlobalStateCopyWithImpl<$Res>
final _AppGlobalState _self; final _AppGlobalState _self;
final $Res Function(_AppGlobalState) _then; final $Res Function(_AppGlobalState) _then;
/// 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') return _then(_AppGlobalState(
$Res call({ deviceUUID: freezed == deviceUUID ? _self.deviceUUID : deviceUUID // ignore: cast_nullable_to_non_nullable
Object? deviceUUID = freezed, as String?,applicationSupportDir: freezed == applicationSupportDir ? _self.applicationSupportDir : applicationSupportDir // ignore: cast_nullable_to_non_nullable
Object? applicationSupportDir = freezed, as String?,applicationBinaryModuleDir: freezed == applicationBinaryModuleDir ? _self.applicationBinaryModuleDir : applicationBinaryModuleDir // ignore: cast_nullable_to_non_nullable
Object? applicationBinaryModuleDir = freezed, as String?,networkVersionData: freezed == networkVersionData ? _self.networkVersionData : networkVersionData // ignore: cast_nullable_to_non_nullable
Object? networkVersionData = freezed, as AppVersionData?,themeConf: null == themeConf ? _self.themeConf : themeConf // ignore: cast_nullable_to_non_nullable
Object? themeConf = null, as ThemeConf,appLocale: freezed == appLocale ? _self.appLocale : appLocale // ignore: cast_nullable_to_non_nullable
Object? appLocale = freezed, as Locale?,appConfBox: freezed == appConfBox ? _self.appConfBox : appConfBox // ignore: cast_nullable_to_non_nullable
Object? appConfBox = freezed, as Box?,
}) { ));
return _then(_AppGlobalState( }
deviceUUID: freezed == deviceUUID
? _self.deviceUUID
: deviceUUID // ignore: cast_nullable_to_non_nullable
as String?,
applicationSupportDir: freezed == applicationSupportDir
? _self.applicationSupportDir
: applicationSupportDir // 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?,
));
}
/// 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 _then(_self.copyWith(themeConf: value)); return $ThemeConfCopyWith<$Res>(_self.themeConf, (value) {
}); return _then(_self.copyWith(themeConf: value));
} });
}
} }
/// @nodoc /// @nodoc
mixin _$ThemeConf { mixin _$ThemeConf {
Color get backgroundColor;
Color get menuColor;
Color get micaColor;
/// Create a copy of ThemeConf Color get backgroundColor; Color get menuColor; Color get micaColor;
/// with the given fields replaced by the non-null parameter values. /// Create a copy of ThemeConf
@JsonKey(includeFromJson: false, includeToJson: false) /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @JsonKey(includeFromJson: false, includeToJson: false)
$ThemeConfCopyWith<ThemeConf> get copyWith => @pragma('vm:prefer-inline')
_$ThemeConfCopyWithImpl<ThemeConf>(this as ThemeConf, _$identity); $ThemeConfCopyWith<ThemeConf> get copyWith => _$ThemeConfCopyWithImpl<ThemeConf>(this as ThemeConf, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode =>
Object.hash(runtimeType, backgroundColor, menuColor, micaColor);
@override @override
String toString() { bool operator ==(Object other) {
return 'ThemeConf(backgroundColor: $backgroundColor, menuColor: $menuColor, micaColor: $micaColor)'; 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));
} }
@override
int get hashCode => Object.hash(runtimeType,backgroundColor,menuColor,micaColor);
@override
String toString() {
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({
$Res call({Color backgroundColor, Color menuColor, Color micaColor}); 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;
final $Res Function(ThemeConf) _then; final $Res Function(ThemeConf) _then;
/// 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 return _then(_self.copyWith(
$Res call({ backgroundColor: null == backgroundColor ? _self.backgroundColor : backgroundColor // ignore: cast_nullable_to_non_nullable
Object? backgroundColor = null, as Color,menuColor: null == menuColor ? _self.menuColor : menuColor // ignore: cast_nullable_to_non_nullable
Object? menuColor = null, as Color,micaColor: null == micaColor ? _self.micaColor : micaColor // ignore: cast_nullable_to_non_nullable
Object? micaColor = null, as Color,
}) { ));
return _then(_self.copyWith( }
backgroundColor: null == backgroundColor
? _self.backgroundColor }
: backgroundColor // ignore: cast_nullable_to_non_nullable
as Color,
menuColor: null == menuColor /// Adds pattern-matching-related methods to [ThemeConf].
? _self.menuColor extension ThemeConfPatterns on ThemeConf {
: menuColor // ignore: cast_nullable_to_non_nullable /// A variant of `map` that fallback to returning `orElse`.
as Color, ///
micaColor: null == micaColor /// It is equivalent to doing:
? _self.micaColor /// ```dart
: micaColor // ignore: cast_nullable_to_non_nullable /// switch (sealedClass) {
as Color, /// 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 { class _ThemeConf implements ThemeConf {
const _ThemeConf( const _ThemeConf({this.backgroundColor = const Color(0xbf132431), this.menuColor = const Color(0xf2132431), this.micaColor = const Color(0xff0a3142)});
{this.backgroundColor = const Color(0xbf132431),
this.menuColor = const Color(0xf2132431),
this.micaColor = const Color(0xff0a3142)});
@override @override@JsonKey() final Color backgroundColor;
@JsonKey() @override@JsonKey() final Color menuColor;
final Color backgroundColor; @override@JsonKey() final Color micaColor;
@override
@JsonKey()
final Color menuColor;
@override
@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 => __$ThemeConfCopyWithImpl<_ThemeConf>(this, _$identity);
_$ThemeConfCopyWith<_ThemeConf> get copyWith =>
__$ThemeConfCopyWithImpl<_ThemeConf>(this, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode =>
Object.hash(runtimeType, backgroundColor, menuColor, micaColor);
@override @override
String toString() { bool operator ==(Object other) {
return 'ThemeConf(backgroundColor: $backgroundColor, menuColor: $menuColor, micaColor: $micaColor)'; 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));
} }
@override
int get hashCode => Object.hash(runtimeType,backgroundColor,menuColor,micaColor);
@override
String toString() {
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;
final $Res Function(_ThemeConf) _then; final $Res Function(_ThemeConf) _then;
/// 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') return _then(_ThemeConf(
$Res call({ backgroundColor: null == backgroundColor ? _self.backgroundColor : backgroundColor // ignore: cast_nullable_to_non_nullable
Object? backgroundColor = null, as Color,menuColor: null == menuColor ? _self.menuColor : menuColor // ignore: cast_nullable_to_non_nullable
Object? menuColor = null, as Color,micaColor: null == micaColor ? _self.micaColor : micaColor // ignore: cast_nullable_to_non_nullable
Object? micaColor = null, as Color,
}) { ));
return _then(_ThemeConf( }
backgroundColor: null == backgroundColor
? _self.backgroundColor
: backgroundColor // 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,
));
}
} }
// 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,20 +23,20 @@ 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)
final appGlobalModelProvider = final appGlobalModelProvider =
AutoDisposeNotifierProvider<AppGlobalModel, AppGlobalState>.internal( AutoDisposeNotifierProvider<AppGlobalModel, AppGlobalState>.internal(
AppGlobalModel.new, AppGlobalModel.new,
name: r'appGlobalModelProvider', name: r'appGlobalModelProvider',
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
? null ? null
: _$appGlobalModelHash, : _$appGlobalModelHash,
dependencies: null, dependencies: null,
allTransitiveDependencies: null, allTransitiveDependencies: null,
); );
typedef _$AppGlobalModel = AutoDisposeNotifier<AppGlobalState>; typedef _$AppGlobalModel = AutoDisposeNotifier<AppGlobalState>;
// ignore_for_file: type=lint // ignore_for_file: type=lint

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
.crateApiWin32ApiSetForegroundWindow(windowName: windowName); .api
.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,17 +65,17 @@ 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;
static const kDefaultExternalLibraryLoaderConfig = static const kDefaultExternalLibraryLoaderConfig =
ExternalLibraryLoaderConfig( ExternalLibraryLoaderConfig(
stem: 'rust', stem: 'rust',
ioDirectory: 'rust/target/release/', ioDirectory: 'rust/target/release/',
webPrefix: 'pkg/', webPrefix: 'pkg/',
); );
} }
abstract class RustLibApi extends BaseApi { abstract class RustLibApi extends BaseApi {
@@ -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,115 +138,128 @@ 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(
callFfi: (port_) { NormalTask(
var arg0 = cst_encode_String(host); callFfi: (port_) {
return wire.wire__crate__api__http_api__dns_lookup_ips(port_, arg0); var arg0 = cst_encode_String(host);
}, return wire.wire__crate__api__http_api__dns_lookup_ips(port_, arg0);
codec: DcoCodec( },
decodeSuccessData: dco_decode_list_String, codec: DcoCodec(
decodeErrorData: dco_decode_AnyhowException, decodeSuccessData: dco_decode_list_String,
decodeErrorData: dco_decode_AnyhowException,
),
constMeta: kCrateApiHttpApiDnsLookupIpsConstMeta,
argValues: [host],
apiImpl: this,
), ),
constMeta: kCrateApiHttpApiDnsLookupIpsConstMeta, );
argValues: [host],
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(
callFfi: (port_) { NormalTask(
var arg0 = cst_encode_String(host); callFfi: (port_) {
return wire.wire__crate__api__http_api__dns_lookup_txt(port_, arg0); var arg0 = cst_encode_String(host);
}, return wire.wire__crate__api__http_api__dns_lookup_txt(port_, arg0);
codec: DcoCodec( },
decodeSuccessData: dco_decode_list_String, codec: DcoCodec(
decodeErrorData: dco_decode_AnyhowException, decodeSuccessData: dco_decode_list_String,
decodeErrorData: dco_decode_AnyhowException,
),
constMeta: kCrateApiHttpApiDnsLookupTxtConstMeta,
argValues: [host],
apiImpl: this,
), ),
constMeta: kCrateApiHttpApiDnsLookupTxtConstMeta, );
argValues: [host],
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( }) {
callFfi: (port_) { return handler.executeNormal(
var arg0 = cst_encode_my_method(method); NormalTask(
var arg1 = cst_encode_String(url); callFfi: (port_) {
var arg2 = cst_encode_opt_Map_String_String_None(headers); var arg0 = cst_encode_my_method(method);
var arg3 = cst_encode_opt_list_prim_u_8_strict(inputData); var arg1 = cst_encode_String(url);
var arg4 = cst_encode_opt_String(withIpAddress); var arg2 = cst_encode_opt_Map_String_String_None(headers);
var arg5 = cst_encode_opt_box_autoadd_bool(withCustomDns); var arg3 = cst_encode_opt_list_prim_u_8_strict(inputData);
return wire.wire__crate__api__http_api__fetch( var arg4 = cst_encode_opt_String(withIpAddress);
port_, arg0, arg1, arg2, arg3, arg4, arg5); var arg5 = cst_encode_opt_box_autoadd_bool(withCustomDns);
}, return wire.wire__crate__api__http_api__fetch(
codec: DcoCodec( port_,
decodeSuccessData: dco_decode_rust_http_response, arg0,
decodeErrorData: dco_decode_AnyhowException, arg1,
arg2,
arg3,
arg4,
arg5,
);
},
codec: DcoCodec(
decodeSuccessData: dco_decode_rust_http_response,
decodeErrorData: dco_decode_AnyhowException,
),
constMeta: kCrateApiHttpApiFetchConstMeta,
argValues: [
method,
url,
headers,
inputData,
withIpAddress,
withCustomDns,
],
apiImpl: this,
), ),
constMeta: kCrateApiHttpApiFetchConstMeta, );
argValues: [
method,
url,
headers,
inputData,
withIpAddress,
withCustomDns
],
apiImpl: this,
));
} }
TaskConstMeta get kCrateApiHttpApiFetchConstMeta => const TaskConstMeta( TaskConstMeta get kCrateApiHttpApiFetchConstMeta => const TaskConstMeta(
debugName: "fetch", debugName: "fetch",
argNames: [ argNames: [
"method", "method",
"url", "url",
"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( }) {
callFfi: (port_) { return handler.executeNormal(
var arg0 = cst_encode_String(asarPath); NormalTask(
return wire.wire__crate__api__asar_api__get_rsi_launcher_asar_data( callFfi: (port_) {
port_, arg0); var arg0 = cst_encode_String(asarPath);
}, return wire.wire__crate__api__asar_api__get_rsi_launcher_asar_data(
codec: DcoCodec( port_,
decodeSuccessData: dco_decode_rsi_launcher_asar_data, arg0,
decodeErrorData: dco_decode_AnyhowException, );
},
codec: DcoCodec(
decodeSuccessData: dco_decode_rsi_launcher_asar_data,
decodeErrorData: dco_decode_AnyhowException,
),
constMeta: kCrateApiAsarApiGetRsiLauncherAsarDataConstMeta,
argValues: [asarPath],
apiImpl: this,
), ),
constMeta: kCrateApiAsarApiGetRsiLauncherAsarDataConstMeta, );
argValues: [asarPath],
apiImpl: this,
));
} }
TaskConstMeta get kCrateApiAsarApiGetRsiLauncherAsarDataConstMeta => TaskConstMeta get kCrateApiAsarApiGetRsiLauncherAsarDataConstMeta =>
@@ -245,24 +269,31 @@ 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,
callFfi: (port_) { }) {
var arg0 = cst_encode_box_autoadd_rsi_launcher_asar_data(that); return handler.executeNormal(
var arg1 = cst_encode_list_prim_u_8_loose(content); NormalTask(
return wire callFfi: (port_) {
.wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js( var arg0 = cst_encode_box_autoadd_rsi_launcher_asar_data(that);
port_, arg0, arg1); var arg1 = cst_encode_list_prim_u_8_loose(content);
}, return wire
codec: DcoCodec( .wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js(
decodeSuccessData: dco_decode_unit, port_,
decodeErrorData: dco_decode_AnyhowException, arg0,
arg1,
);
},
codec: DcoCodec(
decodeSuccessData: dco_decode_unit,
decodeErrorData: dco_decode_AnyhowException,
),
constMeta: kCrateApiAsarApiRsiLauncherAsarDataWriteMainJsConstMeta,
argValues: [that, content],
apiImpl: this,
), ),
constMeta: kCrateApiAsarApiRsiLauncherAsarDataWriteMainJsConstMeta, );
argValues: [that, content],
apiImpl: this,
));
} }
TaskConstMeta get kCrateApiAsarApiRsiLauncherAsarDataWriteMainJsConstMeta => TaskConstMeta get kCrateApiAsarApiRsiLauncherAsarDataWriteMainJsConstMeta =>
@@ -272,48 +303,65 @@ 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,
callFfi: (port_) { String? appName,
var arg0 = cst_encode_opt_String(summary); String? appId,
var arg1 = cst_encode_opt_String(body); }) {
var arg2 = cst_encode_opt_String(appName); return handler.executeNormal(
var arg3 = cst_encode_opt_String(appId); NormalTask(
return wire.wire__crate__api__win32_api__send_notify( callFfi: (port_) {
port_, arg0, arg1, arg2, arg3); var arg0 = cst_encode_opt_String(summary);
}, var arg1 = cst_encode_opt_String(body);
codec: DcoCodec( var arg2 = cst_encode_opt_String(appName);
decodeSuccessData: dco_decode_unit, var arg3 = cst_encode_opt_String(appId);
decodeErrorData: dco_decode_AnyhowException, return wire.wire__crate__api__win32_api__send_notify(
port_,
arg0,
arg1,
arg2,
arg3,
);
},
codec: DcoCodec(
decodeSuccessData: dco_decode_unit,
decodeErrorData: dco_decode_AnyhowException,
),
constMeta: kCrateApiWin32ApiSendNotifyConstMeta,
argValues: [summary, body, appName, appId],
apiImpl: this,
), ),
constMeta: kCrateApiWin32ApiSendNotifyConstMeta, );
argValues: [summary, body, appName, appId],
apiImpl: this,
));
} }
TaskConstMeta get kCrateApiWin32ApiSendNotifyConstMeta => const TaskConstMeta( TaskConstMeta get kCrateApiWin32ApiSendNotifyConstMeta => const TaskConstMeta(
debugName: "send_notify", debugName: "send_notify",
argNames: ["summary", "body", "appName", "appId"], argNames: ["summary", "body", "appName", "appId"],
); );
@override @override
Future<void> crateApiHttpApiSetDefaultHeader( Future<void> crateApiHttpApiSetDefaultHeader({
{required Map<String, String> headers}) { required Map<String, String> headers,
return handler.executeNormal(NormalTask( }) {
callFfi: (port_) { return handler.executeNormal(
var arg0 = cst_encode_Map_String_String_None(headers); NormalTask(
return wire.wire__crate__api__http_api__set_default_header(port_, arg0); callFfi: (port_) {
}, var arg0 = cst_encode_Map_String_String_None(headers);
codec: DcoCodec( return wire.wire__crate__api__http_api__set_default_header(
decodeSuccessData: dco_decode_unit, port_,
decodeErrorData: null, arg0,
);
},
codec: DcoCodec(
decodeSuccessData: dco_decode_unit,
decodeErrorData: null,
),
constMeta: kCrateApiHttpApiSetDefaultHeaderConstMeta,
argValues: [headers],
apiImpl: this,
), ),
constMeta: kCrateApiHttpApiSetDefaultHeaderConstMeta, );
argValues: [headers],
apiImpl: this,
));
} }
TaskConstMeta get kCrateApiHttpApiSetDefaultHeaderConstMeta => TaskConstMeta get kCrateApiHttpApiSetDefaultHeaderConstMeta =>
@@ -323,22 +371,27 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
); );
@override @override
Future<bool> crateApiWin32ApiSetForegroundWindow( Future<bool> crateApiWin32ApiSetForegroundWindow({
{required String windowName}) { required String windowName,
return handler.executeNormal(NormalTask( }) {
callFfi: (port_) { return handler.executeNormal(
var arg0 = cst_encode_String(windowName); NormalTask(
return wire.wire__crate__api__win32_api__set_foreground_window( callFfi: (port_) {
port_, arg0); var arg0 = cst_encode_String(windowName);
}, return wire.wire__crate__api__win32_api__set_foreground_window(
codec: DcoCodec( port_,
decodeSuccessData: dco_decode_bool, arg0,
decodeErrorData: dco_decode_AnyhowException, );
},
codec: DcoCodec(
decodeSuccessData: dco_decode_bool,
decodeErrorData: dco_decode_AnyhowException,
),
constMeta: kCrateApiWin32ApiSetForegroundWindowConstMeta,
argValues: [windowName],
apiImpl: this,
), ),
constMeta: kCrateApiWin32ApiSetForegroundWindowConstMeta, );
argValues: [windowName],
apiImpl: this,
));
} }
TaskConstMeta get kCrateApiWin32ApiSetForegroundWindowConstMeta => TaskConstMeta get kCrateApiWin32ApiSetForegroundWindowConstMeta =>
@@ -348,59 +401,73 @@ 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(
callFfi: (port_) { handler.executeNormal(
var arg0 = cst_encode_String(executable); NormalTask(
var arg1 = cst_encode_list_String(arguments); callFfi: (port_) {
var arg2 = cst_encode_String(workingDirectory); var arg0 = cst_encode_String(executable);
var arg3 = cst_encode_StreamSink_rs_process_stream_data_Dco(streamSink); var arg1 = cst_encode_list_String(arguments);
return wire.wire__crate__api__rs_process__start( var arg2 = cst_encode_String(workingDirectory);
port_, arg0, arg1, arg2, arg3); var arg3 = cst_encode_StreamSink_rs_process_stream_data_Dco(
}, streamSink,
codec: DcoCodec( );
decodeSuccessData: dco_decode_unit, return wire.wire__crate__api__rs_process__start(
decodeErrorData: null, port_,
arg0,
arg1,
arg2,
arg3,
);
},
codec: DcoCodec(
decodeSuccessData: dco_decode_unit,
decodeErrorData: null,
),
constMeta: kCrateApiRsProcessStartConstMeta,
argValues: [executable, arguments, workingDirectory, streamSink],
apiImpl: this,
),
), ),
constMeta: kCrateApiRsProcessStartConstMeta, );
argValues: [executable, arguments, workingDirectory, streamSink],
apiImpl: this,
)));
return streamSink.stream; return streamSink.stream;
} }
TaskConstMeta get kCrateApiRsProcessStartConstMeta => const TaskConstMeta( TaskConstMeta get kCrateApiRsProcessStartConstMeta => const TaskConstMeta(
debugName: "start", debugName: "start",
argNames: ["executable", "arguments", "workingDirectory", "streamSink"], argNames: ["executable", "arguments", "workingDirectory", "streamSink"],
); );
@override @override
Future<void> crateApiRsProcessWrite( Future<void> crateApiRsProcessWrite({
{required int rsPid, required String data}) { required int rsPid,
return handler.executeNormal(NormalTask( required String data,
callFfi: (port_) { }) {
var arg0 = cst_encode_u_32(rsPid); return handler.executeNormal(
var arg1 = cst_encode_String(data); NormalTask(
return wire.wire__crate__api__rs_process__write(port_, arg0, arg1); callFfi: (port_) {
}, var arg0 = cst_encode_u_32(rsPid);
codec: DcoCodec( var arg1 = cst_encode_String(data);
decodeSuccessData: dco_decode_unit, return wire.wire__crate__api__rs_process__write(port_, arg0, arg1);
decodeErrorData: null, },
codec: DcoCodec(
decodeSuccessData: dco_decode_unit,
decodeErrorData: null,
),
constMeta: kCrateApiRsProcessWriteConstMeta,
argValues: [rsPid, data],
apiImpl: this,
), ),
constMeta: kCrateApiRsProcessWriteConstMeta, );
argValues: [rsPid, data],
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,13 +478,16 @@ 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
RustStreamSink<RsProcessStreamData> RustStreamSink<RsProcessStreamData>
dco_decode_StreamSink_rs_process_stream_data_Dco(dynamic raw) { dco_decode_StreamSink_rs_process_stream_data_Dco(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs // Codec=Dco (DartCObject based), see doc to use other codecs
throw UnimplementedError(); throw UnimplementedError();
} }
@@ -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)));
@@ -634,8 +703,9 @@ 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,15 +896,17 @@ 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);
var var_mainJsContent = sse_decode_list_prim_u_8_strict(deserializer); var var_mainJsContent = sse_decode_list_prim_u_8_strict(deserializer);
return RsiLauncherAsarData( return RsiLauncherAsarData(
asarPath: var_asarPath, asarPath: var_asarPath,
mainJsPath: var_mainJsPath, mainJsPath: var_mainJsPath,
mainJsContent: var_mainJsContent); mainJsContent: var_mainJsContent,
);
} }
@protected @protected
@@ -839,13 +920,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
var var_remoteAddr = sse_decode_String(deserializer); var var_remoteAddr = sse_decode_String(deserializer);
var var_data = sse_decode_opt_list_prim_u_8_strict(deserializer); var var_data = sse_decode_opt_list_prim_u_8_strict(deserializer);
return RustHttpResponse( return RustHttpResponse(
statusCode: var_statusCode, statusCode: var_statusCode,
headers: var_headers, headers: var_headers,
url: var_url, url: var_url,
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
@@ -30,7 +30,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected @protected
RustStreamSink<RsProcessStreamData> RustStreamSink<RsProcessStreamData>
dco_decode_StreamSink_rs_process_stream_data_Dco(dynamic raw); dco_decode_StreamSink_rs_process_stream_data_Dco(dynamic raw);
@protected @protected
String dco_decode_String(dynamic raw); String dco_decode_String(dynamic raw);
@@ -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,29 +226,35 @@ 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();
} }
@protected @protected
ffi.Pointer<wire_cst_list_record_string_string> ffi.Pointer<wire_cst_list_record_string_string>
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
@@ -255,7 +271,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected @protected
ffi.Pointer<wire_cst_rsi_launcher_asar_data> ffi.Pointer<wire_cst_rsi_launcher_asar_data>
cst_encode_box_autoadd_rsi_launcher_asar_data(RsiLauncherAsarData raw) { cst_encode_box_autoadd_rsi_launcher_asar_data(RsiLauncherAsarData raw) {
// Codec=Cst (C-struct based), see doc to use other codecs // Codec=Cst (C-struct based), see doc to use other codecs
final ptr = wire.cst_new_box_autoadd_rsi_launcher_asar_data(); final ptr = wire.cst_new_box_autoadd_rsi_launcher_asar_data();
cst_api_fill_to_wire_rsi_launcher_asar_data(raw, ptr.ref); cst_api_fill_to_wire_rsi_launcher_asar_data(raw, ptr.ref);
@@ -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);
@@ -298,7 +316,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected @protected
ffi.Pointer<wire_cst_list_record_string_string> ffi.Pointer<wire_cst_list_record_string_string>
cst_encode_list_record_string_string(List<(String, String)> raw) { cst_encode_list_record_string_string(List<(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
final ans = wire.cst_new_list_record_string_string(raw.length); final ans = wire.cst_new_list_record_string_string(raw.length);
for (var i = 0; i < raw.length; ++i) { for (var i = 0; i < raw.length; ++i) {
@@ -309,14 +327,15 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected @protected
ffi.Pointer<wire_cst_list_record_string_string> ffi.Pointer<wire_cst_list_record_string_string>
cst_encode_opt_Map_String_String_None(Map<String, String>? raw) { cst_encode_opt_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 raw == null ? ffi.nullptr : cst_encode_Map_String_String_None(raw); return raw == null ? ffi.nullptr : cst_encode_Map_String_String_None(raw);
} }
@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);
} }
@@ -335,7 +354,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected @protected
ffi.Pointer<wire_cst_list_prim_u_8_strict> ffi.Pointer<wire_cst_list_prim_u_8_strict>
cst_encode_opt_list_prim_u_8_strict(Uint8List? raw) { cst_encode_opt_list_prim_u_8_strict(Uint8List? 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_list_prim_u_8_strict(raw); return raw == null ? ffi.nullptr : cst_encode_list_prim_u_8_strict(raw);
} }
@@ -348,21 +367,26 @@ 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);
@@ -536,29 +592,25 @@ class RustLibWire implements BaseWire {
/// Holds the symbol lookup function. /// Holds the symbol lookup function.
final ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName) final ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName)
_lookup; _lookup;
/// The symbols are looked up in [dynamicLibrary]. /// The symbols are looked up in [dynamicLibrary].
RustLibWire(ffi.DynamicLibrary dynamicLibrary) RustLibWire(ffi.DynamicLibrary dynamicLibrary)
: _lookup = dynamicLibrary.lookup; : _lookup = dynamicLibrary.lookup;
/// 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 =
ffi.NativeFunction< _lookup<
ffi.Void Function( ffi.NativeFunction<
ffi.Int64, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>( ffi.Void Function(
'frbgen_starcitizen_doctor_wire__crate__api__http_api__dns_lookup_ips'); ffi.Int64,
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 =
ffi.NativeFunction< _lookup<
ffi.Void Function( ffi.NativeFunction<
ffi.Int64, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>( ffi.Void Function(
'frbgen_starcitizen_doctor_wire__crate__api__http_api__dns_lookup_txt'); ffi.Int64,
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,27 +678,33 @@ class RustLibWire implements BaseWire {
); );
} }
late final _wire__crate__api__http_api__fetchPtr = _lookup< late final _wire__crate__api__http_api__fetchPtr =
ffi.NativeFunction< _lookup<
ffi.Void Function( ffi.NativeFunction<
ffi.Int64, ffi.Void Function(
ffi.Int32, ffi.Int64,
ffi.Pointer<wire_cst_list_prim_u_8_strict>, ffi.Int32,
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_record_string_string>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>, ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<ffi.Bool>)>>( ffi.Pointer<wire_cst_list_prim_u_8_strict>,
'frbgen_starcitizen_doctor_wire__crate__api__http_api__fetch'); ffi.Pointer<ffi.Bool>,
)
>
>('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
void Function( .asFunction<
void Function(
int, int,
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_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 =
ffi.NativeFunction< _lookup<
ffi.Void Function( ffi.NativeFunction<
ffi.Int64, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>( ffi.Void Function(
'frbgen_starcitizen_doctor_wire__crate__api__asar_api__get_rsi_launcher_asar_data'); ffi.Int64,
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_,
@@ -675,17 +747,25 @@ class RustLibWire implements BaseWire {
late final _wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_jsPtr = late final _wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_jsPtr =
_lookup< _lookup<
ffi.NativeFunction< ffi.NativeFunction<
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 =
ffi.NativeFunction< _lookup<
ffi.Void Function( ffi.NativeFunction<
ffi.Int64, ffi.Void Function(
ffi.Pointer<wire_cst_list_prim_u_8_strict>, 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>,
'frbgen_starcitizen_doctor_wire__crate__api__win32_api__send_notify'); ffi.Pointer<wire_cst_list_prim_u_8_strict>,
)
>
>('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
void Function( .asFunction<
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 =
ffi.NativeFunction< _lookup<
ffi.Void Function( ffi.NativeFunction<
ffi.Int64, ffi.Pointer<wire_cst_list_record_string_string>)>>( ffi.Void Function(
'frbgen_starcitizen_doctor_wire__crate__api__http_api__set_default_header'); ffi.Int64,
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 =
ffi.NativeFunction< _lookup<
ffi.Void Function( ffi.NativeFunction<
ffi.Int64, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>( ffi.Void Function(
'frbgen_starcitizen_doctor_wire__crate__api__win32_api__set_foreground_window'); ffi.Int64,
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,149 +874,152 @@ class RustLibWire implements BaseWire {
); );
} }
late final _wire__crate__api__rs_process__startPtr = _lookup< late final _wire__crate__api__rs_process__startPtr =
ffi.NativeFunction< _lookup<
ffi.Void Function( ffi.NativeFunction<
ffi.Int64, ffi.Void Function(
ffi.Pointer<wire_cst_list_prim_u_8_strict>, ffi.Int64,
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_String>,
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'); ffi.Pointer<wire_cst_list_prim_u_8_strict>,
)
>
>('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
void Function( .asFunction<
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 =
ffi.NativeFunction< _lookup<
ffi.Void Function(ffi.Int64, ffi.Uint32, ffi.NativeFunction<
ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>( ffi.Void Function(
'frbgen_starcitizen_doctor_wire__crate__api__rs_process__write'); ffi.Int64,
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)>();
ffi.Pointer<wire_cst_rsi_launcher_asar_data> ffi.Pointer<wire_cst_rsi_launcher_asar_data>
cst_new_box_autoadd_rsi_launcher_asar_data() { cst_new_box_autoadd_rsi_launcher_asar_data() {
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 =
ffi.NativeFunction< _lookup<
ffi.Pointer<wire_cst_rsi_launcher_asar_data> Function()>>( ffi.NativeFunction<
'frbgen_starcitizen_doctor_cst_new_box_autoadd_rsi_launcher_asar_data'); ffi.Pointer<wire_cst_rsi_launcher_asar_data> Function()
>
>('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 =
ffi.NativeFunction< _lookup<
ffi.Pointer<wire_cst_list_String> Function( ffi.NativeFunction<
ffi.Int32)>>('frbgen_starcitizen_doctor_cst_new_list_String'); ffi.Pointer<wire_cst_list_String> Function(ffi.Int32)
>
>('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 =
ffi.NativeFunction< _lookup<
ffi.Pointer<wire_cst_list_prim_u_8_loose> Function(ffi.Int32)>>( ffi.NativeFunction<
'frbgen_starcitizen_doctor_cst_new_list_prim_u_8_loose'); ffi.Pointer<wire_cst_list_prim_u_8_loose> Function(ffi.Int32)
>
>('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 =
ffi.NativeFunction< _lookup<
ffi.Pointer<wire_cst_list_prim_u_8_strict> Function(ffi.Int32)>>( ffi.NativeFunction<
'frbgen_starcitizen_doctor_cst_new_list_prim_u_8_strict'); ffi.Pointer<wire_cst_list_prim_u_8_strict> Function(ffi.Int32)
>
>('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 =
ffi.NativeFunction< _lookup<
ffi.Pointer<wire_cst_list_record_string_string> Function( ffi.NativeFunction<
ffi.Int32)>>( ffi.Pointer<wire_cst_list_record_string_string> Function(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;
/// Create a copy of MultiWindowAppState String get backgroundColor; String get menuColor; String get micaColor; List<String> get gameInstallPaths; String? get languageCode; String? get countryCode;
/// with the given fields replaced by the non-null parameter values. /// Create a copy of MultiWindowAppState
@JsonKey(includeFromJson: false, includeToJson: false) /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @JsonKey(includeFromJson: false, includeToJson: false)
$MultiWindowAppStateCopyWith<MultiWindowAppState> get copyWith => @pragma('vm:prefer-inline')
_$MultiWindowAppStateCopyWithImpl<MultiWindowAppState>( $MultiWindowAppStateCopyWith<MultiWindowAppState> get copyWith => _$MultiWindowAppStateCopyWithImpl<MultiWindowAppState>(this as MultiWindowAppState, _$identity);
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
bool operator ==(Object 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));
}
@JsonKey(includeFromJson: false, includeToJson: false) @override
@override bool operator ==(Object other) {
int get hashCode => Object.hash( 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));
runtimeType, }
backgroundColor,
menuColor, @JsonKey(includeFromJson: false, includeToJson: false)
micaColor, @override
const DeepCollectionEquality().hash(gameInstallPaths), int get hashCode => Object.hash(runtimeType,backgroundColor,menuColor,micaColor,const DeepCollectionEquality().hash(gameInstallPaths),languageCode,countryCode);
languageCode,
countryCode); @override
String toString() {
return 'MultiWindowAppState(backgroundColor: $backgroundColor, menuColor: $menuColor, micaColor: $micaColor, gameInstallPaths: $gameInstallPaths, languageCode: $languageCode, countryCode: $countryCode)';
}
@override
String toString() {
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) = @useResult
_$MultiWindowAppStateCopyWithImpl; $Res call({
@useResult String backgroundColor, String menuColor, String micaColor, List<String> gameInstallPaths, String? languageCode, String? countryCode
$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> {
@@ -92,150 +63,213 @@ class _$MultiWindowAppStateCopyWithImpl<$Res>
final MultiWindowAppState _self; final MultiWindowAppState _self;
final $Res Function(MultiWindowAppState) _then; final $Res Function(MultiWindowAppState) _then;
/// 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 return _then(_self.copyWith(
$Res call({ backgroundColor: null == backgroundColor ? _self.backgroundColor : backgroundColor // ignore: cast_nullable_to_non_nullable
Object? backgroundColor = null, as String,menuColor: null == menuColor ? _self.menuColor : menuColor // ignore: cast_nullable_to_non_nullable
Object? menuColor = null, as String,micaColor: null == micaColor ? _self.micaColor : micaColor // ignore: cast_nullable_to_non_nullable
Object? micaColor = null, as String,gameInstallPaths: null == gameInstallPaths ? _self.gameInstallPaths : gameInstallPaths // ignore: cast_nullable_to_non_nullable
Object? gameInstallPaths = null, as List<String>,languageCode: freezed == languageCode ? _self.languageCode : languageCode // ignore: cast_nullable_to_non_nullable
Object? languageCode = freezed, as String?,countryCode: freezed == countryCode ? _self.countryCode : countryCode // ignore: cast_nullable_to_non_nullable
Object? countryCode = freezed, as String?,
}) { ));
return _then(_self.copyWith( }
backgroundColor: null == backgroundColor
? _self.backgroundColor }
: backgroundColor // ignore: cast_nullable_to_non_nullable
as String,
menuColor: null == menuColor /// Adds pattern-matching-related methods to [MultiWindowAppState].
? _self.menuColor extension MultiWindowAppStatePatterns on MultiWindowAppState {
: menuColor // ignore: cast_nullable_to_non_nullable /// A variant of `map` that fallback to returning `orElse`.
as String, ///
micaColor: null == micaColor /// It is equivalent to doing:
? _self.micaColor /// ```dart
: micaColor // ignore: cast_nullable_to_non_nullable /// switch (sealedClass) {
as String, /// case final Subclass value:
gameInstallPaths: null == gameInstallPaths /// return ...;
? _self.gameInstallPaths /// case _:
: gameInstallPaths // ignore: cast_nullable_to_non_nullable /// return orElse();
as List<String>, /// }
languageCode: freezed == languageCode /// ```
? _self.languageCode
: languageCode // ignore: cast_nullable_to_non_nullable @optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _MultiWindowAppState value)? $default,{required TResult orElse(),}){
as String?, final _that = this;
countryCode: freezed == countryCode switch (_that) {
? _self.countryCode case _MultiWindowAppState() when $default != null:
: countryCode // ignore: cast_nullable_to_non_nullable return $default(_that);case _:
as String?, 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 { class _MultiWindowAppState implements MultiWindowAppState {
const _MultiWindowAppState( const _MultiWindowAppState({required this.backgroundColor, required this.menuColor, required this.micaColor, required final List<String> gameInstallPaths, this.languageCode, this.countryCode}): _gameInstallPaths = gameInstallPaths;
{required this.backgroundColor, factory _MultiWindowAppState.fromJson(Map<String, dynamic> json) => _$MultiWindowAppStateFromJson(json);
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 @override final String backgroundColor;
final String backgroundColor; @override final String menuColor;
@override @override final String micaColor;
final String menuColor; final List<String> _gameInstallPaths;
@override @override List<String> get gameInstallPaths {
final String micaColor; if (_gameInstallPaths is EqualUnmodifiableListView) return _gameInstallPaths;
final List<String> _gameInstallPaths; // ignore: implicit_dynamic_type
@override return EqualUnmodifiableListView(_gameInstallPaths);
List<String> get gameInstallPaths { }
if (_gameInstallPaths is EqualUnmodifiableListView)
return _gameInstallPaths;
// ignore: implicit_dynamic_type
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 => __$MultiWindowAppStateCopyWithImpl<_MultiWindowAppState>(this, _$identity);
_$MultiWindowAppStateCopyWith<_MultiWindowAppState> get copyWith =>
__$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) || @JsonKey(includeFromJson: false, includeToJson: false)
other.backgroundColor == backgroundColor) && @override
(identical(other.menuColor, menuColor) || int get hashCode => Object.hash(runtimeType,backgroundColor,menuColor,micaColor,const DeepCollectionEquality().hash(_gameInstallPaths),languageCode,countryCode);
other.menuColor == menuColor) &&
(identical(other.micaColor, micaColor) || @override
other.micaColor == micaColor) && String toString() {
const DeepCollectionEquality() return 'MultiWindowAppState(backgroundColor: $backgroundColor, menuColor: $menuColor, micaColor: $micaColor, gameInstallPaths: $gameInstallPaths, languageCode: $languageCode, countryCode: $countryCode)';
.equals(other._gameInstallPaths, _gameInstallPaths) && }
(identical(other.languageCode, languageCode) ||
other.languageCode == languageCode) &&
(identical(other.countryCode, countryCode) ||
other.countryCode == countryCode));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType,
backgroundColor,
menuColor,
micaColor,
const DeepCollectionEquality().hash(_gameInstallPaths),
languageCode,
countryCode);
@override
String toString() {
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> {
@@ -244,45 +278,21 @@ class __$MultiWindowAppStateCopyWithImpl<$Res>
final _MultiWindowAppState _self; final _MultiWindowAppState _self;
final $Res Function(_MultiWindowAppState) _then; final $Res Function(_MultiWindowAppState) _then;
/// 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') return _then(_MultiWindowAppState(
$Res call({ backgroundColor: null == backgroundColor ? _self.backgroundColor : backgroundColor // ignore: cast_nullable_to_non_nullable
Object? backgroundColor = null, as String,menuColor: null == menuColor ? _self.menuColor : menuColor // ignore: cast_nullable_to_non_nullable
Object? menuColor = null, as String,micaColor: null == micaColor ? _self.micaColor : micaColor // ignore: cast_nullable_to_non_nullable
Object? micaColor = null, as String,gameInstallPaths: null == gameInstallPaths ? _self._gameInstallPaths : gameInstallPaths // ignore: cast_nullable_to_non_nullable
Object? gameInstallPaths = null, as List<String>,languageCode: freezed == languageCode ? _self.languageCode : languageCode // ignore: cast_nullable_to_non_nullable
Object? languageCode = freezed, as String?,countryCode: freezed == countryCode ? _self.countryCode : countryCode // ignore: cast_nullable_to_non_nullable
Object? countryCode = freezed, as String?,
}) { ));
return _then(_MultiWindowAppState( }
backgroundColor: null == backgroundColor
? _self.backgroundColor
: backgroundColor // ignore: cast_nullable_to_non_nullable
as String,
menuColor: null == menuColor
? _self.menuColor
: 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?,
));
}
} }
// dart format on // dart format on

View File

@@ -19,12 +19,12 @@ _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,
'gameInstallPaths': instance.gameInstallPaths, 'gameInstallPaths': instance.gameInstallPaths,
'languageCode': instance.languageCode, 'languageCode': instance.languageCode,
'countryCode': instance.countryCode, 'countryCode': instance.countryCode,
}; };

File diff suppressed because it is too large Load Diff

View File

@@ -6,27 +6,30 @@ part of 'nav_api_data.dart';
// JsonSerializableGenerator // JsonSerializableGenerator
// ************************************************************************** // **************************************************************************
_NavApiDocsItemData _$NavApiDocsItemDataFromJson(Map<String, dynamic> json) => _NavApiDocsItemData _$NavApiDocsItemDataFromJson(
_NavApiDocsItemData( Map<String, dynamic> json,
id: json['id'] as String? ?? '', ) => _NavApiDocsItemData(
name: json['name'] as String? ?? '', id: json['id'] as String? ?? '',
slug: json['slug'] as String? ?? '', name: json['name'] as String? ?? '',
abstract_: json['abstract'] as String? ?? '', slug: json['slug'] as String? ?? '',
description: json['description'] as String? ?? '', abstract_: json['abstract'] as String? ?? '',
image: json['image'] == null description: json['description'] as String? ?? '',
? const NavApiDocsItemImageData() image: json['image'] == null
: NavApiDocsItemImageData.fromJson( ? const NavApiDocsItemImageData()
json['image'] as Map<String, dynamic>), : NavApiDocsItemImageData.fromJson(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(
.toList() ?? (e) =>
const <NavApiDocsItemTagsItemData>[], NavApiDocsItemTagsItemData.fromJson(e as Map<String, dynamic>),
updatedAt: json['updatedAt'] as String? ?? '', )
createdAt: json['createdAt'] as String? ?? '', .toList() ??
); const <NavApiDocsItemTagsItemData>[],
updatedAt: json['updatedAt'] as String? ?? '',
createdAt: json['createdAt'] as String? ?? '',
);
Map<String, dynamic> _$NavApiDocsItemDataToJson(_NavApiDocsItemData instance) => Map<String, dynamic> _$NavApiDocsItemDataToJson(_NavApiDocsItemData instance) =>
<String, dynamic>{ <String, dynamic>{
@@ -44,174 +47,96 @@ 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? ?? '', ),
original: json['original'] as bool? ?? false, title: json['title'] as String? ?? '',
credit: json['credit'] as String? ?? '', original: json['original'] as bool? ?? false,
source: json['source'] as String? ?? '', credit: json['credit'] as String? ?? '',
license: json['license'] as String? ?? '', source: json['source'] as String? ?? '',
caption: json['caption'], license: json['license'] as String? ?? '',
updatedAt: json['updatedAt'] as String? ?? '', caption: json['caption'],
createdAt: json['createdAt'] as String? ?? '', updatedAt: json['updatedAt'] as String? ?? '',
url: json['url'] as String? ?? '', createdAt: json['createdAt'] as String? ?? '',
filename: json['filename'] as String? ?? '', url: json['url'] as String? ?? '',
mimeType: json['mimeType'] as String? ?? '', filename: json['filename'] as String? ?? '',
filesize: (json['filesize'] as num?)?.toInt() ?? 0, mimeType: json['mimeType'] as String? ?? '',
width: (json['width'] as num?)?.toInt() ?? 0, filesize: (json['filesize'] as num?)?.toInt() ?? 0,
height: (json['height'] as num?)?.toInt() ?? 0, width: (json['width'] as num?)?.toInt() ?? 0,
sizes: json['sizes'] == null height: (json['height'] as num?)?.toInt() ?? 0,
? const NavApiDocsItemImageSizesData() sizes: json['sizes'] == null
: NavApiDocsItemImageSizesData.fromJson( ? const NavApiDocsItemImageSizesData()
json['sizes'] as Map<String, dynamic>), : NavApiDocsItemImageSizesData.fromJson(
); 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,
'original': instance.original, 'original': instance.original,
'credit': instance.credit, 'credit': instance.credit,
'source': instance.source, 'source': instance.source,
'license': instance.license, 'license': instance.license,
'caption': instance.caption, 'caption': instance.caption,
'updatedAt': instance.updatedAt, 'updatedAt': instance.updatedAt,
'createdAt': instance.createdAt, 'createdAt': instance.createdAt,
'url': instance.url, 'url': instance.url,
'filename': instance.filename, 'filename': instance.filename,
'mimeType': instance.mimeType, 'mimeType': instance.mimeType,
'filesize': instance.filesize, 'filesize': instance.filesize,
'width': instance.width, 'width': instance.width,
'height': instance.height, 'height': instance.height,
'sizes': instance.sizes, 'sizes': instance.sizes,
}; };
_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? ?? '',
username: json['username'] as String? ?? '', username: json['username'] as String? ?? '',
name: json['name'] as String? ?? '', name: json['name'] as String? ?? '',
roles: roles:
(json['roles'] as List<dynamic>?)?.map((e) => e as String).toList() ?? (json['roles'] as List<dynamic>?)?.map((e) => e as String).toList() ??
const <String>[], const <String>[],
avatarUrl: json['avatar_url'] as String? ?? '', avatarUrl: json['avatar_url'] as String? ?? '',
updatedAt: json['updatedAt'] as String? ?? '', updatedAt: json['updatedAt'] as String? ?? '',
createdAt: json['createdAt'] as String? ?? '', createdAt: json['createdAt'] as String? ?? '',
email: json['email'] as String? ?? '', email: json['email'] as String? ?? '',
loginAttempts: (json['loginAttempts'] as num?)?.toInt() ?? 0, loginAttempts: (json['loginAttempts'] as num?)?.toInt() ?? 0,
avatar: json['avatar'] as String? ?? '', avatar: json['avatar'] as String? ?? '',
); );
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,
'username': instance.username, 'username': instance.username,
'name': instance.name, 'name': instance.name,
'roles': instance.roles, 'roles': instance.roles,
'avatar_url': instance.avatarUrl, 'avatar_url': instance.avatarUrl,
'updatedAt': instance.updatedAt, 'updatedAt': instance.updatedAt,
'createdAt': instance.createdAt, 'createdAt': instance.createdAt,
'email': instance.email, 'email': instance.email,
'loginAttempts': instance.loginAttempts, 'loginAttempts': instance.loginAttempts,
'avatar': instance.avatar, 'avatar': instance.avatar,
}; };
_NavApiDocsItemImageSizesThumbnailData _NavApiDocsItemImageSizesThumbnailData
_$NavApiDocsItemImageSizesThumbnailDataFromJson( _$NavApiDocsItemImageSizesThumbnailDataFromJson(Map<String, dynamic> json) =>
Map<String, dynamic> json) => _NavApiDocsItemImageSizesThumbnailData(
_NavApiDocsItemImageSizesThumbnailData(
url: json['url'] as String? ?? '',
width: (json['width'] as num?)?.toInt() ?? 0,
height: (json['height'] as num?)?.toInt() ?? 0,
mimeType: json['mimeType'] as String? ?? '',
filesize: (json['filesize'] as num?)?.toInt() ?? 0,
filename: json['filename'] as String? ?? '',
);
Map<String, dynamic> _$NavApiDocsItemImageSizesThumbnailDataToJson(
_NavApiDocsItemImageSizesThumbnailData instance) =>
<String, dynamic>{
'url': instance.url,
'width': instance.width,
'height': instance.height,
'mimeType': instance.mimeType,
'filesize': instance.filesize,
'filename': instance.filename,
};
_NavApiDocsItemImageSizesData _$NavApiDocsItemImageSizesDataFromJson(
Map<String, dynamic> json) =>
_NavApiDocsItemImageSizesData(
thumbnail: json['thumbnail'] == null
? const NavApiDocsItemImageSizesThumbnailData()
: NavApiDocsItemImageSizesThumbnailData.fromJson(
json['thumbnail'] as Map<String, dynamic>),
preload: json['preload'] == null
? const NavApiDocsItemImageSizesPreloadData()
: NavApiDocsItemImageSizesPreloadData.fromJson(
json['preload'] as Map<String, dynamic>),
card: json['card'] == null
? const NavApiDocsItemImageSizesCardData()
: NavApiDocsItemImageSizesCardData.fromJson(
json['card'] as Map<String, dynamic>),
tablet: json['tablet'] == null
? const NavApiDocsItemImageSizesTabletData()
: NavApiDocsItemImageSizesTabletData.fromJson(
json['tablet'] as Map<String, dynamic>),
avatar: json['avatar'] == null
? const NavApiDocsItemImageSizesAvatarData()
: NavApiDocsItemImageSizesAvatarData.fromJson(
json['avatar'] as Map<String, dynamic>),
);
Map<String, dynamic> _$NavApiDocsItemImageSizesDataToJson(
_NavApiDocsItemImageSizesData instance) =>
<String, dynamic>{
'thumbnail': instance.thumbnail,
'preload': instance.preload,
'card': instance.card,
'tablet': instance.tablet,
'avatar': instance.avatar,
};
_NavApiDocsItemImageSizesPreloadData
_$NavApiDocsItemImageSizesPreloadDataFromJson(Map<String, dynamic> json) =>
_NavApiDocsItemImageSizesPreloadData(
url: json['url'],
width: json['width'],
height: json['height'],
mimeType: json['mimeType'],
filesize: json['filesize'],
filename: json['filename'],
);
Map<String, dynamic> _$NavApiDocsItemImageSizesPreloadDataToJson(
_NavApiDocsItemImageSizesPreloadData instance) =>
<String, dynamic>{
'url': instance.url,
'width': instance.width,
'height': instance.height,
'mimeType': instance.mimeType,
'filesize': instance.filesize,
'filename': instance.filename,
};
_NavApiDocsItemImageSizesCardData _$NavApiDocsItemImageSizesCardDataFromJson(
Map<String, dynamic> json) =>
_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,
@@ -220,97 +145,181 @@ _NavApiDocsItemImageSizesCardData _$NavApiDocsItemImageSizesCardDataFromJson(
filename: json['filename'] as String? ?? '', filename: json['filename'] as String? ?? '',
); );
Map<String, dynamic> _$NavApiDocsItemImageSizesThumbnailDataToJson(
_NavApiDocsItemImageSizesThumbnailData instance,
) => <String, dynamic>{
'url': instance.url,
'width': instance.width,
'height': instance.height,
'mimeType': instance.mimeType,
'filesize': instance.filesize,
'filename': instance.filename,
};
_NavApiDocsItemImageSizesData _$NavApiDocsItemImageSizesDataFromJson(
Map<String, dynamic> json,
) => _NavApiDocsItemImageSizesData(
thumbnail: json['thumbnail'] == null
? const NavApiDocsItemImageSizesThumbnailData()
: NavApiDocsItemImageSizesThumbnailData.fromJson(
json['thumbnail'] as Map<String, dynamic>,
),
preload: json['preload'] == null
? const NavApiDocsItemImageSizesPreloadData()
: NavApiDocsItemImageSizesPreloadData.fromJson(
json['preload'] as Map<String, dynamic>,
),
card: json['card'] == null
? const NavApiDocsItemImageSizesCardData()
: NavApiDocsItemImageSizesCardData.fromJson(
json['card'] as Map<String, dynamic>,
),
tablet: json['tablet'] == null
? const NavApiDocsItemImageSizesTabletData()
: NavApiDocsItemImageSizesTabletData.fromJson(
json['tablet'] as Map<String, dynamic>,
),
avatar: json['avatar'] == null
? const NavApiDocsItemImageSizesAvatarData()
: NavApiDocsItemImageSizesAvatarData.fromJson(
json['avatar'] as Map<String, dynamic>,
),
);
Map<String, dynamic> _$NavApiDocsItemImageSizesDataToJson(
_NavApiDocsItemImageSizesData instance,
) => <String, dynamic>{
'thumbnail': instance.thumbnail,
'preload': instance.preload,
'card': instance.card,
'tablet': instance.tablet,
'avatar': instance.avatar,
};
_NavApiDocsItemImageSizesPreloadData
_$NavApiDocsItemImageSizesPreloadDataFromJson(Map<String, dynamic> json) =>
_NavApiDocsItemImageSizesPreloadData(
url: json['url'],
width: json['width'],
height: json['height'],
mimeType: json['mimeType'],
filesize: json['filesize'],
filename: json['filename'],
);
Map<String, dynamic> _$NavApiDocsItemImageSizesPreloadDataToJson(
_NavApiDocsItemImageSizesPreloadData instance,
) => <String, dynamic>{
'url': instance.url,
'width': instance.width,
'height': instance.height,
'mimeType': instance.mimeType,
'filesize': instance.filesize,
'filename': instance.filename,
};
_NavApiDocsItemImageSizesCardData _$NavApiDocsItemImageSizesCardDataFromJson(
Map<String, dynamic> json,
) => _NavApiDocsItemImageSizesCardData(
url: json['url'] as String? ?? '',
width: (json['width'] as num?)?.toInt() ?? 0,
height: (json['height'] as num?)?.toInt() ?? 0,
mimeType: json['mimeType'] as String? ?? '',
filesize: (json['filesize'] as num?)?.toInt() ?? 0,
filename: json['filename'] as String? ?? '',
);
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,
'mimeType': instance.mimeType, 'mimeType': instance.mimeType,
'filesize': instance.filesize, 'filesize': instance.filesize,
'filename': instance.filename, 'filename': instance.filename,
}; };
_NavApiDocsItemImageSizesTabletData _NavApiDocsItemImageSizesTabletData
_$NavApiDocsItemImageSizesTabletDataFromJson(Map<String, dynamic> json) => _$NavApiDocsItemImageSizesTabletDataFromJson(Map<String, dynamic> json) =>
_NavApiDocsItemImageSizesTabletData( _NavApiDocsItemImageSizesTabletData(
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,
mimeType: json['mimeType'] as String? ?? '', mimeType: json['mimeType'] as String? ?? '',
filesize: (json['filesize'] as num?)?.toInt() ?? 0, filesize: (json['filesize'] as num?)?.toInt() ?? 0,
filename: json['filename'] as String? ?? '', filename: json['filename'] as String? ?? '',
); );
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,
'mimeType': instance.mimeType, 'mimeType': instance.mimeType,
'filesize': instance.filesize, 'filesize': instance.filesize,
'filename': instance.filename, 'filename': instance.filename,
}; };
_NavApiDocsItemImageSizesAvatarData _NavApiDocsItemImageSizesAvatarData
_$NavApiDocsItemImageSizesAvatarDataFromJson(Map<String, dynamic> json) => _$NavApiDocsItemImageSizesAvatarDataFromJson(Map<String, dynamic> json) =>
_NavApiDocsItemImageSizesAvatarData( _NavApiDocsItemImageSizesAvatarData(
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,
mimeType: json['mimeType'] as String? ?? '', mimeType: json['mimeType'] as String? ?? '',
filesize: (json['filesize'] as num?)?.toInt() ?? 0, filesize: (json['filesize'] as num?)?.toInt() ?? 0,
filename: json['filename'] as String? ?? '', filename: json['filename'] as String? ?? '',
); );
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,
'mimeType': instance.mimeType, 'mimeType': instance.mimeType,
'filesize': instance.filesize, 'filesize': instance.filesize,
'filename': instance.filename, 'filename': instance.filename,
}; };
_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? ?? '',
updatedAt: json['updatedAt'] as String? ?? '', updatedAt: json['updatedAt'] as String? ?? '',
createdAt: json['createdAt'] as String? ?? '', createdAt: json['createdAt'] as String? ?? '',
); );
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,
'updatedAt': instance.updatedAt, 'updatedAt': instance.updatedAt,
'createdAt': instance.createdAt, 'createdAt': instance.createdAt,
}; };
_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,
hasPrevPage: json['hasPrevPage'] as bool? ?? false, hasPrevPage: json['hasPrevPage'] as bool? ?? false,
limit: (json['limit'] as num?)?.toInt() ?? 0, limit: (json['limit'] as num?)?.toInt() ?? 0,
nextPage: json['nextPage'], nextPage: json['nextPage'],
page: (json['page'] as num?)?.toInt() ?? 0, page: (json['page'] as num?)?.toInt() ?? 0,
pagingCounter: (json['pagingCounter'] as num?)?.toInt() ?? 0, pagingCounter: (json['pagingCounter'] as num?)?.toInt() ?? 0,
prevPage: json['prevPage'], prevPage: json['prevPage'],
totalDocs: (json['totalDocs'] as num?)?.toInt() ?? 0, totalDocs: (json['totalDocs'] as num?)?.toInt() ?? 0,
totalPages: (json['totalPages'] as num?)?.toInt() ?? 0, totalPages: (json['totalPages'] as num?)?.toInt() ?? 0,
); );
Map<String, dynamic> _$NavApiDataToJson(_NavApiData instance) => Map<String, dynamic> _$NavApiDataToJson(_NavApiData instance) =>
<String, dynamic>{ <String, dynamic>{

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;
/// Create a copy of Aria2cModelState String get aria2cDir; Aria2c? get aria2c; Aria2GlobalStat? get aria2globalStat;
/// with the given fields replaced by the non-null parameter values. /// Create a copy of Aria2cModelState
@JsonKey(includeFromJson: false, includeToJson: false) /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @JsonKey(includeFromJson: false, includeToJson: false)
$Aria2cModelStateCopyWith<Aria2cModelState> get copyWith => @pragma('vm:prefer-inline')
_$Aria2cModelStateCopyWithImpl<Aria2cModelState>( $Aria2cModelStateCopyWith<Aria2cModelState> get copyWith => _$Aria2cModelStateCopyWithImpl<Aria2cModelState>(this as Aria2cModelState, _$identity);
this as Aria2cModelState, _$identity);
@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
properties
..add(DiagnosticsProperty('type', 'Aria2cModelState'))
..add(DiagnosticsProperty('aria2cDir', aria2cDir))
..add(DiagnosticsProperty('aria2c', aria2c))
..add(DiagnosticsProperty('aria2globalStat', aria2globalStat));
}
@override @override
bool operator ==(Object other) { void debugFillProperties(DiagnosticPropertiesBuilder properties) {
return identical(this, other) || properties
(other.runtimeType == runtimeType && ..add(DiagnosticsProperty('type', 'Aria2cModelState'))
other is Aria2cModelState && ..add(DiagnosticsProperty('aria2cDir', aria2cDir))..add(DiagnosticsProperty('aria2c', aria2c))..add(DiagnosticsProperty('aria2globalStat', aria2globalStat));
(identical(other.aria2cDir, aria2cDir) || }
other.aria2cDir == aria2cDir) &&
(identical(other.aria2c, aria2c) || other.aria2c == aria2c) && @override
(identical(other.aria2globalStat, aria2globalStat) || bool operator ==(Object other) {
other.aria2globalStat == aria2globalStat)); 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));
} }
@override
int get hashCode => Object.hash(runtimeType,aria2cDir,aria2c,aria2globalStat);
@override
String toString({ DiagnosticLevel minLevel = DiagnosticLevel.info }) {
return 'Aria2cModelState(aria2cDir: $aria2cDir, aria2c: $aria2c, aria2globalStat: $aria2globalStat)';
}
@override
int get hashCode =>
Object.hash(runtimeType, aria2cDir, aria2c, aria2globalStat);
@override
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
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) = @useResult
_$Aria2cModelStateCopyWithImpl; $Res call({
@useResult String aria2cDir, Aria2c? aria2c, Aria2GlobalStat? aria2globalStat
$Res call( });
{String aria2cDir, Aria2c? aria2c, Aria2GlobalStat? aria2globalStat});
}
}
/// @nodoc /// @nodoc
class _$Aria2cModelStateCopyWithImpl<$Res> class _$Aria2cModelStateCopyWithImpl<$Res>
implements $Aria2cModelStateCopyWith<$Res> { implements $Aria2cModelStateCopyWith<$Res> {
@@ -76,98 +66,204 @@ class _$Aria2cModelStateCopyWithImpl<$Res>
final Aria2cModelState _self; final Aria2cModelState _self;
final $Res Function(Aria2cModelState) _then; final $Res Function(Aria2cModelState) _then;
/// 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 return _then(_self.copyWith(
$Res call({ aria2cDir: null == aria2cDir ? _self.aria2cDir : aria2cDir // ignore: cast_nullable_to_non_nullable
Object? aria2cDir = null, as String,aria2c: freezed == aria2c ? _self.aria2c : aria2c // ignore: cast_nullable_to_non_nullable
Object? aria2c = freezed, as Aria2c?,aria2globalStat: freezed == aria2globalStat ? _self.aria2globalStat : aria2globalStat // ignore: cast_nullable_to_non_nullable
Object? aria2globalStat = freezed, as Aria2GlobalStat?,
}) { ));
return _then(_self.copyWith( }
aria2cDir: null == aria2cDir
? _self.aria2cDir }
: aria2cDir // ignore: cast_nullable_to_non_nullable
as String,
aria2c: freezed == aria2c /// Adds pattern-matching-related methods to [Aria2cModelState].
? _self.aria2c extension Aria2cModelStatePatterns on Aria2cModelState {
: aria2c // ignore: cast_nullable_to_non_nullable /// A variant of `map` that fallback to returning `orElse`.
as Aria2c?, ///
aria2globalStat: freezed == aria2globalStat /// It is equivalent to doing:
? _self.aria2globalStat /// ```dart
: aria2globalStat // ignore: cast_nullable_to_non_nullable /// switch (sealedClass) {
as Aria2GlobalStat?, /// 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
final Aria2GlobalStat? aria2globalStat;
/// Create a copy of Aria2cModelState @override final String aria2cDir;
/// with the given fields replaced by the non-null parameter values. @override final Aria2c? aria2c;
@override @override final Aria2GlobalStat? aria2globalStat;
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$Aria2cModelStateCopyWith<_Aria2cModelState> get copyWith =>
__$Aria2cModelStateCopyWithImpl<_Aria2cModelState>(this, _$identity);
@override /// Create a copy of Aria2cModelState
void debugFillProperties(DiagnosticPropertiesBuilder properties) { /// with the given fields replaced by the non-null parameter values.
properties @override @JsonKey(includeFromJson: false, includeToJson: false)
..add(DiagnosticsProperty('type', 'Aria2cModelState')) @pragma('vm:prefer-inline')
..add(DiagnosticsProperty('aria2cDir', aria2cDir)) _$Aria2cModelStateCopyWith<_Aria2cModelState> get copyWith => __$Aria2cModelStateCopyWithImpl<_Aria2cModelState>(this, _$identity);
..add(DiagnosticsProperty('aria2c', aria2c))
..add(DiagnosticsProperty('aria2globalStat', aria2globalStat));
}
@override
bool operator ==(Object 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));
}
@override @override
int get hashCode => void debugFillProperties(DiagnosticPropertiesBuilder properties) {
Object.hash(runtimeType, aria2cDir, aria2c, aria2globalStat); properties
..add(DiagnosticsProperty('type', 'Aria2cModelState'))
..add(DiagnosticsProperty('aria2cDir', aria2cDir))..add(DiagnosticsProperty('aria2c', aria2c))..add(DiagnosticsProperty('aria2globalStat', aria2globalStat));
}
@override
bool operator ==(Object 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));
}
@override
int get hashCode => Object.hash(runtimeType,aria2cDir,aria2c,aria2globalStat);
@override
String toString({ DiagnosticLevel minLevel = DiagnosticLevel.info }) {
return 'Aria2cModelState(aria2cDir: $aria2cDir, aria2c: $aria2c, aria2globalStat: $aria2globalStat)';
}
@override
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
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> {
@@ -176,30 +272,18 @@ class __$Aria2cModelStateCopyWithImpl<$Res>
final _Aria2cModelState _self; final _Aria2cModelState _self;
final $Res Function(_Aria2cModelState) _then; final $Res Function(_Aria2cModelState) _then;
/// 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') return _then(_Aria2cModelState(
$Res call({ aria2cDir: null == aria2cDir ? _self.aria2cDir : aria2cDir // ignore: cast_nullable_to_non_nullable
Object? aria2cDir = null, as String,aria2c: freezed == aria2c ? _self.aria2c : aria2c // ignore: cast_nullable_to_non_nullable
Object? aria2c = freezed, as Aria2c?,aria2globalStat: freezed == aria2globalStat ? _self.aria2globalStat : aria2globalStat // ignore: cast_nullable_to_non_nullable
Object? aria2globalStat = freezed, as Aria2GlobalStat?,
}) { ));
return _then(_Aria2cModelState( }
aria2cDir: null == aria2cDir
? _self.aria2cDir
: aria2cDir // 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?,
));
}
} }
// dart format on // dart format on

View File

@@ -12,13 +12,14 @@ String _$aria2cModelHash() => r'3d51aeefd92e5291dca1f01db961f9c5496ec24f';
@ProviderFor(Aria2cModel) @ProviderFor(Aria2cModel)
final aria2cModelProvider = 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
dependencies: null, : _$aria2cModelHash,
allTransitiveDependencies: null, dependencies: null,
); allTransitiveDependencies: null,
);
typedef _$Aria2cModel = AutoDisposeNotifier<Aria2cModelState>; typedef _$Aria2cModel = AutoDisposeNotifier<Aria2cModelState>;
// ignore_for_file: type=lint // ignore_for_file: type=lint

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,301 +11,299 @@ 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;
/// Create a copy of Unp4kcState 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;
/// with the given fields replaced by the non-null parameter values. /// Create a copy of Unp4kcState
@JsonKey(includeFromJson: false, includeToJson: false) /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @JsonKey(includeFromJson: false, includeToJson: false)
$Unp4kcStateCopyWith<Unp4kcState> get copyWith => @pragma('vm:prefer-inline')
_$Unp4kcStateCopyWithImpl<Unp4kcState>(this as Unp4kcState, _$identity); $Unp4kcStateCopyWith<Unp4kcState> get copyWith => _$Unp4kcStateCopyWithImpl<Unp4kcState>(this as Unp4kcState, _$identity);
@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
properties
..add(DiagnosticsProperty('type', 'Unp4kcState'))
..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));
}
@override @override
bool operator ==(Object other) { void debugFillProperties(DiagnosticPropertiesBuilder properties) {
return identical(this, other) || properties
(other.runtimeType == runtimeType && ..add(DiagnosticsProperty('type', 'Unp4kcState'))
other is Unp4kcState && ..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));
(identical(other.startUp, startUp) || other.startUp == startUp) && }
const DeepCollectionEquality().equals(other.files, files) &&
(identical(other.fs, fs) || other.fs == fs) && @override
(identical(other.curPath, curPath) || other.curPath == curPath) && bool operator ==(Object other) {
(identical(other.endMessage, endMessage) || 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.endMessage == endMessage) && }
(identical(other.tempOpenFile, tempOpenFile) ||
other.tempOpenFile == tempOpenFile) &&
(identical(other.errorMessage, errorMessage) || @override
other.errorMessage == errorMessage)); int get hashCode => Object.hash(runtimeType,startUp,const DeepCollectionEquality().hash(files),fs,curPath,endMessage,tempOpenFile,errorMessage);
}
@override
String toString({ DiagnosticLevel minLevel = DiagnosticLevel.info }) {
return 'Unp4kcState(startUp: $startUp, files: $files, fs: $fs, curPath: $curPath, endMessage: $endMessage, tempOpenFile: $tempOpenFile, errorMessage: $errorMessage)';
}
@override
int get hashCode => Object.hash(
runtimeType,
startUp,
const DeepCollectionEquality().hash(files),
fs,
curPath,
endMessage,
tempOpenFile,
errorMessage);
@override
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
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) = @useResult
_$Unp4kcStateCopyWithImpl; $Res call({
@useResult bool startUp, Map<String, AppUnp4kP4kItemData>? files, MemoryFileSystem? fs, String curPath, String? endMessage, MapEntry<String, String>? tempOpenFile, String errorMessage
$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;
final $Res Function(Unp4kcState) _then; final $Res Function(Unp4kcState) _then;
/// 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 return _then(_self.copyWith(
$Res call({ startUp: null == startUp ? _self.startUp : startUp // ignore: cast_nullable_to_non_nullable
Object? startUp = null, as bool,files: freezed == files ? _self.files : files // ignore: cast_nullable_to_non_nullable
Object? files = freezed, as Map<String, AppUnp4kP4kItemData>?,fs: freezed == fs ? _self.fs : fs // ignore: cast_nullable_to_non_nullable
Object? fs = freezed, as MemoryFileSystem?,curPath: null == curPath ? _self.curPath : curPath // ignore: cast_nullable_to_non_nullable
Object? curPath = null, as String,endMessage: freezed == endMessage ? _self.endMessage : endMessage // ignore: cast_nullable_to_non_nullable
Object? endMessage = freezed, as String?,tempOpenFile: freezed == tempOpenFile ? _self.tempOpenFile : tempOpenFile // ignore: cast_nullable_to_non_nullable
Object? tempOpenFile = freezed, as MapEntry<String, String>?,errorMessage: null == errorMessage ? _self.errorMessage : errorMessage // ignore: cast_nullable_to_non_nullable
Object? errorMessage = null, as String,
}) { ));
return _then(_self.copyWith( }
startUp: null == startUp
? _self.startUp }
: startUp // ignore: cast_nullable_to_non_nullable
as bool,
files: freezed == files /// Adds pattern-matching-related methods to [Unp4kcState].
? _self.files extension Unp4kcStatePatterns on Unp4kcState {
: files // ignore: cast_nullable_to_non_nullable /// A variant of `map` that fallback to returning `orElse`.
as Map<String, AppUnp4kP4kItemData>?, ///
fs: freezed == fs /// It is equivalent to doing:
? _self.fs /// ```dart
: fs // ignore: cast_nullable_to_non_nullable /// switch (sealedClass) {
as MemoryFileSystem?, /// case final Subclass value:
curPath: null == curPath /// return ...;
? _self.curPath /// case _:
: curPath // ignore: cast_nullable_to_non_nullable /// return orElse();
as String, /// }
endMessage: freezed == endMessage /// ```
? _self.endMessage
: endMessage // ignore: cast_nullable_to_non_nullable @optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _Unp4kcState value)? $default,{required TResult orElse(),}){
as String?, final _that = this;
tempOpenFile: freezed == tempOpenFile switch (_that) {
? _self.tempOpenFile case _Unp4kcState() when $default != null:
: tempOpenFile // ignore: cast_nullable_to_non_nullable return $default(_that);case _:
as MapEntry<String, String>?, return orElse();
errorMessage: null == errorMessage
? _self.errorMessage }
: errorMessage // ignore: cast_nullable_to_non_nullable }
as String, /// 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 { class _Unp4kcState with DiagnosticableTreeMixin implements Unp4kcState {
const _Unp4kcState( const _Unp4kcState({required this.startUp, final Map<String, AppUnp4kP4kItemData>? files, this.fs, required this.curPath, this.endMessage, this.tempOpenFile, this.errorMessage = ""}): _files = files;
{required this.startUp,
final Map<String, AppUnp4kP4kItemData>? files,
this.fs,
required this.curPath,
this.endMessage,
this.tempOpenFile,
this.errorMessage = ""})
: _files = files;
@override @override final bool startUp;
final bool startUp; final Map<String, AppUnp4kP4kItemData>? _files;
final Map<String, AppUnp4kP4kItemData>? _files; @override Map<String, AppUnp4kP4kItemData>? get files {
@override final value = _files;
Map<String, AppUnp4kP4kItemData>? get files { if (value == null) return null;
final value = _files; if (_files is EqualUnmodifiableMapView) return _files;
if (value == null) return null; // ignore: implicit_dynamic_type
if (_files is EqualUnmodifiableMapView) return _files; return EqualUnmodifiableMapView(value);
// ignore: implicit_dynamic_type }
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 => __$Unp4kcStateCopyWithImpl<_Unp4kcState>(this, _$identity);
_$Unp4kcStateCopyWith<_Unp4kcState> get copyWith =>
__$Unp4kcStateCopyWithImpl<_Unp4kcState>(this, _$identity);
@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
properties
..add(DiagnosticsProperty('type', 'Unp4kcState'))
..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));
}
@override @override
bool operator ==(Object other) { void debugFillProperties(DiagnosticPropertiesBuilder properties) {
return identical(this, other) || properties
(other.runtimeType == runtimeType && ..add(DiagnosticsProperty('type', 'Unp4kcState'))
other is _Unp4kcState && ..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));
(identical(other.startUp, startUp) || other.startUp == startUp) && }
const DeepCollectionEquality().equals(other._files, _files) &&
(identical(other.fs, fs) || other.fs == fs) && @override
(identical(other.curPath, curPath) || other.curPath == curPath) && bool operator ==(Object other) {
(identical(other.endMessage, endMessage) || 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.endMessage == endMessage) && }
(identical(other.tempOpenFile, tempOpenFile) ||
other.tempOpenFile == tempOpenFile) &&
(identical(other.errorMessage, errorMessage) || @override
other.errorMessage == errorMessage)); int get hashCode => Object.hash(runtimeType,startUp,const DeepCollectionEquality().hash(_files),fs,curPath,endMessage,tempOpenFile,errorMessage);
}
@override
String toString({ DiagnosticLevel minLevel = DiagnosticLevel.info }) {
return 'Unp4kcState(startUp: $startUp, files: $files, fs: $fs, curPath: $curPath, endMessage: $endMessage, tempOpenFile: $tempOpenFile, errorMessage: $errorMessage)';
}
@override
int get hashCode => Object.hash(
runtimeType,
startUp,
const DeepCollectionEquality().hash(_files),
fs,
curPath,
endMessage,
tempOpenFile,
errorMessage);
@override
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
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;
final $Res Function(_Unp4kcState) _then; final $Res Function(_Unp4kcState) _then;
/// 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') return _then(_Unp4kcState(
$Res call({ startUp: null == startUp ? _self.startUp : startUp // ignore: cast_nullable_to_non_nullable
Object? startUp = null, as bool,files: freezed == files ? _self._files : files // ignore: cast_nullable_to_non_nullable
Object? files = freezed, as Map<String, AppUnp4kP4kItemData>?,fs: freezed == fs ? _self.fs : fs // ignore: cast_nullable_to_non_nullable
Object? fs = freezed, as MemoryFileSystem?,curPath: null == curPath ? _self.curPath : curPath // ignore: cast_nullable_to_non_nullable
Object? curPath = null, as String,endMessage: freezed == endMessage ? _self.endMessage : endMessage // ignore: cast_nullable_to_non_nullable
Object? endMessage = freezed, as String?,tempOpenFile: freezed == tempOpenFile ? _self.tempOpenFile : tempOpenFile // ignore: cast_nullable_to_non_nullable
Object? tempOpenFile = freezed, as MapEntry<String, String>?,errorMessage: null == errorMessage ? _self.errorMessage : errorMessage // ignore: cast_nullable_to_non_nullable
Object? errorMessage = null, as String,
}) { ));
return _then(_Unp4kcState( }
startUp: null == startUp
? _self.startUp
: startUp // ignore: cast_nullable_to_non_nullable
as bool,
files: freezed == files
? _self._files
: files // 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,
));
}
} }
// dart format on // dart format on

View File

@@ -12,13 +12,14 @@ String _$unp4kCModelHash() => r'636da3fe20d1fa94917dd63934f08f8dbffc8a9d';
@ProviderFor(Unp4kCModel) @ProviderFor(Unp4kCModel)
final unp4kCModelProvider = 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
dependencies: null, : _$unp4kCModelHash,
allTransitiveDependencies: null, dependencies: null,
); allTransitiveDependencies: null,
);
typedef _$Unp4kCModel = AutoDisposeNotifier<Unp4kcState>; typedef _$Unp4kCModel = AutoDisposeNotifier<Unp4kcState>;
// ignore_for_file: type=lint // ignore_for_file: type=lint

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;
/// Create a copy of 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;
/// with the given fields replaced by the non-null parameter values. /// Create a copy of HomeGameLoginState
@JsonKey(includeFromJson: false, includeToJson: false) /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @JsonKey(includeFromJson: false, includeToJson: false)
$HomeGameLoginStateCopyWith<HomeGameLoginState> get copyWith => @pragma('vm:prefer-inline')
_$HomeGameLoginStateCopyWithImpl<HomeGameLoginState>( $HomeGameLoginStateCopyWith<HomeGameLoginState> get copyWith => _$HomeGameLoginStateCopyWithImpl<HomeGameLoginState>(this as HomeGameLoginState, _$identity);
this as HomeGameLoginState, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode => Object.hash(
runtimeType,
loginStatus,
nickname,
avatarUrl,
authToken,
webToken,
const DeepCollectionEquality().hash(releaseInfo),
libraryData,
installPath,
isDeviceSupportWinHello);
@override @override
String toString() { bool operator ==(Object other) {
return 'HomeGameLoginState(loginStatus: $loginStatus, nickname: $nickname, avatarUrl: $avatarUrl, authToken: $authToken, webToken: $webToken, releaseInfo: $releaseInfo, libraryData: $libraryData, installPath: $installPath, isDeviceSupportWinHello: $isDeviceSupportWinHello)'; 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));
} }
@override
int get hashCode => Object.hash(runtimeType,loginStatus,nickname,avatarUrl,authToken,webToken,const DeepCollectionEquality().hash(releaseInfo),libraryData,installPath,isDeviceSupportWinHello);
@override
String toString() {
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) = @useResult
_$HomeGameLoginStateCopyWithImpl; $Res call({
@useResult int loginStatus, String? nickname, String? avatarUrl, String? authToken, String? webToken, Map? releaseInfo, RsiGameLibraryData? libraryData, String? installPath, bool? isDeviceSupportWinHello
$Res call( });
{int loginStatus,
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> {
@@ -104,238 +60,244 @@ class _$HomeGameLoginStateCopyWithImpl<$Res>
final HomeGameLoginState _self; final HomeGameLoginState _self;
final $Res Function(HomeGameLoginState) _then; final $Res Function(HomeGameLoginState) _then;
/// 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 return _then(_self.copyWith(
$Res call({ loginStatus: null == loginStatus ? _self.loginStatus : loginStatus // ignore: cast_nullable_to_non_nullable
Object? loginStatus = null, as int,nickname: freezed == nickname ? _self.nickname : nickname // ignore: cast_nullable_to_non_nullable
Object? nickname = freezed, as String?,avatarUrl: freezed == avatarUrl ? _self.avatarUrl : avatarUrl // ignore: cast_nullable_to_non_nullable
Object? avatarUrl = freezed, as String?,authToken: freezed == authToken ? _self.authToken : authToken // ignore: cast_nullable_to_non_nullable
Object? authToken = freezed, as String?,webToken: freezed == webToken ? _self.webToken : webToken // ignore: cast_nullable_to_non_nullable
Object? webToken = freezed, as String?,releaseInfo: freezed == releaseInfo ? _self.releaseInfo : releaseInfo // ignore: cast_nullable_to_non_nullable
Object? releaseInfo = freezed, as Map?,libraryData: freezed == libraryData ? _self.libraryData : libraryData // ignore: cast_nullable_to_non_nullable
Object? libraryData = freezed, as RsiGameLibraryData?,installPath: freezed == installPath ? _self.installPath : installPath // ignore: cast_nullable_to_non_nullable
Object? installPath = freezed, as String?,isDeviceSupportWinHello: freezed == isDeviceSupportWinHello ? _self.isDeviceSupportWinHello : isDeviceSupportWinHello // ignore: cast_nullable_to_non_nullable
Object? isDeviceSupportWinHello = freezed, as bool?,
}) { ));
return _then(_self.copyWith( }
loginStatus: null == loginStatus
? _self.loginStatus }
: loginStatus // ignore: cast_nullable_to_non_nullable
as int,
nickname: freezed == nickname /// Adds pattern-matching-related methods to [HomeGameLoginState].
? _self.nickname extension HomeGameLoginStatePatterns on HomeGameLoginState {
: nickname // ignore: cast_nullable_to_non_nullable /// A variant of `map` that fallback to returning `orElse`.
as String?, ///
avatarUrl: freezed == avatarUrl /// It is equivalent to doing:
? _self.avatarUrl /// ```dart
: avatarUrl // ignore: cast_nullable_to_non_nullable /// switch (sealedClass) {
as String?, /// case final Subclass value:
authToken: freezed == authToken /// return ...;
? _self.authToken /// case _:
: authToken // ignore: cast_nullable_to_non_nullable /// return orElse();
as String?, /// }
webToken: freezed == webToken /// ```
? _self.webToken
: webToken // ignore: cast_nullable_to_non_nullable @optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _LoginStatus value)? $default,{required TResult orElse(),}){
as String?, final _that = this;
releaseInfo: freezed == releaseInfo switch (_that) {
? _self.releaseInfo case _LoginStatus() when $default != null:
: releaseInfo // ignore: cast_nullable_to_non_nullable return $default(_that);case _:
as Map?, return orElse();
libraryData: freezed == libraryData
? _self.libraryData }
: libraryData // ignore: cast_nullable_to_non_nullable }
as RsiGameLibraryData?, /// A `switch`-like method, using callbacks.
installPath: freezed == installPath ///
? _self.installPath /// Callbacks receives the raw object, upcasted.
: installPath // ignore: cast_nullable_to_non_nullable /// It is equivalent to doing:
as String?, /// ```dart
isDeviceSupportWinHello: freezed == isDeviceSupportWinHello /// switch (sealedClass) {
? _self.isDeviceSupportWinHello /// case final Subclass value:
: isDeviceSupportWinHello // ignore: cast_nullable_to_non_nullable /// return ...;
as bool?, /// 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 { class _LoginStatus implements HomeGameLoginState {
_LoginStatus( _LoginStatus({required this.loginStatus, this.nickname, this.avatarUrl, this.authToken, this.webToken, final Map? releaseInfo, this.libraryData, this.installPath, this.isDeviceSupportWinHello}): _releaseInfo = releaseInfo;
{required this.loginStatus,
this.nickname,
this.avatarUrl,
this.authToken,
this.webToken,
final Map? releaseInfo,
this.libraryData,
this.installPath,
this.isDeviceSupportWinHello})
: _releaseInfo = releaseInfo;
@override @override final int loginStatus;
final int loginStatus; @override final String? nickname;
@override @override final String? avatarUrl;
final String? nickname; @override final String? authToken;
@override @override final String? webToken;
final String? avatarUrl; final Map? _releaseInfo;
@override @override Map? get releaseInfo {
final String? authToken; final value = _releaseInfo;
@override if (value == null) return null;
final String? webToken; if (_releaseInfo is EqualUnmodifiableMapView) return _releaseInfo;
final Map? _releaseInfo; // ignore: implicit_dynamic_type
@override return EqualUnmodifiableMapView(value);
Map? get releaseInfo { }
final value = _releaseInfo;
if (value == null) return null;
if (_releaseInfo is EqualUnmodifiableMapView) return _releaseInfo;
// ignore: implicit_dynamic_type
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 => __$LoginStatusCopyWithImpl<_LoginStatus>(this, _$identity);
_$LoginStatusCopyWith<_LoginStatus> get copyWith =>
__$LoginStatusCopyWithImpl<_LoginStatus>(this, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode => Object.hash(
runtimeType,
loginStatus,
nickname,
avatarUrl,
authToken,
webToken,
const DeepCollectionEquality().hash(_releaseInfo),
libraryData,
installPath,
isDeviceSupportWinHello);
@override @override
String toString() { bool operator ==(Object other) {
return 'HomeGameLoginState(loginStatus: $loginStatus, nickname: $nickname, avatarUrl: $avatarUrl, authToken: $authToken, webToken: $webToken, releaseInfo: $releaseInfo, libraryData: $libraryData, installPath: $installPath, isDeviceSupportWinHello: $isDeviceSupportWinHello)'; 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));
} }
@override
int get hashCode => Object.hash(runtimeType,loginStatus,nickname,avatarUrl,authToken,webToken,const DeepCollectionEquality().hash(_releaseInfo),libraryData,installPath,isDeviceSupportWinHello);
@override
String toString() {
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;
final $Res Function(_LoginStatus) _then; final $Res Function(_LoginStatus) _then;
/// 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') return _then(_LoginStatus(
$Res call({ loginStatus: null == loginStatus ? _self.loginStatus : loginStatus // ignore: cast_nullable_to_non_nullable
Object? loginStatus = null, as int,nickname: freezed == nickname ? _self.nickname : nickname // ignore: cast_nullable_to_non_nullable
Object? nickname = freezed, as String?,avatarUrl: freezed == avatarUrl ? _self.avatarUrl : avatarUrl // ignore: cast_nullable_to_non_nullable
Object? avatarUrl = freezed, as String?,authToken: freezed == authToken ? _self.authToken : authToken // ignore: cast_nullable_to_non_nullable
Object? authToken = freezed, as String?,webToken: freezed == webToken ? _self.webToken : webToken // ignore: cast_nullable_to_non_nullable
Object? webToken = freezed, as String?,releaseInfo: freezed == releaseInfo ? _self._releaseInfo : releaseInfo // ignore: cast_nullable_to_non_nullable
Object? releaseInfo = freezed, as Map?,libraryData: freezed == libraryData ? _self.libraryData : libraryData // ignore: cast_nullable_to_non_nullable
Object? libraryData = freezed, as RsiGameLibraryData?,installPath: freezed == installPath ? _self.installPath : installPath // ignore: cast_nullable_to_non_nullable
Object? installPath = freezed, as String?,isDeviceSupportWinHello: freezed == isDeviceSupportWinHello ? _self.isDeviceSupportWinHello : isDeviceSupportWinHello // ignore: cast_nullable_to_non_nullable
Object? isDeviceSupportWinHello = freezed, as bool?,
}) { ));
return _then(_LoginStatus( }
loginStatus: null == loginStatus
? _self.loginStatus
: loginStatus // ignore: cast_nullable_to_non_nullable
as int,
nickname: freezed == nickname
? _self.nickname
: nickname // ignore: cast_nullable_to_non_nullable
as String?,
avatarUrl: freezed == avatarUrl
? _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?,
));
}
} }
// dart format on // dart format on

View File

@@ -7,20 +7,23 @@ 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.new, HomeGameLoginUIModel,
name: r'homeGameLoginUIModelProvider', HomeGameLoginState
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') >.internal(
? null HomeGameLoginUIModel.new,
: _$homeGameLoginUIModelHash, name: r'homeGameLoginUIModelProvider',
dependencies: null, debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
allTransitiveDependencies: null, ? null
); : _$homeGameLoginUIModelHash,
dependencies: null,
allTransitiveDependencies: null,
);
typedef _$HomeGameLoginUIModel = AutoDisposeNotifier<HomeGameLoginState>; typedef _$HomeGameLoginUIModel = AutoDisposeNotifier<HomeGameLoginState>;
// ignore_for_file: type=lint // ignore_for_file: type=lint

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;
/// Create a copy of HomeDownloaderUIState List<Aria2Task> get tasks; List<Aria2Task> get waitingTasks; List<Aria2Task> get stoppedTasks; Aria2GlobalStat? get globalStat;
/// with the given fields replaced by the non-null parameter values. /// Create a copy of HomeDownloaderUIState
@JsonKey(includeFromJson: false, includeToJson: false) /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @JsonKey(includeFromJson: false, includeToJson: false)
$HomeDownloaderUIStateCopyWith<HomeDownloaderUIState> get copyWith => @pragma('vm:prefer-inline')
_$HomeDownloaderUIStateCopyWithImpl<HomeDownloaderUIState>( $HomeDownloaderUIStateCopyWith<HomeDownloaderUIState> get copyWith => _$HomeDownloaderUIStateCopyWithImpl<HomeDownloaderUIState>(this as HomeDownloaderUIState, _$identity);
this as HomeDownloaderUIState, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode => Object.hash(
runtimeType,
const DeepCollectionEquality().hash(tasks),
const DeepCollectionEquality().hash(waitingTasks),
const DeepCollectionEquality().hash(stoppedTasks),
globalStat);
@override @override
String toString() { bool operator ==(Object other) {
return 'HomeDownloaderUIState(tasks: $tasks, waitingTasks: $waitingTasks, stoppedTasks: $stoppedTasks, globalStat: $globalStat)'; 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));
} }
@override
int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(tasks),const DeepCollectionEquality().hash(waitingTasks),const DeepCollectionEquality().hash(stoppedTasks),globalStat);
@override
String toString() {
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) = @useResult
_$HomeDownloaderUIStateCopyWithImpl; $Res call({
@useResult List<Aria2Task> tasks, List<Aria2Task> waitingTasks, List<Aria2Task> stoppedTasks, Aria2GlobalStat? globalStat
$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> {
@@ -77,131 +60,218 @@ class _$HomeDownloaderUIStateCopyWithImpl<$Res>
final HomeDownloaderUIState _self; final HomeDownloaderUIState _self;
final $Res Function(HomeDownloaderUIState) _then; final $Res Function(HomeDownloaderUIState) _then;
/// 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 return _then(_self.copyWith(
$Res call({ tasks: null == tasks ? _self.tasks : tasks // ignore: cast_nullable_to_non_nullable
Object? tasks = null, as List<Aria2Task>,waitingTasks: null == waitingTasks ? _self.waitingTasks : waitingTasks // ignore: cast_nullable_to_non_nullable
Object? waitingTasks = null, as List<Aria2Task>,stoppedTasks: null == stoppedTasks ? _self.stoppedTasks : stoppedTasks // ignore: cast_nullable_to_non_nullable
Object? stoppedTasks = null, as List<Aria2Task>,globalStat: freezed == globalStat ? _self.globalStat : globalStat // ignore: cast_nullable_to_non_nullable
Object? globalStat = freezed, as Aria2GlobalStat?,
}) { ));
return _then(_self.copyWith( }
tasks: null == tasks
? _self.tasks }
: tasks // ignore: cast_nullable_to_non_nullable
as List<Aria2Task>,
waitingTasks: null == waitingTasks /// Adds pattern-matching-related methods to [HomeDownloaderUIState].
? _self.waitingTasks extension HomeDownloaderUIStatePatterns on HomeDownloaderUIState {
: waitingTasks // ignore: cast_nullable_to_non_nullable /// A variant of `map` that fallback to returning `orElse`.
as List<Aria2Task>, ///
stoppedTasks: null == stoppedTasks /// It is equivalent to doing:
? _self.stoppedTasks /// ```dart
: stoppedTasks // ignore: cast_nullable_to_non_nullable /// switch (sealedClass) {
as List<Aria2Task>, /// case final Subclass value:
globalStat: freezed == globalStat /// return ...;
? _self.globalStat /// case _:
: globalStat // ignore: cast_nullable_to_non_nullable /// return orElse();
as Aria2GlobalStat?, /// }
)); /// ```
}
@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() if (_tasks is EqualUnmodifiableListView) return _tasks;
List<Aria2Task> get tasks { // ignore: implicit_dynamic_type
if (_tasks is EqualUnmodifiableListView) return _tasks; return EqualUnmodifiableListView(_tasks);
// ignore: implicit_dynamic_type }
return EqualUnmodifiableListView(_tasks);
}
final List<Aria2Task> _waitingTasks; final List<Aria2Task> _waitingTasks;
@override @override@JsonKey() List<Aria2Task> get waitingTasks {
@JsonKey() if (_waitingTasks is EqualUnmodifiableListView) return _waitingTasks;
List<Aria2Task> get waitingTasks { // ignore: implicit_dynamic_type
if (_waitingTasks is EqualUnmodifiableListView) return _waitingTasks; return EqualUnmodifiableListView(_waitingTasks);
// ignore: implicit_dynamic_type }
return EqualUnmodifiableListView(_waitingTasks);
}
final List<Aria2Task> _stoppedTasks; final List<Aria2Task> _stoppedTasks;
@override @override@JsonKey() List<Aria2Task> get stoppedTasks {
@JsonKey() if (_stoppedTasks is EqualUnmodifiableListView) return _stoppedTasks;
List<Aria2Task> get stoppedTasks { // ignore: implicit_dynamic_type
if (_stoppedTasks is EqualUnmodifiableListView) return _stoppedTasks; return EqualUnmodifiableListView(_stoppedTasks);
// ignore: implicit_dynamic_type }
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 => __$HomeDownloaderUIStateCopyWithImpl<_HomeDownloaderUIState>(this, _$identity);
_$HomeDownloaderUIStateCopyWith<_HomeDownloaderUIState> get copyWith =>
__$HomeDownloaderUIStateCopyWithImpl<_HomeDownloaderUIState>(
this, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode => Object.hash(
runtimeType,
const DeepCollectionEquality().hash(_tasks),
const DeepCollectionEquality().hash(_waitingTasks),
const DeepCollectionEquality().hash(_stoppedTasks),
globalStat);
@override @override
String toString() { bool operator ==(Object other) {
return 'HomeDownloaderUIState(tasks: $tasks, waitingTasks: $waitingTasks, stoppedTasks: $stoppedTasks, globalStat: $globalStat)'; 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));
} }
@override
int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(_tasks),const DeepCollectionEquality().hash(_waitingTasks),const DeepCollectionEquality().hash(_stoppedTasks),globalStat);
@override
String toString() {
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> {
@@ -210,35 +280,19 @@ class __$HomeDownloaderUIStateCopyWithImpl<$Res>
final _HomeDownloaderUIState _self; final _HomeDownloaderUIState _self;
final $Res Function(_HomeDownloaderUIState) _then; final $Res Function(_HomeDownloaderUIState) _then;
/// 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') return _then(_HomeDownloaderUIState(
$Res call({ tasks: null == tasks ? _self._tasks : tasks // ignore: cast_nullable_to_non_nullable
Object? tasks = null, as List<Aria2Task>,waitingTasks: null == waitingTasks ? _self._waitingTasks : waitingTasks // ignore: cast_nullable_to_non_nullable
Object? waitingTasks = null, as List<Aria2Task>,stoppedTasks: null == stoppedTasks ? _self._stoppedTasks : stoppedTasks // ignore: cast_nullable_to_non_nullable
Object? stoppedTasks = null, as List<Aria2Task>,globalStat: freezed == globalStat ? _self.globalStat : globalStat // ignore: cast_nullable_to_non_nullable
Object? globalStat = freezed, as Aria2GlobalStat?,
}) { ));
return _then(_HomeDownloaderUIState( }
tasks: null == tasks
? _self._tasks
: tasks // ignore: cast_nullable_to_non_nullable
as List<Aria2Task>,
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?,
));
}
} }
// dart format on // dart format on

View File

@@ -11,16 +11,19 @@ String _$homeDownloaderUIModelHash() =>
/// See also [HomeDownloaderUIModel]. /// See also [HomeDownloaderUIModel].
@ProviderFor(HomeDownloaderUIModel) @ProviderFor(HomeDownloaderUIModel)
final homeDownloaderUIModelProvider = AutoDisposeNotifierProvider< final homeDownloaderUIModelProvider =
HomeDownloaderUIModel, HomeDownloaderUIState>.internal( AutoDisposeNotifierProvider<
HomeDownloaderUIModel.new, HomeDownloaderUIModel,
name: r'homeDownloaderUIModelProvider', HomeDownloaderUIState
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') >.internal(
? null HomeDownloaderUIModel.new,
: _$homeDownloaderUIModelHash, name: r'homeDownloaderUIModelProvider',
dependencies: null, debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
allTransitiveDependencies: null, ? null
); : _$homeDownloaderUIModelHash,
dependencies: null,
allTransitiveDependencies: null,
);
typedef _$HomeDownloaderUIModel = AutoDisposeNotifier<HomeDownloaderUIState>; typedef _$HomeDownloaderUIModel = AutoDisposeNotifier<HomeDownloaderUIState>;
// ignore_for_file: type=lint // ignore_for_file: type=lint

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;
/// Create a copy of HomeGameDoctorState bool get isChecking; bool get isFixing; String get lastScreenInfo; String get isFixingString; List<MapEntry<String, String>>? get checkResult;
/// with the given fields replaced by the non-null parameter values. /// Create a copy of HomeGameDoctorState
@JsonKey(includeFromJson: false, includeToJson: false) /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @JsonKey(includeFromJson: false, includeToJson: false)
$HomeGameDoctorStateCopyWith<HomeGameDoctorState> get copyWith => @pragma('vm:prefer-inline')
_$HomeGameDoctorStateCopyWithImpl<HomeGameDoctorState>( $HomeGameDoctorStateCopyWith<HomeGameDoctorState> get copyWith => _$HomeGameDoctorStateCopyWithImpl<HomeGameDoctorState>(this as HomeGameDoctorState, _$identity);
this as HomeGameDoctorState, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode => Object.hash(
runtimeType,
isChecking,
isFixing,
lastScreenInfo,
isFixingString,
const DeepCollectionEquality().hash(checkResult));
@override @override
String toString() { bool operator ==(Object other) {
return 'HomeGameDoctorState(isChecking: $isChecking, isFixing: $isFixing, lastScreenInfo: $lastScreenInfo, isFixingString: $isFixingString, checkResult: $checkResult)'; 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));
} }
@override
int get hashCode => Object.hash(runtimeType,isChecking,isFixing,lastScreenInfo,isFixingString,const DeepCollectionEquality().hash(checkResult));
@override
String toString() {
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) = @useResult
_$HomeGameDoctorStateCopyWithImpl; $Res call({
@useResult bool isChecking, bool isFixing, String lastScreenInfo, String isFixingString, List<MapEntry<String, String>>? checkResult
$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> {
@@ -83,132 +60,210 @@ class _$HomeGameDoctorStateCopyWithImpl<$Res>
final HomeGameDoctorState _self; final HomeGameDoctorState _self;
final $Res Function(HomeGameDoctorState) _then; final $Res Function(HomeGameDoctorState) _then;
/// 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 return _then(_self.copyWith(
$Res call({ isChecking: null == isChecking ? _self.isChecking : isChecking // ignore: cast_nullable_to_non_nullable
Object? isChecking = null, as bool,isFixing: null == isFixing ? _self.isFixing : isFixing // ignore: cast_nullable_to_non_nullable
Object? isFixing = null, as bool,lastScreenInfo: null == lastScreenInfo ? _self.lastScreenInfo : lastScreenInfo // ignore: cast_nullable_to_non_nullable
Object? lastScreenInfo = null, as String,isFixingString: null == isFixingString ? _self.isFixingString : isFixingString // ignore: cast_nullable_to_non_nullable
Object? isFixingString = null, as String,checkResult: freezed == checkResult ? _self.checkResult : checkResult // ignore: cast_nullable_to_non_nullable
Object? checkResult = freezed, as List<MapEntry<String, String>>?,
}) { ));
return _then(_self.copyWith( }
isChecking: null == isChecking
? _self.isChecking }
: isChecking // ignore: cast_nullable_to_non_nullable
as bool,
isFixing: null == isFixing /// Adds pattern-matching-related methods to [HomeGameDoctorState].
? _self.isFixing extension HomeGameDoctorStatePatterns on HomeGameDoctorState {
: isFixing // ignore: cast_nullable_to_non_nullable /// A variant of `map` that fallback to returning `orElse`.
as bool, ///
lastScreenInfo: null == lastScreenInfo /// It is equivalent to doing:
? _self.lastScreenInfo /// ```dart
: lastScreenInfo // ignore: cast_nullable_to_non_nullable /// switch (sealedClass) {
as String, /// case final Subclass value:
isFixingString: null == isFixingString /// return ...;
? _self.isFixingString /// case _:
: isFixingString // ignore: cast_nullable_to_non_nullable /// return orElse();
as String, /// }
checkResult: freezed == checkResult /// ```
? _self.checkResult
: checkResult // ignore: cast_nullable_to_non_nullable @optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _HomeGameDoctorState value)? $default,{required TResult orElse(),}){
as List<MapEntry<String, String>>?, 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 { class _HomeGameDoctorState implements HomeGameDoctorState {
_HomeGameDoctorState( _HomeGameDoctorState({this.isChecking = false, this.isFixing = false, this.lastScreenInfo = "", this.isFixingString = "", final List<MapEntry<String, String>>? checkResult}): _checkResult = checkResult;
{this.isChecking = false,
this.isFixing = false,
this.lastScreenInfo = "",
this.isFixingString = "",
final List<MapEntry<String, String>>? checkResult})
: _checkResult = checkResult;
@override @override@JsonKey() final bool isChecking;
@JsonKey() @override@JsonKey() final bool isFixing;
final bool isChecking; @override@JsonKey() final String lastScreenInfo;
@override @override@JsonKey() final String isFixingString;
@JsonKey() final List<MapEntry<String, String>>? _checkResult;
final bool isFixing; @override List<MapEntry<String, String>>? get checkResult {
@override final value = _checkResult;
@JsonKey() if (value == null) return null;
final String lastScreenInfo; if (_checkResult is EqualUnmodifiableListView) return _checkResult;
@override // ignore: implicit_dynamic_type
@JsonKey() return EqualUnmodifiableListView(value);
final String isFixingString; }
final List<MapEntry<String, String>>? _checkResult;
@override
List<MapEntry<String, String>>? get checkResult {
final value = _checkResult;
if (value == null) return null;
if (_checkResult is EqualUnmodifiableListView) return _checkResult;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(value);
}
/// Create a copy of HomeGameDoctorState
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$HomeGameDoctorStateCopyWith<_HomeGameDoctorState> get copyWith =>
__$HomeGameDoctorStateCopyWithImpl<_HomeGameDoctorState>(
this, _$identity);
@override /// Create a copy of HomeGameDoctorState
bool operator ==(Object other) { /// with the given fields replaced by the non-null parameter values.
return identical(this, other) || @override @JsonKey(includeFromJson: false, includeToJson: false)
(other.runtimeType == runtimeType && @pragma('vm:prefer-inline')
other is _HomeGameDoctorState && _$HomeGameDoctorStateCopyWith<_HomeGameDoctorState> get copyWith => __$HomeGameDoctorStateCopyWithImpl<_HomeGameDoctorState>(this, _$identity);
(identical(other.isChecking, isChecking) ||
other.isChecking == isChecking) &&
(identical(other.isFixing, isFixing) ||
other.isFixing == isFixing) && @override
(identical(other.lastScreenInfo, lastScreenInfo) || bool operator ==(Object other) {
other.lastScreenInfo == lastScreenInfo) && 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));
(identical(other.isFixingString, isFixingString) || }
other.isFixingString == isFixingString) &&
const DeepCollectionEquality()
.equals(other._checkResult, _checkResult)); @override
} int get hashCode => Object.hash(runtimeType,isChecking,isFixing,lastScreenInfo,isFixingString,const DeepCollectionEquality().hash(_checkResult));
@override
String toString() {
return 'HomeGameDoctorState(isChecking: $isChecking, isFixing: $isFixing, lastScreenInfo: $lastScreenInfo, isFixingString: $isFixingString, checkResult: $checkResult)';
}
@override
int get hashCode => Object.hash(
runtimeType,
isChecking,
isFixing,
lastScreenInfo,
isFixingString,
const DeepCollectionEquality().hash(_checkResult));
@override
String toString() {
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> {
@@ -217,40 +272,20 @@ class __$HomeGameDoctorStateCopyWithImpl<$Res>
final _HomeGameDoctorState _self; final _HomeGameDoctorState _self;
final $Res Function(_HomeGameDoctorState) _then; final $Res Function(_HomeGameDoctorState) _then;
/// 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') return _then(_HomeGameDoctorState(
$Res call({ isChecking: null == isChecking ? _self.isChecking : isChecking // ignore: cast_nullable_to_non_nullable
Object? isChecking = null, as bool,isFixing: null == isFixing ? _self.isFixing : isFixing // ignore: cast_nullable_to_non_nullable
Object? isFixing = null, as bool,lastScreenInfo: null == lastScreenInfo ? _self.lastScreenInfo : lastScreenInfo // ignore: cast_nullable_to_non_nullable
Object? lastScreenInfo = null, as String,isFixingString: null == isFixingString ? _self.isFixingString : isFixingString // ignore: cast_nullable_to_non_nullable
Object? isFixingString = null, as String,checkResult: freezed == checkResult ? _self._checkResult : checkResult // ignore: cast_nullable_to_non_nullable
Object? checkResult = freezed, as List<MapEntry<String, String>>?,
}) { ));
return _then(_HomeGameDoctorState( }
isChecking: null == isChecking
? _self.isChecking
: isChecking // ignore: cast_nullable_to_non_nullable
as bool,
isFixing: null == isFixing
? _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>>?,
));
}
} }
// dart format on // dart format on

View File

@@ -11,16 +11,19 @@ String _$homeGameDoctorUIModelHash() =>
/// See also [HomeGameDoctorUIModel]. /// See also [HomeGameDoctorUIModel].
@ProviderFor(HomeGameDoctorUIModel) @ProviderFor(HomeGameDoctorUIModel)
final homeGameDoctorUIModelProvider = AutoDisposeNotifierProvider< final homeGameDoctorUIModelProvider =
HomeGameDoctorUIModel, HomeGameDoctorState>.internal( AutoDisposeNotifierProvider<
HomeGameDoctorUIModel.new, HomeGameDoctorUIModel,
name: r'homeGameDoctorUIModelProvider', HomeGameDoctorState
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') >.internal(
? null HomeGameDoctorUIModel.new,
: _$homeGameDoctorUIModelHash, name: r'homeGameDoctorUIModelProvider',
dependencies: null, debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
allTransitiveDependencies: null, ? null
); : _$homeGameDoctorUIModelHash,
dependencies: null,
allTransitiveDependencies: null,
);
typedef _$HomeGameDoctorUIModel = AutoDisposeNotifier<HomeGameDoctorState>; typedef _$HomeGameDoctorUIModel = AutoDisposeNotifier<HomeGameDoctorState>;
// ignore_for_file: type=lint // ignore_for_file: type=lint

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;
/// Create a copy of 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;
/// with the given fields replaced by the non-null parameter values. /// Create a copy of HomeUIModelState
@JsonKey(includeFromJson: false, includeToJson: false) /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @JsonKey(includeFromJson: false, includeToJson: false)
$HomeUIModelStateCopyWith<HomeUIModelState> get copyWith => @pragma('vm:prefer-inline')
_$HomeUIModelStateCopyWithImpl<HomeUIModelState>( $HomeUIModelStateCopyWith<HomeUIModelState> get copyWith => _$HomeUIModelStateCopyWithImpl<HomeUIModelState>(this as HomeUIModelState, _$identity);
this as HomeUIModelState, _$identity);
@override
bool operator ==(Object 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));
}
@override
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));
@override @override
String toString() { bool operator ==(Object other) {
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 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));
} }
@override
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));
@override
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)';
}
} }
/// @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) = @useResult
_$HomeUIModelStateCopyWithImpl; $Res call({
@useResult 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
$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> {
@@ -125,272 +60,262 @@ class _$HomeUIModelStateCopyWithImpl<$Res>
final HomeUIModelState _self; final HomeUIModelState _self;
final $Res Function(HomeUIModelState) _then; final $Res Function(HomeUIModelState) _then;
/// 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 return _then(_self.copyWith(
$Res call({ appPlacardData: freezed == appPlacardData ? _self.appPlacardData : appPlacardData // ignore: cast_nullable_to_non_nullable
Object? appPlacardData = freezed, as AppPlacardData?,isFixing: null == isFixing ? _self.isFixing : isFixing // ignore: cast_nullable_to_non_nullable
Object? isFixing = null, as bool,isFixingString: null == isFixingString ? _self.isFixingString : isFixingString // ignore: cast_nullable_to_non_nullable
Object? isFixingString = null, as String,scInstalledPath: freezed == scInstalledPath ? _self.scInstalledPath : scInstalledPath // ignore: cast_nullable_to_non_nullable
Object? scInstalledPath = freezed, as String?,scInstallPaths: null == scInstallPaths ? _self.scInstallPaths : scInstallPaths // ignore: cast_nullable_to_non_nullable
Object? scInstallPaths = null, as List<String>,webLocalizationVersionsData: freezed == webLocalizationVersionsData ? _self.webLocalizationVersionsData : webLocalizationVersionsData // ignore: cast_nullable_to_non_nullable
Object? webLocalizationVersionsData = freezed, as AppWebLocalizationVersionsData?,lastScreenInfo: null == lastScreenInfo ? _self.lastScreenInfo : lastScreenInfo // ignore: cast_nullable_to_non_nullable
Object? lastScreenInfo = null, as String,rssVideoItems: freezed == rssVideoItems ? _self.rssVideoItems : rssVideoItems // ignore: cast_nullable_to_non_nullable
Object? rssVideoItems = freezed, as List<RssItem>?,rssTextItems: freezed == rssTextItems ? _self.rssTextItems : rssTextItems // ignore: cast_nullable_to_non_nullable
Object? rssTextItems = freezed, as List<RssItem>?,localizationUpdateInfo: freezed == localizationUpdateInfo ? _self.localizationUpdateInfo : localizationUpdateInfo // ignore: cast_nullable_to_non_nullable
Object? localizationUpdateInfo = freezed, as MapEntry<String, bool>?,scServerStatus: freezed == scServerStatus ? _self.scServerStatus : scServerStatus // ignore: cast_nullable_to_non_nullable
Object? scServerStatus = freezed, as List?,countdownFestivalListData: freezed == countdownFestivalListData ? _self.countdownFestivalListData : countdownFestivalListData // ignore: cast_nullable_to_non_nullable
Object? countdownFestivalListData = freezed, as List<CountdownFestivalItemData>?,isGameRunning: null == isGameRunning ? _self.isGameRunning : isGameRunning // ignore: cast_nullable_to_non_nullable
Object? isGameRunning = null, as Map<String, bool>,
}) { ));
return _then(_self.copyWith( }
appPlacardData: freezed == appPlacardData
? _self.appPlacardData }
: appPlacardData // ignore: cast_nullable_to_non_nullable
as AppPlacardData?,
isFixing: null == isFixing /// Adds pattern-matching-related methods to [HomeUIModelState].
? _self.isFixing extension HomeUIModelStatePatterns on HomeUIModelState {
: isFixing // ignore: cast_nullable_to_non_nullable /// A variant of `map` that fallback to returning `orElse`.
as bool, ///
isFixingString: null == isFixingString /// It is equivalent to doing:
? _self.isFixingString /// ```dart
: isFixingString // ignore: cast_nullable_to_non_nullable /// switch (sealedClass) {
as String, /// case final Subclass value:
scInstalledPath: freezed == scInstalledPath /// return ...;
? _self.scInstalledPath /// case _:
: scInstalledPath // ignore: cast_nullable_to_non_nullable /// return orElse();
as String?, /// }
scInstallPaths: null == scInstallPaths /// ```
? _self.scInstallPaths
: scInstallPaths // ignore: cast_nullable_to_non_nullable @optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _HomeUIModelState value)? $default,{required TResult orElse(),}){
as List<String>, final _that = this;
webLocalizationVersionsData: freezed == webLocalizationVersionsData switch (_that) {
? _self.webLocalizationVersionsData case _HomeUIModelState() when $default != null:
: webLocalizationVersionsData // ignore: cast_nullable_to_non_nullable return $default(_that);case _:
as AppWebLocalizationVersionsData?, return orElse();
lastScreenInfo: null == lastScreenInfo
? _self.lastScreenInfo }
: lastScreenInfo // ignore: cast_nullable_to_non_nullable }
as String, /// A `switch`-like method, using callbacks.
rssVideoItems: freezed == rssVideoItems ///
? _self.rssVideoItems /// Callbacks receives the raw object, upcasted.
: rssVideoItems // ignore: cast_nullable_to_non_nullable /// It is equivalent to doing:
as List<RssItem>?, /// ```dart
rssTextItems: freezed == rssTextItems /// switch (sealedClass) {
? _self.rssTextItems /// case final Subclass value:
: rssTextItems // ignore: cast_nullable_to_non_nullable /// return ...;
as List<RssItem>?, /// case final Subclass2 value:
localizationUpdateInfo: freezed == localizationUpdateInfo /// return ...;
? _self.localizationUpdateInfo /// }
: localizationUpdateInfo // ignore: cast_nullable_to_non_nullable /// ```
as MapEntry<String, bool>?,
scServerStatus: freezed == scServerStatus @optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _HomeUIModelState value) $default,){
? _self.scServerStatus final _that = this;
: scServerStatus // ignore: cast_nullable_to_non_nullable switch (_that) {
as List?, case _HomeUIModelState():
countdownFestivalListData: freezed == countdownFestivalListData return $default(_that);case _:
? _self.countdownFestivalListData throw StateError('Unexpected subclass');
: countdownFestivalListData // ignore: cast_nullable_to_non_nullable
as List<CountdownFestivalItemData>?, }
isGameRunning: null == isGameRunning }
? _self.isGameRunning /// A variant of `map` that fallback to returning `null`.
: isGameRunning // ignore: cast_nullable_to_non_nullable ///
as Map<String, bool>, /// 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 { class _HomeUIModelState implements HomeUIModelState {
_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;
{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 @override final AppPlacardData? appPlacardData;
final AppPlacardData? appPlacardData; @override@JsonKey() final bool isFixing;
@override @override@JsonKey() final String isFixingString;
@JsonKey() @override final String? scInstalledPath;
final bool isFixing; final List<String> _scInstallPaths;
@override @override@JsonKey() List<String> get scInstallPaths {
@JsonKey() if (_scInstallPaths is EqualUnmodifiableListView) return _scInstallPaths;
final String isFixingString; // ignore: implicit_dynamic_type
@override return EqualUnmodifiableListView(_scInstallPaths);
final String? scInstalledPath; }
final List<String> _scInstallPaths;
@override
@JsonKey()
List<String> get scInstallPaths {
if (_scInstallPaths is EqualUnmodifiableListView) return _scInstallPaths;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_scInstallPaths);
}
@override @override final AppWebLocalizationVersionsData? webLocalizationVersionsData;
final AppWebLocalizationVersionsData? webLocalizationVersionsData; @override@JsonKey() final String lastScreenInfo;
@override final List<RssItem>? _rssVideoItems;
@JsonKey() @override List<RssItem>? get rssVideoItems {
final String lastScreenInfo; final value = _rssVideoItems;
final List<RssItem>? _rssVideoItems; if (value == null) return null;
@override if (_rssVideoItems is EqualUnmodifiableListView) return _rssVideoItems;
List<RssItem>? get rssVideoItems { // ignore: implicit_dynamic_type
final value = _rssVideoItems; return EqualUnmodifiableListView(value);
if (value == null) return null; }
if (_rssVideoItems is EqualUnmodifiableListView) return _rssVideoItems;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(value);
}
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; // ignore: implicit_dynamic_type
// ignore: implicit_dynamic_type 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 List? get scServerStatus {
@override final value = _scServerStatus;
List? get scServerStatus { if (value == null) return null;
final value = _scServerStatus; if (_scServerStatus is EqualUnmodifiableListView) return _scServerStatus;
if (value == null) return null; // ignore: implicit_dynamic_type
if (_scServerStatus is EqualUnmodifiableListView) return _scServerStatus; return EqualUnmodifiableListView(value);
// ignore: implicit_dynamic_type }
return EqualUnmodifiableListView(value);
}
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) return _countdownFestivalListData;
if (_countdownFestivalListData is EqualUnmodifiableListView) // ignore: implicit_dynamic_type
return _countdownFestivalListData; return EqualUnmodifiableListView(value);
// ignore: implicit_dynamic_type }
return EqualUnmodifiableListView(value);
}
final Map<String, bool> _isGameRunning; final Map<String, bool> _isGameRunning;
@override @override@JsonKey() Map<String, bool> get isGameRunning {
@JsonKey() if (_isGameRunning is EqualUnmodifiableMapView) return _isGameRunning;
Map<String, bool> get isGameRunning { // ignore: implicit_dynamic_type
if (_isGameRunning is EqualUnmodifiableMapView) return _isGameRunning; return EqualUnmodifiableMapView(_isGameRunning);
// ignore: implicit_dynamic_type }
return EqualUnmodifiableMapView(_isGameRunning);
}
/// Create a copy of HomeUIModelState
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$HomeUIModelStateCopyWith<_HomeUIModelState> get copyWith =>
__$HomeUIModelStateCopyWithImpl<_HomeUIModelState>(this, _$identity);
@override /// Create a copy of HomeUIModelState
bool operator ==(Object other) { /// with the given fields replaced by the non-null parameter values.
return identical(this, other) || @override @JsonKey(includeFromJson: false, includeToJson: false)
(other.runtimeType == runtimeType && @pragma('vm:prefer-inline')
other is _HomeUIModelState && _$HomeUIModelStateCopyWith<_HomeUIModelState> get copyWith => __$HomeUIModelStateCopyWithImpl<_HomeUIModelState>(this, _$identity);
(identical(other.appPlacardData, appPlacardData) ||
other.appPlacardData == appPlacardData) &&
(identical(other.isFixing, isFixing) ||
other.isFixing == isFixing) && @override
(identical(other.isFixingString, isFixingString) || bool operator ==(Object other) {
other.isFixingString == isFixingString) && 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));
(identical(other.scInstalledPath, scInstalledPath) || }
other.scInstalledPath == scInstalledPath) &&
const DeepCollectionEquality()
.equals(other._scInstallPaths, _scInstallPaths) && @override
(identical(other.webLocalizationVersionsData, 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));
webLocalizationVersionsData) ||
other.webLocalizationVersionsData == @override
webLocalizationVersionsData) && String toString() {
(identical(other.lastScreenInfo, lastScreenInfo) || 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)';
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
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));
@override
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)';
}
} }
/// @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> {
@@ -399,80 +324,28 @@ class __$HomeUIModelStateCopyWithImpl<$Res>
final _HomeUIModelState _self; final _HomeUIModelState _self;
final $Res Function(_HomeUIModelState) _then; final $Res Function(_HomeUIModelState) _then;
/// 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') return _then(_HomeUIModelState(
$Res call({ appPlacardData: freezed == appPlacardData ? _self.appPlacardData : appPlacardData // ignore: cast_nullable_to_non_nullable
Object? appPlacardData = freezed, as AppPlacardData?,isFixing: null == isFixing ? _self.isFixing : isFixing // ignore: cast_nullable_to_non_nullable
Object? isFixing = null, as bool,isFixingString: null == isFixingString ? _self.isFixingString : isFixingString // ignore: cast_nullable_to_non_nullable
Object? isFixingString = null, as String,scInstalledPath: freezed == scInstalledPath ? _self.scInstalledPath : scInstalledPath // ignore: cast_nullable_to_non_nullable
Object? scInstalledPath = freezed, as String?,scInstallPaths: null == scInstallPaths ? _self._scInstallPaths : scInstallPaths // ignore: cast_nullable_to_non_nullable
Object? scInstallPaths = null, as List<String>,webLocalizationVersionsData: freezed == webLocalizationVersionsData ? _self.webLocalizationVersionsData : webLocalizationVersionsData // ignore: cast_nullable_to_non_nullable
Object? webLocalizationVersionsData = freezed, as AppWebLocalizationVersionsData?,lastScreenInfo: null == lastScreenInfo ? _self.lastScreenInfo : lastScreenInfo // ignore: cast_nullable_to_non_nullable
Object? lastScreenInfo = null, as String,rssVideoItems: freezed == rssVideoItems ? _self._rssVideoItems : rssVideoItems // ignore: cast_nullable_to_non_nullable
Object? rssVideoItems = freezed, as List<RssItem>?,rssTextItems: freezed == rssTextItems ? _self._rssTextItems : rssTextItems // ignore: cast_nullable_to_non_nullable
Object? rssTextItems = freezed, as List<RssItem>?,localizationUpdateInfo: freezed == localizationUpdateInfo ? _self.localizationUpdateInfo : localizationUpdateInfo // ignore: cast_nullable_to_non_nullable
Object? localizationUpdateInfo = freezed, as MapEntry<String, bool>?,scServerStatus: freezed == scServerStatus ? _self._scServerStatus : scServerStatus // ignore: cast_nullable_to_non_nullable
Object? scServerStatus = freezed, as List?,countdownFestivalListData: freezed == countdownFestivalListData ? _self._countdownFestivalListData : countdownFestivalListData // ignore: cast_nullable_to_non_nullable
Object? countdownFestivalListData = freezed, as List<CountdownFestivalItemData>?,isGameRunning: null == isGameRunning ? _self._isGameRunning : isGameRunning // ignore: cast_nullable_to_non_nullable
Object? isGameRunning = null, as Map<String, bool>,
}) { ));
return _then(_HomeUIModelState( }
appPlacardData: freezed == appPlacardData
? _self.appPlacardData
: appPlacardData // ignore: cast_nullable_to_non_nullable
as AppPlacardData?,
isFixing: null == isFixing
? _self.isFixing
: isFixing // ignore: cast_nullable_to_non_nullable
as bool,
isFixingString: null == isFixingString
? _self.isFixingString
: isFixingString // ignore: cast_nullable_to_non_nullable
as String,
scInstalledPath: freezed == scInstalledPath
? _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>,
));
}
} }
// dart format on // dart format on

View File

@@ -12,13 +12,14 @@ String _$homeUIModelHash() => r'8bde330ebc2cd73f76d2d49df8b328f301d42e44';
@ProviderFor(HomeUIModel) @ProviderFor(HomeUIModel)
final homeUIModelProvider = 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
dependencies: null, : _$homeUIModelHash,
allTransitiveDependencies: null, dependencies: null,
); allTransitiveDependencies: null,
);
typedef _$HomeUIModel = AutoDisposeNotifier<HomeUIModelState>; typedef _$HomeUIModel = AutoDisposeNotifier<HomeUIModelState>;
// ignore_for_file: type=lint // ignore_for_file: type=lint

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;
/// Create a copy of InputMethodDialogUIState Map<String, String>? get keyMaps; Map<String, String>? get worldMaps; bool get enableAutoCopy; bool get isEnableAutoTranslate; bool get isAutoTranslateWorking;
/// with the given fields replaced by the non-null parameter values. /// Create a copy of InputMethodDialogUIState
@JsonKey(includeFromJson: false, includeToJson: false) /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @JsonKey(includeFromJson: false, includeToJson: false)
$InputMethodDialogUIStateCopyWith<InputMethodDialogUIState> get copyWith => @pragma('vm:prefer-inline')
_$InputMethodDialogUIStateCopyWithImpl<InputMethodDialogUIState>( $InputMethodDialogUIStateCopyWith<InputMethodDialogUIState> get copyWith => _$InputMethodDialogUIStateCopyWithImpl<InputMethodDialogUIState>(this as InputMethodDialogUIState, _$identity);
this as InputMethodDialogUIState, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode => Object.hash(
runtimeType,
const DeepCollectionEquality().hash(keyMaps),
const DeepCollectionEquality().hash(worldMaps),
enableAutoCopy,
isEnableAutoTranslate,
isAutoTranslateWorking);
@override @override
String toString() { bool operator ==(Object other) {
return 'InputMethodDialogUIState(keyMaps: $keyMaps, worldMaps: $worldMaps, enableAutoCopy: $enableAutoCopy, isEnableAutoTranslate: $isEnableAutoTranslate, isAutoTranslateWorking: $isAutoTranslateWorking)'; 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));
} }
@override
int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(keyMaps),const DeepCollectionEquality().hash(worldMaps),enableAutoCopy,isEnableAutoTranslate,isAutoTranslateWorking);
@override
String toString() {
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) = @useResult
_$InputMethodDialogUIStateCopyWithImpl; $Res call({
@useResult Map<String, String>? keyMaps, Map<String, String>? worldMaps, bool enableAutoCopy, bool isEnableAutoTranslate, bool isAutoTranslateWorking
$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> {
@@ -81,139 +60,218 @@ class _$InputMethodDialogUIStateCopyWithImpl<$Res>
final InputMethodDialogUIState _self; final InputMethodDialogUIState _self;
final $Res Function(InputMethodDialogUIState) _then; final $Res Function(InputMethodDialogUIState) _then;
/// 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 return _then(_self.copyWith(
$Res call({ keyMaps: freezed == keyMaps ? _self.keyMaps : keyMaps // ignore: cast_nullable_to_non_nullable
Object? keyMaps = freezed, as Map<String, String>?,worldMaps: freezed == worldMaps ? _self.worldMaps : worldMaps // ignore: cast_nullable_to_non_nullable
Object? worldMaps = freezed, as Map<String, String>?,enableAutoCopy: null == enableAutoCopy ? _self.enableAutoCopy : enableAutoCopy // ignore: cast_nullable_to_non_nullable
Object? enableAutoCopy = null, as bool,isEnableAutoTranslate: null == isEnableAutoTranslate ? _self.isEnableAutoTranslate : isEnableAutoTranslate // ignore: cast_nullable_to_non_nullable
Object? isEnableAutoTranslate = null, as bool,isAutoTranslateWorking: null == isAutoTranslateWorking ? _self.isAutoTranslateWorking : isAutoTranslateWorking // ignore: cast_nullable_to_non_nullable
Object? isAutoTranslateWorking = null, as bool,
}) { ));
return _then(_self.copyWith( }
keyMaps: freezed == keyMaps
? _self.keyMaps }
: keyMaps // ignore: cast_nullable_to_non_nullable
as Map<String, String>?,
worldMaps: freezed == worldMaps /// Adds pattern-matching-related methods to [InputMethodDialogUIState].
? _self.worldMaps extension InputMethodDialogUIStatePatterns on InputMethodDialogUIState {
: worldMaps // ignore: cast_nullable_to_non_nullable /// A variant of `map` that fallback to returning `orElse`.
as Map<String, String>?, ///
enableAutoCopy: null == enableAutoCopy /// It is equivalent to doing:
? _self.enableAutoCopy /// ```dart
: enableAutoCopy // ignore: cast_nullable_to_non_nullable /// switch (sealedClass) {
as bool, /// case final Subclass value:
isEnableAutoTranslate: null == isEnableAutoTranslate /// return ...;
? _self.isEnableAutoTranslate /// case _:
: isEnableAutoTranslate // ignore: cast_nullable_to_non_nullable /// return orElse();
as bool, /// }
isAutoTranslateWorking: null == isAutoTranslateWorking /// ```
? _self.isAutoTranslateWorking
: isAutoTranslateWorking // ignore: cast_nullable_to_non_nullable @optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _InputMethodDialogUIState value)? $default,{required TResult orElse(),}){
as bool, 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; // ignore: implicit_dynamic_type
// ignore: implicit_dynamic_type return EqualUnmodifiableMapView(value);
return EqualUnmodifiableMapView(value); }
}
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; // ignore: implicit_dynamic_type
// ignore: implicit_dynamic_type 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 => __$InputMethodDialogUIStateCopyWithImpl<_InputMethodDialogUIState>(this, _$identity);
_$InputMethodDialogUIStateCopyWith<_InputMethodDialogUIState> get copyWith =>
__$InputMethodDialogUIStateCopyWithImpl<_InputMethodDialogUIState>(
this, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode => Object.hash(
runtimeType,
const DeepCollectionEquality().hash(_keyMaps),
const DeepCollectionEquality().hash(_worldMaps),
enableAutoCopy,
isEnableAutoTranslate,
isAutoTranslateWorking);
@override @override
String toString() { bool operator ==(Object other) {
return 'InputMethodDialogUIState(keyMaps: $keyMaps, worldMaps: $worldMaps, enableAutoCopy: $enableAutoCopy, isEnableAutoTranslate: $isEnableAutoTranslate, isAutoTranslateWorking: $isAutoTranslateWorking)'; 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));
} }
@override
int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(_keyMaps),const DeepCollectionEquality().hash(_worldMaps),enableAutoCopy,isEnableAutoTranslate,isAutoTranslateWorking);
@override
String toString() {
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> {
@@ -222,40 +280,20 @@ class __$InputMethodDialogUIStateCopyWithImpl<$Res>
final _InputMethodDialogUIState _self; final _InputMethodDialogUIState _self;
final $Res Function(_InputMethodDialogUIState) _then; final $Res Function(_InputMethodDialogUIState) _then;
/// 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') return _then(_InputMethodDialogUIState(
$Res call({ freezed == keyMaps ? _self._keyMaps : keyMaps // ignore: cast_nullable_to_non_nullable
Object? keyMaps = freezed, as Map<String, String>?,freezed == worldMaps ? _self._worldMaps : worldMaps // ignore: cast_nullable_to_non_nullable
Object? worldMaps = freezed, as Map<String, String>?,enableAutoCopy: null == enableAutoCopy ? _self.enableAutoCopy : enableAutoCopy // ignore: cast_nullable_to_non_nullable
Object? enableAutoCopy = null, as bool,isEnableAutoTranslate: null == isEnableAutoTranslate ? _self.isEnableAutoTranslate : isEnableAutoTranslate // ignore: cast_nullable_to_non_nullable
Object? isEnableAutoTranslate = null, as bool,isAutoTranslateWorking: null == isAutoTranslateWorking ? _self.isAutoTranslateWorking : isAutoTranslateWorking // ignore: cast_nullable_to_non_nullable
Object? isAutoTranslateWorking = null, as bool,
}) { ));
return _then(_InputMethodDialogUIState( }
freezed == keyMaps
? _self._keyMaps
: keyMaps // ignore: cast_nullable_to_non_nullable
as Map<String, String>?,
freezed == worldMaps
? _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,
));
}
} }
// dart format on // dart format on

View File

@@ -11,18 +11,21 @@ String _$inputMethodDialogUIModelHash() =>
/// See also [InputMethodDialogUIModel]. /// See also [InputMethodDialogUIModel].
@ProviderFor(InputMethodDialogUIModel) @ProviderFor(InputMethodDialogUIModel)
final inputMethodDialogUIModelProvider = AutoDisposeNotifierProvider< final inputMethodDialogUIModelProvider =
InputMethodDialogUIModel, InputMethodDialogUIState>.internal( AutoDisposeNotifierProvider<
InputMethodDialogUIModel.new, InputMethodDialogUIModel,
name: r'inputMethodDialogUIModelProvider', InputMethodDialogUIState
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') >.internal(
? null InputMethodDialogUIModel.new,
: _$inputMethodDialogUIModelHash, name: r'inputMethodDialogUIModelProvider',
dependencies: null, debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
allTransitiveDependencies: null, ? null
); : _$inputMethodDialogUIModelHash,
dependencies: 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;
/// Create a copy of InputMethodServerState bool get isServerStartup; String? get serverAddressText;
/// with the given fields replaced by the non-null parameter values. /// Create a copy of InputMethodServerState
@JsonKey(includeFromJson: false, includeToJson: false) /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @JsonKey(includeFromJson: false, includeToJson: false)
$InputMethodServerStateCopyWith<InputMethodServerState> get copyWith => @pragma('vm:prefer-inline')
_$InputMethodServerStateCopyWithImpl<InputMethodServerState>( $InputMethodServerStateCopyWith<InputMethodServerState> get copyWith => _$InputMethodServerStateCopyWithImpl<InputMethodServerState>(this as InputMethodServerState, _$identity);
this as InputMethodServerState, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode =>
Object.hash(runtimeType, isServerStartup, serverAddressText);
@override @override
String toString() { bool operator ==(Object other) {
return 'InputMethodServerState(isServerStartup: $isServerStartup, serverAddressText: $serverAddressText)'; return identical(this, other) || (other.runtimeType == runtimeType&&other is InputMethodServerState&&(identical(other.isServerStartup, isServerStartup) || other.isServerStartup == isServerStartup)&&(identical(other.serverAddressText, serverAddressText) || other.serverAddressText == serverAddressText));
} }
@override
int get hashCode => Object.hash(runtimeType,isServerStartup,serverAddressText);
@override
String toString() {
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) = @useResult
_$InputMethodServerStateCopyWithImpl; $Res call({
@useResult bool isServerStartup, String? serverAddressText
$Res call({bool isServerStartup, String? serverAddressText}); });
}
}
/// @nodoc /// @nodoc
class _$InputMethodServerStateCopyWithImpl<$Res> class _$InputMethodServerStateCopyWithImpl<$Res>
implements $InputMethodServerStateCopyWith<$Res> { implements $InputMethodServerStateCopyWith<$Res> {
@@ -64,80 +60,196 @@ class _$InputMethodServerStateCopyWithImpl<$Res>
final InputMethodServerState _self; final InputMethodServerState _self;
final $Res Function(InputMethodServerState) _then; final $Res Function(InputMethodServerState) _then;
/// 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 return _then(_self.copyWith(
$Res call({ isServerStartup: null == isServerStartup ? _self.isServerStartup : isServerStartup // ignore: cast_nullable_to_non_nullable
Object? isServerStartup = null, as bool,serverAddressText: freezed == serverAddressText ? _self.serverAddressText : serverAddressText // ignore: cast_nullable_to_non_nullable
Object? serverAddressText = freezed, as String?,
}) { ));
return _then(_self.copyWith( }
isServerStartup: null == isServerStartup
? _self.isServerStartup }
: isServerStartup // ignore: cast_nullable_to_non_nullable
as bool,
serverAddressText: freezed == serverAddressText /// Adds pattern-matching-related methods to [InputMethodServerState].
? _self.serverAddressText extension InputMethodServerStatePatterns on InputMethodServerState {
: serverAddressText // ignore: cast_nullable_to_non_nullable /// A variant of `map` that fallback to returning `orElse`.
as String?, ///
)); /// 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 { class _InputMethodServerState implements InputMethodServerState {
const _InputMethodServerState( const _InputMethodServerState({this.isServerStartup = false, this.serverAddressText});
{this.isServerStartup = false, this.serverAddressText});
@override @override@JsonKey() final bool isServerStartup;
@JsonKey() @override final String? serverAddressText;
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 => __$InputMethodServerStateCopyWithImpl<_InputMethodServerState>(this, _$identity);
_$InputMethodServerStateCopyWith<_InputMethodServerState> get copyWith =>
__$InputMethodServerStateCopyWithImpl<_InputMethodServerState>(
this, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode =>
Object.hash(runtimeType, isServerStartup, serverAddressText);
@override @override
String toString() { bool operator ==(Object other) {
return 'InputMethodServerState(isServerStartup: $isServerStartup, serverAddressText: $serverAddressText)'; return identical(this, other) || (other.runtimeType == runtimeType&&other is _InputMethodServerState&&(identical(other.isServerStartup, isServerStartup) || other.isServerStartup == isServerStartup)&&(identical(other.serverAddressText, serverAddressText) || other.serverAddressText == serverAddressText));
} }
@override
int get hashCode => Object.hash(runtimeType,isServerStartup,serverAddressText);
@override
String toString() {
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> {
@@ -146,25 +258,17 @@ class __$InputMethodServerStateCopyWithImpl<$Res>
final _InputMethodServerState _self; final _InputMethodServerState _self;
final $Res Function(_InputMethodServerState) _then; final $Res Function(_InputMethodServerState) _then;
/// 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') return _then(_InputMethodServerState(
$Res call({ isServerStartup: null == isServerStartup ? _self.isServerStartup : isServerStartup // ignore: cast_nullable_to_non_nullable
Object? isServerStartup = null, as bool,serverAddressText: freezed == serverAddressText ? _self.serverAddressText : serverAddressText // ignore: cast_nullable_to_non_nullable
Object? serverAddressText = freezed, as String?,
}) { ));
return _then(_InputMethodServerState( }
isServerStartup: null == isServerStartup
? _self.isServerStartup
: isServerStartup // ignore: cast_nullable_to_non_nullable
as bool,
serverAddressText: freezed == serverAddressText
? _self.serverAddressText
: serverAddressText // ignore: cast_nullable_to_non_nullable
as String?,
));
}
} }
// dart format on // dart format on

View File

@@ -10,16 +10,19 @@ String _$inputMethodServerHash() => r'58ff318c051f16c76f620258520aadedbdd5057c';
/// See also [InputMethodServer]. /// See also [InputMethodServer].
@ProviderFor(InputMethodServer) @ProviderFor(InputMethodServer)
final inputMethodServerProvider = AutoDisposeNotifierProvider<InputMethodServer, final inputMethodServerProvider =
InputMethodServerState>.internal( AutoDisposeNotifierProvider<
InputMethodServer.new, InputMethodServer,
name: r'inputMethodServerProvider', InputMethodServerState
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') >.internal(
? null InputMethodServer.new,
: _$inputMethodServerHash, name: r'inputMethodServerProvider',
dependencies: null, debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
allTransitiveDependencies: null, ? null
); : _$inputMethodServerHash,
dependencies: null,
allTransitiveDependencies: null,
);
typedef _$InputMethodServer = AutoDisposeNotifier<InputMethodServerState>; typedef _$InputMethodServer = AutoDisposeNotifier<InputMethodServerState>;
// ignore_for_file: type=lint // ignore_for_file: type=lint

View File

@@ -12,14 +12,14 @@ String _$serverQrStateHash() => r'06f5ab53e1d6718f2a6eb0078a1adc3778787ed0';
@ProviderFor(ServerQrState) @ProviderFor(ServerQrState)
final serverQrStateProvider = final serverQrStateProvider =
AutoDisposeNotifierProvider<ServerQrState, bool>.internal( AutoDisposeNotifierProvider<ServerQrState, bool>.internal(
ServerQrState.new, ServerQrState.new,
name: r'serverQrStateProvider', name: r'serverQrStateProvider',
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
? null ? null
: _$serverQrStateHash, : _$serverQrStateHash,
dependencies: null, dependencies: null,
allTransitiveDependencies: null, allTransitiveDependencies: null,
); );
typedef _$ServerQrState = AutoDisposeNotifier<bool>; typedef _$ServerQrState = AutoDisposeNotifier<bool>;
// ignore_for_file: type=lint // ignore_for_file: type=lint

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;
/// Create a copy of 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;
/// with the given fields replaced by the non-null parameter values. /// Create a copy of AdvancedLocalizationUIState
@JsonKey(includeFromJson: false, includeToJson: false) /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @JsonKey(includeFromJson: false, includeToJson: false)
$AdvancedLocalizationUIStateCopyWith<AdvancedLocalizationUIState> @pragma('vm:prefer-inline')
get copyWith => _$AdvancedLocalizationUIStateCopyWithImpl< $AdvancedLocalizationUIStateCopyWith<AdvancedLocalizationUIState> get copyWith => _$AdvancedLocalizationUIStateCopyWithImpl<AdvancedLocalizationUIState>(this as AdvancedLocalizationUIState, _$identity);
AdvancedLocalizationUIState>(
this as AdvancedLocalizationUIState, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode => Object.hash(
runtimeType,
workingText,
const DeepCollectionEquality().hash(classMap),
p4kGlobalIni,
serverGlobalIni,
customizeGlobalIni,
apiLocalizationData,
p4kGlobalIniLines,
serverGlobalIniLines,
errorMessage);
@override @override
String toString() { bool operator ==(Object other) {
return 'AdvancedLocalizationUIState(workingText: $workingText, classMap: $classMap, p4kGlobalIni: $p4kGlobalIni, serverGlobalIni: $serverGlobalIni, customizeGlobalIni: $customizeGlobalIni, apiLocalizationData: $apiLocalizationData, p4kGlobalIniLines: $p4kGlobalIniLines, serverGlobalIniLines: $serverGlobalIniLines, errorMessage: $errorMessage)'; 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));
} }
@override
int get hashCode => Object.hash(runtimeType,workingText,const DeepCollectionEquality().hash(classMap),p4kGlobalIni,serverGlobalIni,customizeGlobalIni,apiLocalizationData,p4kGlobalIniLines,serverGlobalIniLines,errorMessage);
@override
String toString() {
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, @useResult
$Res Function(AdvancedLocalizationUIState) _then) = $Res call({
_$AdvancedLocalizationUIStateCopyWithImpl; String workingText, Map<String, AppAdvancedLocalizationClassKeysData>? classMap, String? p4kGlobalIni, String? serverGlobalIni, String? customizeGlobalIni, ScLocalizationData? apiLocalizationData, int p4kGlobalIniLines, int serverGlobalIniLines, String errorMessage
@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> {
@@ -104,181 +60,218 @@ class _$AdvancedLocalizationUIStateCopyWithImpl<$Res>
final AdvancedLocalizationUIState _self; final AdvancedLocalizationUIState _self;
final $Res Function(AdvancedLocalizationUIState) _then; final $Res Function(AdvancedLocalizationUIState) _then;
/// 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 return _then(_self.copyWith(
$Res call({ workingText: null == workingText ? _self.workingText : workingText // ignore: cast_nullable_to_non_nullable
Object? workingText = null, as String,classMap: freezed == classMap ? _self.classMap : classMap // ignore: cast_nullable_to_non_nullable
Object? classMap = freezed, as Map<String, AppAdvancedLocalizationClassKeysData>?,p4kGlobalIni: freezed == p4kGlobalIni ? _self.p4kGlobalIni : p4kGlobalIni // ignore: cast_nullable_to_non_nullable
Object? p4kGlobalIni = freezed, as String?,serverGlobalIni: freezed == serverGlobalIni ? _self.serverGlobalIni : serverGlobalIni // ignore: cast_nullable_to_non_nullable
Object? serverGlobalIni = freezed, as String?,customizeGlobalIni: freezed == customizeGlobalIni ? _self.customizeGlobalIni : customizeGlobalIni // ignore: cast_nullable_to_non_nullable
Object? customizeGlobalIni = freezed, as String?,apiLocalizationData: freezed == apiLocalizationData ? _self.apiLocalizationData : apiLocalizationData // ignore: cast_nullable_to_non_nullable
Object? apiLocalizationData = freezed, as ScLocalizationData?,p4kGlobalIniLines: null == p4kGlobalIniLines ? _self.p4kGlobalIniLines : p4kGlobalIniLines // ignore: cast_nullable_to_non_nullable
Object? p4kGlobalIniLines = null, as int,serverGlobalIniLines: null == serverGlobalIniLines ? _self.serverGlobalIniLines : serverGlobalIniLines // ignore: cast_nullable_to_non_nullable
Object? serverGlobalIniLines = null, as int,errorMessage: null == errorMessage ? _self.errorMessage : errorMessage // ignore: cast_nullable_to_non_nullable
Object? errorMessage = null, as String,
}) { ));
return _then(_self.copyWith( }
workingText: null == workingText
? _self.workingText }
: workingText // ignore: cast_nullable_to_non_nullable
as String,
classMap: freezed == classMap /// Adds pattern-matching-related methods to [AdvancedLocalizationUIState].
? _self.classMap extension AdvancedLocalizationUIStatePatterns on AdvancedLocalizationUIState {
: classMap // ignore: cast_nullable_to_non_nullable /// A variant of `map` that fallback to returning `orElse`.
as Map<String, AppAdvancedLocalizationClassKeysData>?, ///
p4kGlobalIni: freezed == p4kGlobalIni /// It is equivalent to doing:
? _self.p4kGlobalIni /// ```dart
: p4kGlobalIni // ignore: cast_nullable_to_non_nullable /// switch (sealedClass) {
as String?, /// case final Subclass value:
serverGlobalIni: freezed == serverGlobalIni /// return ...;
? _self.serverGlobalIni /// case _:
: serverGlobalIni // ignore: cast_nullable_to_non_nullable /// return orElse();
as String?, /// }
customizeGlobalIni: freezed == customizeGlobalIni /// ```
? _self.customizeGlobalIni
: customizeGlobalIni // ignore: cast_nullable_to_non_nullable @optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _AdvancedLocalizationUIState value)? $default,{required TResult orElse(),}){
as String?, final _that = this;
apiLocalizationData: freezed == apiLocalizationData switch (_that) {
? _self.apiLocalizationData case _AdvancedLocalizationUIState() when $default != null:
: apiLocalizationData // ignore: cast_nullable_to_non_nullable return $default(_that);case _:
as ScLocalizationData?, return orElse();
p4kGlobalIniLines: null == p4kGlobalIniLines
? _self.p4kGlobalIniLines }
: p4kGlobalIniLines // ignore: cast_nullable_to_non_nullable }
as int, /// A `switch`-like method, using callbacks.
serverGlobalIniLines: null == serverGlobalIniLines ///
? _self.serverGlobalIniLines /// Callbacks receives the raw object, upcasted.
: serverGlobalIniLines // ignore: cast_nullable_to_non_nullable /// It is equivalent to doing:
as int, /// ```dart
errorMessage: null == errorMessage /// switch (sealedClass) {
? _self.errorMessage /// case final Subclass value:
: errorMessage // ignore: cast_nullable_to_non_nullable /// return ...;
as String, /// 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 { class _AdvancedLocalizationUIState implements AdvancedLocalizationUIState {
_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;
{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 @override@JsonKey() final String workingText;
@JsonKey() final Map<String, AppAdvancedLocalizationClassKeysData>? _classMap;
final String workingText; @override Map<String, AppAdvancedLocalizationClassKeysData>? get classMap {
final Map<String, AppAdvancedLocalizationClassKeysData>? _classMap; final value = _classMap;
@override if (value == null) return null;
Map<String, AppAdvancedLocalizationClassKeysData>? get classMap { if (_classMap is EqualUnmodifiableMapView) return _classMap;
final value = _classMap; // ignore: implicit_dynamic_type
if (value == null) return null; return EqualUnmodifiableMapView(value);
if (_classMap is EqualUnmodifiableMapView) return _classMap; }
// ignore: implicit_dynamic_type
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> get copyWith => __$AdvancedLocalizationUIStateCopyWithImpl<_AdvancedLocalizationUIState>(this, _$identity);
_$AdvancedLocalizationUIStateCopyWith<_AdvancedLocalizationUIState>
get copyWith => __$AdvancedLocalizationUIStateCopyWithImpl<
_AdvancedLocalizationUIState>(this, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode => Object.hash(
runtimeType,
workingText,
const DeepCollectionEquality().hash(_classMap),
p4kGlobalIni,
serverGlobalIni,
customizeGlobalIni,
apiLocalizationData,
p4kGlobalIniLines,
serverGlobalIniLines,
errorMessage);
@override @override
String toString() { bool operator ==(Object other) {
return 'AdvancedLocalizationUIState(workingText: $workingText, classMap: $classMap, p4kGlobalIni: $p4kGlobalIni, serverGlobalIni: $serverGlobalIni, customizeGlobalIni: $customizeGlobalIni, apiLocalizationData: $apiLocalizationData, p4kGlobalIniLines: $p4kGlobalIniLines, serverGlobalIniLines: $serverGlobalIniLines, errorMessage: $errorMessage)'; 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));
} }
@override
int get hashCode => Object.hash(runtimeType,workingText,const DeepCollectionEquality().hash(_classMap),p4kGlobalIni,serverGlobalIni,customizeGlobalIni,apiLocalizationData,p4kGlobalIniLines,serverGlobalIniLines,errorMessage);
@override
String toString() {
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> {
@@ -287,60 +280,24 @@ class __$AdvancedLocalizationUIStateCopyWithImpl<$Res>
final _AdvancedLocalizationUIState _self; final _AdvancedLocalizationUIState _self;
final $Res Function(_AdvancedLocalizationUIState) _then; final $Res Function(_AdvancedLocalizationUIState) _then;
/// 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') return _then(_AdvancedLocalizationUIState(
$Res call({ workingText: null == workingText ? _self.workingText : workingText // ignore: cast_nullable_to_non_nullable
Object? workingText = null, as String,classMap: freezed == classMap ? _self._classMap : classMap // ignore: cast_nullable_to_non_nullable
Object? classMap = freezed, as Map<String, AppAdvancedLocalizationClassKeysData>?,p4kGlobalIni: freezed == p4kGlobalIni ? _self.p4kGlobalIni : p4kGlobalIni // ignore: cast_nullable_to_non_nullable
Object? p4kGlobalIni = freezed, as String?,serverGlobalIni: freezed == serverGlobalIni ? _self.serverGlobalIni : serverGlobalIni // ignore: cast_nullable_to_non_nullable
Object? serverGlobalIni = freezed, as String?,customizeGlobalIni: freezed == customizeGlobalIni ? _self.customizeGlobalIni : customizeGlobalIni // ignore: cast_nullable_to_non_nullable
Object? customizeGlobalIni = freezed, as String?,apiLocalizationData: freezed == apiLocalizationData ? _self.apiLocalizationData : apiLocalizationData // ignore: cast_nullable_to_non_nullable
Object? apiLocalizationData = freezed, as ScLocalizationData?,p4kGlobalIniLines: null == p4kGlobalIniLines ? _self.p4kGlobalIniLines : p4kGlobalIniLines // ignore: cast_nullable_to_non_nullable
Object? p4kGlobalIniLines = null, as int,serverGlobalIniLines: null == serverGlobalIniLines ? _self.serverGlobalIniLines : serverGlobalIniLines // ignore: cast_nullable_to_non_nullable
Object? serverGlobalIniLines = null, as int,errorMessage: null == errorMessage ? _self.errorMessage : errorMessage // ignore: cast_nullable_to_non_nullable
Object? errorMessage = null, as String,
}) { ));
return _then(_AdvancedLocalizationUIState( }
workingText: null == workingText
? _self.workingText
: workingText // ignore: cast_nullable_to_non_nullable
as String,
classMap: freezed == classMap
? _self._classMap
: classMap // ignore: cast_nullable_to_non_nullable
as Map<String, AppAdvancedLocalizationClassKeysData>?,
p4kGlobalIni: freezed == p4kGlobalIni
? _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,
));
}
} }
// dart format on // dart format on

View File

@@ -11,18 +11,21 @@ String _$advancedLocalizationUIModelHash() =>
/// See also [AdvancedLocalizationUIModel]. /// See also [AdvancedLocalizationUIModel].
@ProviderFor(AdvancedLocalizationUIModel) @ProviderFor(AdvancedLocalizationUIModel)
final advancedLocalizationUIModelProvider = AutoDisposeNotifierProvider< final advancedLocalizationUIModelProvider =
AdvancedLocalizationUIModel, AdvancedLocalizationUIState>.internal( AutoDisposeNotifierProvider<
AdvancedLocalizationUIModel.new, AdvancedLocalizationUIModel,
name: r'advancedLocalizationUIModelProvider', AdvancedLocalizationUIState
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') >.internal(
? null AdvancedLocalizationUIModel.new,
: _$advancedLocalizationUIModelHash, name: r'advancedLocalizationUIModelProvider',
dependencies: null, debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
allTransitiveDependencies: null, ? null
); : _$advancedLocalizationUIModelHash,
dependencies: 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;
/// Create a copy of 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;
/// with the given fields replaced by the non-null parameter values. /// Create a copy of LocalizationUIState
@JsonKey(includeFromJson: false, includeToJson: false) /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @JsonKey(includeFromJson: false, includeToJson: false)
$LocalizationUIStateCopyWith<LocalizationUIState> get copyWith => @pragma('vm:prefer-inline')
_$LocalizationUIStateCopyWithImpl<LocalizationUIState>( $LocalizationUIStateCopyWith<LocalizationUIState> get copyWith => _$LocalizationUIStateCopyWithImpl<LocalizationUIState>(this as LocalizationUIState, _$identity);
this as LocalizationUIState, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode => Object.hash(
runtimeType,
selectedLanguage,
installedCommunityInputMethodSupportVersion,
communityInputMethodLanguageData,
const DeepCollectionEquality().hash(apiLocalizationData),
workingVersion,
patchStatus,
isInstalledAdvanced,
const DeepCollectionEquality().hash(customizeList));
@override @override
String toString() { bool operator ==(Object other) {
return 'LocalizationUIState(selectedLanguage: $selectedLanguage, installedCommunityInputMethodSupportVersion: $installedCommunityInputMethodSupportVersion, communityInputMethodLanguageData: $communityInputMethodLanguageData, apiLocalizationData: $apiLocalizationData, workingVersion: $workingVersion, patchStatus: $patchStatus, isInstalledAdvanced: $isInstalledAdvanced, customizeList: $customizeList)'; 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));
} }
@override
int get hashCode => Object.hash(runtimeType,selectedLanguage,installedCommunityInputMethodSupportVersion,communityInputMethodLanguageData,const DeepCollectionEquality().hash(apiLocalizationData),workingVersion,patchStatus,isInstalledAdvanced,const DeepCollectionEquality().hash(customizeList));
@override
String toString() {
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) = @useResult
_$LocalizationUIStateCopyWithImpl; $Res call({
@useResult String? selectedLanguage, String? installedCommunityInputMethodSupportVersion, InputMethodApiLanguageData? communityInputMethodLanguageData, Map<String, ScLocalizationData>? apiLocalizationData, String workingVersion, MapEntry<bool, String>? patchStatus, bool? isInstalledAdvanced, List<String>? customizeList
$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> {
@@ -102,181 +60,224 @@ class _$LocalizationUIStateCopyWithImpl<$Res>
final LocalizationUIState _self; final LocalizationUIState _self;
final $Res Function(LocalizationUIState) _then; final $Res Function(LocalizationUIState) _then;
/// 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 return _then(_self.copyWith(
$Res call({ selectedLanguage: freezed == selectedLanguage ? _self.selectedLanguage : selectedLanguage // ignore: cast_nullable_to_non_nullable
Object? selectedLanguage = freezed, as String?,installedCommunityInputMethodSupportVersion: freezed == installedCommunityInputMethodSupportVersion ? _self.installedCommunityInputMethodSupportVersion : installedCommunityInputMethodSupportVersion // ignore: cast_nullable_to_non_nullable
Object? installedCommunityInputMethodSupportVersion = freezed, as String?,communityInputMethodLanguageData: freezed == communityInputMethodLanguageData ? _self.communityInputMethodLanguageData : communityInputMethodLanguageData // ignore: cast_nullable_to_non_nullable
Object? communityInputMethodLanguageData = freezed, as InputMethodApiLanguageData?,apiLocalizationData: freezed == apiLocalizationData ? _self.apiLocalizationData : apiLocalizationData // ignore: cast_nullable_to_non_nullable
Object? apiLocalizationData = freezed, as Map<String, ScLocalizationData>?,workingVersion: null == workingVersion ? _self.workingVersion : workingVersion // ignore: cast_nullable_to_non_nullable
Object? workingVersion = null, as String,patchStatus: freezed == patchStatus ? _self.patchStatus : patchStatus // ignore: cast_nullable_to_non_nullable
Object? patchStatus = freezed, as MapEntry<bool, String>?,isInstalledAdvanced: freezed == isInstalledAdvanced ? _self.isInstalledAdvanced : isInstalledAdvanced // ignore: cast_nullable_to_non_nullable
Object? isInstalledAdvanced = freezed, as bool?,customizeList: freezed == customizeList ? _self.customizeList : customizeList // ignore: cast_nullable_to_non_nullable
Object? customizeList = freezed, as List<String>?,
}) { ));
return _then(_self.copyWith( }
selectedLanguage: freezed == selectedLanguage
? _self.selectedLanguage }
: selectedLanguage // ignore: cast_nullable_to_non_nullable
as String?,
installedCommunityInputMethodSupportVersion: freezed == /// Adds pattern-matching-related methods to [LocalizationUIState].
installedCommunityInputMethodSupportVersion extension LocalizationUIStatePatterns on LocalizationUIState {
? _self.installedCommunityInputMethodSupportVersion /// A variant of `map` that fallback to returning `orElse`.
: installedCommunityInputMethodSupportVersion // ignore: cast_nullable_to_non_nullable ///
as String?, /// It is equivalent to doing:
communityInputMethodLanguageData: freezed == /// ```dart
communityInputMethodLanguageData /// switch (sealedClass) {
? _self.communityInputMethodLanguageData /// case final Subclass value:
: communityInputMethodLanguageData // ignore: cast_nullable_to_non_nullable /// return ...;
as InputMethodApiLanguageData?, /// case _:
apiLocalizationData: freezed == apiLocalizationData /// return orElse();
? _self.apiLocalizationData /// }
: apiLocalizationData // ignore: cast_nullable_to_non_nullable /// ```
as Map<String, ScLocalizationData>?,
workingVersion: null == workingVersion @optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _LocalizationUIState value)? $default,{required TResult orElse(),}){
? _self.workingVersion final _that = this;
: workingVersion // ignore: cast_nullable_to_non_nullable switch (_that) {
as String, case _LocalizationUIState() when $default != null:
patchStatus: freezed == patchStatus return $default(_that);case _:
? _self.patchStatus return orElse();
: patchStatus // ignore: cast_nullable_to_non_nullable
as MapEntry<bool, String>?, }
isInstalledAdvanced: freezed == isInstalledAdvanced }
? _self.isInstalledAdvanced /// A `switch`-like method, using callbacks.
: isInstalledAdvanced // ignore: cast_nullable_to_non_nullable ///
as bool?, /// Callbacks receives the raw object, upcasted.
customizeList: freezed == customizeList /// It is equivalent to doing:
? _self.customizeList /// ```dart
: customizeList // ignore: cast_nullable_to_non_nullable /// switch (sealedClass) {
as List<String>?, /// 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 { class _LocalizationUIState implements LocalizationUIState {
_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;
{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 @override final String? selectedLanguage;
final String? selectedLanguage; @override final String? installedCommunityInputMethodSupportVersion;
@override @override final InputMethodApiLanguageData? communityInputMethodLanguageData;
final String? installedCommunityInputMethodSupportVersion; final Map<String, ScLocalizationData>? _apiLocalizationData;
@override @override Map<String, ScLocalizationData>? get apiLocalizationData {
final InputMethodApiLanguageData? communityInputMethodLanguageData; final value = _apiLocalizationData;
final Map<String, ScLocalizationData>? _apiLocalizationData; if (value == null) return null;
@override if (_apiLocalizationData is EqualUnmodifiableMapView) return _apiLocalizationData;
Map<String, ScLocalizationData>? get apiLocalizationData { // ignore: implicit_dynamic_type
final value = _apiLocalizationData; return EqualUnmodifiableMapView(value);
if (value == null) return null; }
if (_apiLocalizationData is EqualUnmodifiableMapView)
return _apiLocalizationData;
// ignore: implicit_dynamic_type
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 List<String>? _customizeList;
final MapEntry<bool, String>? patchStatus; @override List<String>? get customizeList {
@override final value = _customizeList;
final bool? isInstalledAdvanced; if (value == null) return null;
final List<String>? _customizeList; if (_customizeList is EqualUnmodifiableListView) return _customizeList;
@override // ignore: implicit_dynamic_type
List<String>? get customizeList { return EqualUnmodifiableListView(value);
final value = _customizeList; }
if (value == null) return null;
if (_customizeList is EqualUnmodifiableListView) return _customizeList;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(value);
}
/// Create a copy of LocalizationUIState
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$LocalizationUIStateCopyWith<_LocalizationUIState> get copyWith =>
__$LocalizationUIStateCopyWithImpl<_LocalizationUIState>(
this, _$identity);
@override /// Create a copy of LocalizationUIState
bool operator ==(Object other) { /// with the given fields replaced by the non-null parameter values.
return identical(this, other) || @override @JsonKey(includeFromJson: false, includeToJson: false)
(other.runtimeType == runtimeType && @pragma('vm:prefer-inline')
other is _LocalizationUIState && _$LocalizationUIStateCopyWith<_LocalizationUIState> get copyWith => __$LocalizationUIStateCopyWithImpl<_LocalizationUIState>(this, _$identity);
(identical(other.selectedLanguage, selectedLanguage) ||
other.selectedLanguage == selectedLanguage) &&
(identical(other.installedCommunityInputMethodSupportVersion,
installedCommunityInputMethodSupportVersion) || @override
other.installedCommunityInputMethodSupportVersion == bool operator ==(Object other) {
installedCommunityInputMethodSupportVersion) && 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));
(identical(other.communityInputMethodLanguageData, }
communityInputMethodLanguageData) ||
other.communityInputMethodLanguageData ==
communityInputMethodLanguageData) && @override
const DeepCollectionEquality() int get hashCode => Object.hash(runtimeType,selectedLanguage,installedCommunityInputMethodSupportVersion,communityInputMethodLanguageData,const DeepCollectionEquality().hash(_apiLocalizationData),workingVersion,patchStatus,isInstalledAdvanced,const DeepCollectionEquality().hash(_customizeList));
.equals(other._apiLocalizationData, _apiLocalizationData) &&
(identical(other.workingVersion, workingVersion) || @override
other.workingVersion == workingVersion) && String toString() {
(identical(other.patchStatus, patchStatus) || return 'LocalizationUIState(selectedLanguage: $selectedLanguage, installedCommunityInputMethodSupportVersion: $installedCommunityInputMethodSupportVersion, communityInputMethodLanguageData: $communityInputMethodLanguageData, apiLocalizationData: $apiLocalizationData, workingVersion: $workingVersion, patchStatus: $patchStatus, isInstalledAdvanced: $isInstalledAdvanced, customizeList: $customizeList)';
other.patchStatus == patchStatus) && }
(identical(other.isInstalledAdvanced, isInstalledAdvanced) ||
other.isInstalledAdvanced == isInstalledAdvanced) &&
const DeepCollectionEquality()
.equals(other._customizeList, _customizeList));
}
@override
int get hashCode => Object.hash(
runtimeType,
selectedLanguage,
installedCommunityInputMethodSupportVersion,
communityInputMethodLanguageData,
const DeepCollectionEquality().hash(_apiLocalizationData),
workingVersion,
patchStatus,
isInstalledAdvanced,
const DeepCollectionEquality().hash(_customizeList));
@override
String toString() {
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> {
@@ -285,57 +286,23 @@ class __$LocalizationUIStateCopyWithImpl<$Res>
final _LocalizationUIState _self; final _LocalizationUIState _self;
final $Res Function(_LocalizationUIState) _then; final $Res Function(_LocalizationUIState) _then;
/// 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') return _then(_LocalizationUIState(
$Res call({ selectedLanguage: freezed == selectedLanguage ? _self.selectedLanguage : selectedLanguage // ignore: cast_nullable_to_non_nullable
Object? selectedLanguage = freezed, as String?,installedCommunityInputMethodSupportVersion: freezed == installedCommunityInputMethodSupportVersion ? _self.installedCommunityInputMethodSupportVersion : installedCommunityInputMethodSupportVersion // ignore: cast_nullable_to_non_nullable
Object? installedCommunityInputMethodSupportVersion = freezed, as String?,communityInputMethodLanguageData: freezed == communityInputMethodLanguageData ? _self.communityInputMethodLanguageData : communityInputMethodLanguageData // ignore: cast_nullable_to_non_nullable
Object? communityInputMethodLanguageData = freezed, as InputMethodApiLanguageData?,apiLocalizationData: freezed == apiLocalizationData ? _self._apiLocalizationData : apiLocalizationData // ignore: cast_nullable_to_non_nullable
Object? apiLocalizationData = freezed, as Map<String, ScLocalizationData>?,workingVersion: null == workingVersion ? _self.workingVersion : workingVersion // ignore: cast_nullable_to_non_nullable
Object? workingVersion = null, as String,patchStatus: freezed == patchStatus ? _self.patchStatus : patchStatus // ignore: cast_nullable_to_non_nullable
Object? patchStatus = freezed, as MapEntry<bool, String>?,isInstalledAdvanced: freezed == isInstalledAdvanced ? _self.isInstalledAdvanced : isInstalledAdvanced // ignore: cast_nullable_to_non_nullable
Object? isInstalledAdvanced = freezed, as bool?,customizeList: freezed == customizeList ? _self._customizeList : customizeList // ignore: cast_nullable_to_non_nullable
Object? customizeList = freezed, as List<String>?,
}) { ));
return _then(_LocalizationUIState( }
selectedLanguage: freezed == selectedLanguage
? _self.selectedLanguage
: selectedLanguage // ignore: cast_nullable_to_non_nullable
as String?,
installedCommunityInputMethodSupportVersion: freezed ==
installedCommunityInputMethodSupportVersion
? _self.installedCommunityInputMethodSupportVersion
: installedCommunityInputMethodSupportVersion // 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>?,
));
}
} }
// dart format on // dart format on

View File

@@ -7,20 +7,23 @@ 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.new, LocalizationUIModel,
name: r'localizationUIModelProvider', LocalizationUIState
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') >.internal(
? null LocalizationUIModel.new,
: _$localizationUIModelHash, name: r'localizationUIModelProvider',
dependencies: null, debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
allTransitiveDependencies: null, ? null
); : _$localizationUIModelHash,
dependencies: null,
allTransitiveDependencies: null,
);
typedef _$LocalizationUIModel = AutoDisposeNotifier<LocalizationUIState>; typedef _$LocalizationUIModel = AutoDisposeNotifier<LocalizationUIState>;
// ignore_for_file: type=lint // ignore_for_file: type=lint

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;
/// Create a copy of HomePerformanceUIState bool get showGraphicsPerformanceTip; bool get enabled; Map<String, List<GamePerformanceData>>? get performanceMap; String get workingString;
/// with the given fields replaced by the non-null parameter values. /// Create a copy of HomePerformanceUIState
@JsonKey(includeFromJson: false, includeToJson: false) /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @JsonKey(includeFromJson: false, includeToJson: false)
$HomePerformanceUIStateCopyWith<HomePerformanceUIState> get copyWith => @pragma('vm:prefer-inline')
_$HomePerformanceUIStateCopyWithImpl<HomePerformanceUIState>( $HomePerformanceUIStateCopyWith<HomePerformanceUIState> get copyWith => _$HomePerformanceUIStateCopyWithImpl<HomePerformanceUIState>(this as HomePerformanceUIState, _$identity);
this as HomePerformanceUIState, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode => Object.hash(
runtimeType,
showGraphicsPerformanceTip,
enabled,
const DeepCollectionEquality().hash(performanceMap),
workingString);
@override @override
String toString() { bool operator ==(Object other) {
return 'HomePerformanceUIState(showGraphicsPerformanceTip: $showGraphicsPerformanceTip, enabled: $enabled, performanceMap: $performanceMap, workingString: $workingString)'; 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));
} }
@override
int get hashCode => Object.hash(runtimeType,showGraphicsPerformanceTip,enabled,const DeepCollectionEquality().hash(performanceMap),workingString);
@override
String toString() {
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) = @useResult
_$HomePerformanceUIStateCopyWithImpl; $Res call({
@useResult bool showGraphicsPerformanceTip, bool enabled, Map<String, List<GamePerformanceData>>? performanceMap, String workingString
$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> {
@@ -79,121 +60,208 @@ class _$HomePerformanceUIStateCopyWithImpl<$Res>
final HomePerformanceUIState _self; final HomePerformanceUIState _self;
final $Res Function(HomePerformanceUIState) _then; final $Res Function(HomePerformanceUIState) _then;
/// 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 return _then(_self.copyWith(
$Res call({ showGraphicsPerformanceTip: null == showGraphicsPerformanceTip ? _self.showGraphicsPerformanceTip : showGraphicsPerformanceTip // ignore: cast_nullable_to_non_nullable
Object? showGraphicsPerformanceTip = null, as bool,enabled: null == enabled ? _self.enabled : enabled // ignore: cast_nullable_to_non_nullable
Object? enabled = null, as bool,performanceMap: freezed == performanceMap ? _self.performanceMap : performanceMap // ignore: cast_nullable_to_non_nullable
Object? performanceMap = freezed, as Map<String, List<GamePerformanceData>>?,workingString: null == workingString ? _self.workingString : workingString // ignore: cast_nullable_to_non_nullable
Object? workingString = null, as String,
}) { ));
return _then(_self.copyWith( }
showGraphicsPerformanceTip: null == showGraphicsPerformanceTip
? _self.showGraphicsPerformanceTip }
: showGraphicsPerformanceTip // ignore: cast_nullable_to_non_nullable
as bool,
enabled: null == enabled /// Adds pattern-matching-related methods to [HomePerformanceUIState].
? _self.enabled extension HomePerformanceUIStatePatterns on HomePerformanceUIState {
: enabled // ignore: cast_nullable_to_non_nullable /// A variant of `map` that fallback to returning `orElse`.
as bool, ///
performanceMap: freezed == performanceMap /// It is equivalent to doing:
? _self.performanceMap /// ```dart
: performanceMap // ignore: cast_nullable_to_non_nullable /// switch (sealedClass) {
as Map<String, List<GamePerformanceData>>?, /// case final Subclass value:
workingString: null == workingString /// return ...;
? _self.workingString /// case _:
: workingString // ignore: cast_nullable_to_non_nullable /// return orElse();
as String, /// }
)); /// ```
}
@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 { class _HomePerformanceUIState implements HomePerformanceUIState {
_HomePerformanceUIState( _HomePerformanceUIState({this.showGraphicsPerformanceTip = true, this.enabled = false, final Map<String, List<GamePerformanceData>>? performanceMap, this.workingString = ""}): _performanceMap = performanceMap;
{this.showGraphicsPerformanceTip = true,
this.enabled = false,
final Map<String, List<GamePerformanceData>>? performanceMap,
this.workingString = ""})
: _performanceMap = performanceMap;
@override @override@JsonKey() final bool showGraphicsPerformanceTip;
@JsonKey() @override@JsonKey() final bool enabled;
final bool showGraphicsPerformanceTip; final Map<String, List<GamePerformanceData>>? _performanceMap;
@override @override Map<String, List<GamePerformanceData>>? get performanceMap {
@JsonKey() final value = _performanceMap;
final bool enabled; if (value == null) return null;
final Map<String, List<GamePerformanceData>>? _performanceMap; if (_performanceMap is EqualUnmodifiableMapView) return _performanceMap;
@override // ignore: implicit_dynamic_type
Map<String, List<GamePerformanceData>>? get performanceMap { return EqualUnmodifiableMapView(value);
final value = _performanceMap; }
if (value == null) return null;
if (_performanceMap is EqualUnmodifiableMapView) return _performanceMap;
// ignore: implicit_dynamic_type
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 => __$HomePerformanceUIStateCopyWithImpl<_HomePerformanceUIState>(this, _$identity);
_$HomePerformanceUIStateCopyWith<_HomePerformanceUIState> get copyWith =>
__$HomePerformanceUIStateCopyWithImpl<_HomePerformanceUIState>(
this, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode => Object.hash(
runtimeType,
showGraphicsPerformanceTip,
enabled,
const DeepCollectionEquality().hash(_performanceMap),
workingString);
@override @override
String toString() { bool operator ==(Object other) {
return 'HomePerformanceUIState(showGraphicsPerformanceTip: $showGraphicsPerformanceTip, enabled: $enabled, performanceMap: $performanceMap, workingString: $workingString)'; 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));
} }
@override
int get hashCode => Object.hash(runtimeType,showGraphicsPerformanceTip,enabled,const DeepCollectionEquality().hash(_performanceMap),workingString);
@override
String toString() {
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> {
@@ -202,35 +270,19 @@ class __$HomePerformanceUIStateCopyWithImpl<$Res>
final _HomePerformanceUIState _self; final _HomePerformanceUIState _self;
final $Res Function(_HomePerformanceUIState) _then; final $Res Function(_HomePerformanceUIState) _then;
/// 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') return _then(_HomePerformanceUIState(
$Res call({ showGraphicsPerformanceTip: null == showGraphicsPerformanceTip ? _self.showGraphicsPerformanceTip : showGraphicsPerformanceTip // ignore: cast_nullable_to_non_nullable
Object? showGraphicsPerformanceTip = null, as bool,enabled: null == enabled ? _self.enabled : enabled // ignore: cast_nullable_to_non_nullable
Object? enabled = null, as bool,performanceMap: freezed == performanceMap ? _self._performanceMap : performanceMap // ignore: cast_nullable_to_non_nullable
Object? performanceMap = freezed, as Map<String, List<GamePerformanceData>>?,workingString: null == workingString ? _self.workingString : workingString // ignore: cast_nullable_to_non_nullable
Object? workingString = null, as String,
}) { ));
return _then(_HomePerformanceUIState( }
showGraphicsPerformanceTip: null == showGraphicsPerformanceTip
? _self.showGraphicsPerformanceTip
: showGraphicsPerformanceTip // ignore: cast_nullable_to_non_nullable
as bool,
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,
));
}
} }
// dart format on // dart format on

View File

@@ -11,16 +11,19 @@ String _$homePerformanceUIModelHash() =>
/// See also [HomePerformanceUIModel]. /// See also [HomePerformanceUIModel].
@ProviderFor(HomePerformanceUIModel) @ProviderFor(HomePerformanceUIModel)
final homePerformanceUIModelProvider = AutoDisposeNotifierProvider< final homePerformanceUIModelProvider =
HomePerformanceUIModel, HomePerformanceUIState>.internal( AutoDisposeNotifierProvider<
HomePerformanceUIModel.new, HomePerformanceUIModel,
name: r'homePerformanceUIModelProvider', HomePerformanceUIState
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') >.internal(
? null HomePerformanceUIModel.new,
: _$homePerformanceUIModelHash, name: r'homePerformanceUIModelProvider',
dependencies: null, debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
allTransitiveDependencies: null, ? null
); : _$homePerformanceUIModelHash,
dependencies: null,
allTransitiveDependencies: null,
);
typedef _$HomePerformanceUIModel = AutoDisposeNotifier<HomePerformanceUIState>; typedef _$HomePerformanceUIModel = AutoDisposeNotifier<HomePerformanceUIState>;
// ignore_for_file: type=lint // ignore_for_file: type=lint

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,159 +11,272 @@ 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;
/// Create a copy of NavState List<NavApiDocsItemData>? get items; String get errorInfo;
/// with the given fields replaced by the non-null parameter values. /// Create a copy of NavState
@JsonKey(includeFromJson: false, includeToJson: false) /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @JsonKey(includeFromJson: false, includeToJson: false)
$NavStateCopyWith<NavState> get copyWith => @pragma('vm:prefer-inline')
_$NavStateCopyWithImpl<NavState>(this as NavState, _$identity); $NavStateCopyWith<NavState> get copyWith => _$NavStateCopyWithImpl<NavState>(this as NavState, _$identity);
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is NavState &&
const DeepCollectionEquality().equals(other.items, items) &&
(identical(other.errorInfo, errorInfo) ||
other.errorInfo == errorInfo));
}
@override
int get hashCode => Object.hash(
runtimeType, const DeepCollectionEquality().hash(items), errorInfo);
@override @override
String toString() { bool operator ==(Object other) {
return 'NavState(items: $items, errorInfo: $errorInfo)'; return identical(this, other) || (other.runtimeType == runtimeType&&other is NavState&&const DeepCollectionEquality().equals(other.items, items)&&(identical(other.errorInfo, errorInfo) || other.errorInfo == errorInfo));
} }
@override
int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(items),errorInfo);
@override
String toString() {
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({
$Res call({List<NavApiDocsItemData>? items, String errorInfo}); 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;
final $Res Function(NavState) _then; final $Res Function(NavState) _then;
/// 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 return _then(_self.copyWith(
$Res call({ items: freezed == items ? _self.items : items // ignore: cast_nullable_to_non_nullable
Object? items = freezed, as List<NavApiDocsItemData>?,errorInfo: null == errorInfo ? _self.errorInfo : errorInfo // ignore: cast_nullable_to_non_nullable
Object? errorInfo = null, as String,
}) { ));
return _then(_self.copyWith( }
items: freezed == items
? _self.items }
: items // ignore: cast_nullable_to_non_nullable
as List<NavApiDocsItemData>?,
errorInfo: null == errorInfo /// Adds pattern-matching-related methods to [NavState].
? _self.errorInfo extension NavStatePatterns on NavState {
: errorInfo // ignore: cast_nullable_to_non_nullable /// A variant of `map` that fallback to returning `orElse`.
as String, ///
)); /// 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; // ignore: implicit_dynamic_type
// ignore: implicit_dynamic_type 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 => __$NavStateCopyWithImpl<_NavState>(this, _$identity);
_$NavStateCopyWith<_NavState> get copyWith =>
__$NavStateCopyWithImpl<_NavState>(this, _$identity);
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _NavState &&
const DeepCollectionEquality().equals(other._items, _items) &&
(identical(other.errorInfo, errorInfo) ||
other.errorInfo == errorInfo));
}
@override
int get hashCode => Object.hash(
runtimeType, const DeepCollectionEquality().hash(_items), errorInfo);
@override @override
String toString() { bool operator ==(Object other) {
return 'NavState(items: $items, errorInfo: $errorInfo)'; return identical(this, other) || (other.runtimeType == runtimeType&&other is _NavState&&const DeepCollectionEquality().equals(other._items, _items)&&(identical(other.errorInfo, errorInfo) || other.errorInfo == errorInfo));
} }
@override
int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(_items),errorInfo);
@override
String toString() {
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;
final $Res Function(_NavState) _then; final $Res Function(_NavState) _then;
/// 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') return _then(_NavState(
$Res call({ items: freezed == items ? _self._items : items // ignore: cast_nullable_to_non_nullable
Object? items = freezed, as List<NavApiDocsItemData>?,errorInfo: null == errorInfo ? _self.errorInfo : errorInfo // ignore: cast_nullable_to_non_nullable
Object? errorInfo = null, as String,
}) { ));
return _then(_NavState( }
items: freezed == items
? _self._items
: items // ignore: cast_nullable_to_non_nullable
as List<NavApiDocsItemData>?,
errorInfo: null == errorInfo
? _self.errorInfo
: errorInfo // ignore: cast_nullable_to_non_nullable
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;
/// Create a copy of SettingsUIState bool get isEnableToolSiteMirrors; String get inputGameLaunchECore; String? get customLauncherPath; String? get customGamePath; int get locationCacheSize; bool get isUseInternalDNS;
/// with the given fields replaced by the non-null parameter values. /// Create a copy of SettingsUIState
@JsonKey(includeFromJson: false, includeToJson: false) /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @JsonKey(includeFromJson: false, includeToJson: false)
$SettingsUIStateCopyWith<SettingsUIState> get copyWith => @pragma('vm:prefer-inline')
_$SettingsUIStateCopyWithImpl<SettingsUIState>( $SettingsUIStateCopyWith<SettingsUIState> get copyWith => _$SettingsUIStateCopyWithImpl<SettingsUIState>(this as SettingsUIState, _$identity);
this as SettingsUIState, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode => Object.hash(
runtimeType,
isEnableToolSiteMirrors,
inputGameLaunchECore,
customLauncherPath,
customGamePath,
locationCacheSize,
isUseInternalDNS);
@override @override
String toString() { bool operator ==(Object other) {
return 'SettingsUIState(isEnableToolSiteMirrors: $isEnableToolSiteMirrors, inputGameLaunchECore: $inputGameLaunchECore, customLauncherPath: $customLauncherPath, customGamePath: $customGamePath, locationCacheSize: $locationCacheSize, isUseInternalDNS: $isUseInternalDNS)'; 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));
} }
@override
int get hashCode => Object.hash(runtimeType,isEnableToolSiteMirrors,inputGameLaunchECore,customLauncherPath,customGamePath,locationCacheSize,isUseInternalDNS);
@override
String toString() {
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) = @useResult
_$SettingsUIStateCopyWithImpl; $Res call({
@useResult bool isEnableToolSiteMirrors, String inputGameLaunchECore, String? customLauncherPath, String? customGamePath, int locationCacheSize, bool isUseInternalDNS
$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> {
@@ -89,136 +60,204 @@ class _$SettingsUIStateCopyWithImpl<$Res>
final SettingsUIState _self; final SettingsUIState _self;
final $Res Function(SettingsUIState) _then; final $Res Function(SettingsUIState) _then;
/// 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 return _then(_self.copyWith(
$Res call({ isEnableToolSiteMirrors: null == isEnableToolSiteMirrors ? _self.isEnableToolSiteMirrors : isEnableToolSiteMirrors // ignore: cast_nullable_to_non_nullable
Object? isEnableToolSiteMirrors = null, as bool,inputGameLaunchECore: null == inputGameLaunchECore ? _self.inputGameLaunchECore : inputGameLaunchECore // ignore: cast_nullable_to_non_nullable
Object? inputGameLaunchECore = null, as String,customLauncherPath: freezed == customLauncherPath ? _self.customLauncherPath : customLauncherPath // ignore: cast_nullable_to_non_nullable
Object? customLauncherPath = freezed, as String?,customGamePath: freezed == customGamePath ? _self.customGamePath : customGamePath // ignore: cast_nullable_to_non_nullable
Object? customGamePath = freezed, as String?,locationCacheSize: null == locationCacheSize ? _self.locationCacheSize : locationCacheSize // ignore: cast_nullable_to_non_nullable
Object? locationCacheSize = null, as int,isUseInternalDNS: null == isUseInternalDNS ? _self.isUseInternalDNS : isUseInternalDNS // ignore: cast_nullable_to_non_nullable
Object? isUseInternalDNS = null, as bool,
}) { ));
return _then(_self.copyWith( }
isEnableToolSiteMirrors: null == isEnableToolSiteMirrors
? _self.isEnableToolSiteMirrors }
: isEnableToolSiteMirrors // ignore: cast_nullable_to_non_nullable
as bool,
inputGameLaunchECore: null == inputGameLaunchECore /// Adds pattern-matching-related methods to [SettingsUIState].
? _self.inputGameLaunchECore extension SettingsUIStatePatterns on SettingsUIState {
: inputGameLaunchECore // ignore: cast_nullable_to_non_nullable /// A variant of `map` that fallback to returning `orElse`.
as String, ///
customLauncherPath: freezed == customLauncherPath /// It is equivalent to doing:
? _self.customLauncherPath /// ```dart
: customLauncherPath // ignore: cast_nullable_to_non_nullable /// switch (sealedClass) {
as String?, /// case final Subclass value:
customGamePath: freezed == customGamePath /// return ...;
? _self.customGamePath /// case _:
: customGamePath // ignore: cast_nullable_to_non_nullable /// return orElse();
as String?, /// }
locationCacheSize: null == locationCacheSize /// ```
? _self.locationCacheSize
: locationCacheSize // ignore: cast_nullable_to_non_nullable @optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _SettingsUIState value)? $default,{required TResult orElse(),}){
as int, final _that = this;
isUseInternalDNS: null == isUseInternalDNS switch (_that) {
? _self.isUseInternalDNS case _SettingsUIState() when $default != null:
: isUseInternalDNS // ignore: cast_nullable_to_non_nullable return $default(_that);case _:
as bool, 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 { class _SettingsUIState implements SettingsUIState {
_SettingsUIState( _SettingsUIState({this.isEnableToolSiteMirrors = false, this.inputGameLaunchECore = "0", this.customLauncherPath, this.customGamePath, this.locationCacheSize = 0, this.isUseInternalDNS = false});
{this.isEnableToolSiteMirrors = false,
this.inputGameLaunchECore = "0",
this.customLauncherPath,
this.customGamePath,
this.locationCacheSize = 0,
this.isUseInternalDNS = false});
@override @override@JsonKey() final bool isEnableToolSiteMirrors;
@JsonKey() @override@JsonKey() final String inputGameLaunchECore;
final bool isEnableToolSiteMirrors; @override final String? customLauncherPath;
@override @override final String? customGamePath;
@JsonKey() @override@JsonKey() final int locationCacheSize;
final String inputGameLaunchECore; @override@JsonKey() final bool isUseInternalDNS;
@override
final String? customLauncherPath;
@override
final String? customGamePath;
@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 => __$SettingsUIStateCopyWithImpl<_SettingsUIState>(this, _$identity);
_$SettingsUIStateCopyWith<_SettingsUIState> get copyWith =>
__$SettingsUIStateCopyWithImpl<_SettingsUIState>(this, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode => Object.hash(
runtimeType,
isEnableToolSiteMirrors,
inputGameLaunchECore,
customLauncherPath,
customGamePath,
locationCacheSize,
isUseInternalDNS);
@override @override
String toString() { bool operator ==(Object other) {
return 'SettingsUIState(isEnableToolSiteMirrors: $isEnableToolSiteMirrors, inputGameLaunchECore: $inputGameLaunchECore, customLauncherPath: $customLauncherPath, customGamePath: $customGamePath, locationCacheSize: $locationCacheSize, isUseInternalDNS: $isUseInternalDNS)'; 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));
} }
@override
int get hashCode => Object.hash(runtimeType,isEnableToolSiteMirrors,inputGameLaunchECore,customLauncherPath,customGamePath,locationCacheSize,isUseInternalDNS);
@override
String toString() {
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> {
@@ -227,45 +266,21 @@ class __$SettingsUIStateCopyWithImpl<$Res>
final _SettingsUIState _self; final _SettingsUIState _self;
final $Res Function(_SettingsUIState) _then; final $Res Function(_SettingsUIState) _then;
/// 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') return _then(_SettingsUIState(
$Res call({ isEnableToolSiteMirrors: null == isEnableToolSiteMirrors ? _self.isEnableToolSiteMirrors : isEnableToolSiteMirrors // ignore: cast_nullable_to_non_nullable
Object? isEnableToolSiteMirrors = null, as bool,inputGameLaunchECore: null == inputGameLaunchECore ? _self.inputGameLaunchECore : inputGameLaunchECore // ignore: cast_nullable_to_non_nullable
Object? inputGameLaunchECore = null, as String,customLauncherPath: freezed == customLauncherPath ? _self.customLauncherPath : customLauncherPath // ignore: cast_nullable_to_non_nullable
Object? customLauncherPath = freezed, as String?,customGamePath: freezed == customGamePath ? _self.customGamePath : customGamePath // ignore: cast_nullable_to_non_nullable
Object? customGamePath = freezed, as String?,locationCacheSize: null == locationCacheSize ? _self.locationCacheSize : locationCacheSize // ignore: cast_nullable_to_non_nullable
Object? locationCacheSize = null, as int,isUseInternalDNS: null == isUseInternalDNS ? _self.isUseInternalDNS : isUseInternalDNS // ignore: cast_nullable_to_non_nullable
Object? isUseInternalDNS = null, as bool,
}) { ));
return _then(_SettingsUIState( }
isEnableToolSiteMirrors: null == isEnableToolSiteMirrors
? _self.isEnableToolSiteMirrors
: isEnableToolSiteMirrors // ignore: cast_nullable_to_non_nullable
as bool,
inputGameLaunchECore: null == inputGameLaunchECore
? _self.inputGameLaunchECore
: 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,
));
}
} }
// dart format on // dart format on

View File

@@ -12,14 +12,14 @@ String _$settingsUIModelHash() => r'4b7900c3f77f4d5ff1836cbf700af374b62c943f';
@ProviderFor(SettingsUIModel) @ProviderFor(SettingsUIModel)
final settingsUIModelProvider = final settingsUIModelProvider =
AutoDisposeNotifierProvider<SettingsUIModel, SettingsUIState>.internal( AutoDisposeNotifierProvider<SettingsUIModel, SettingsUIState>.internal(
SettingsUIModel.new, SettingsUIModel.new,
name: r'settingsUIModelProvider', name: r'settingsUIModelProvider',
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
? null ? null
: _$settingsUIModelHash, : _$settingsUIModelHash,
dependencies: null, dependencies: null,
allTransitiveDependencies: null, allTransitiveDependencies: null,
); );
typedef _$SettingsUIModel = AutoDisposeNotifier<SettingsUIState>; typedef _$SettingsUIModel = AutoDisposeNotifier<SettingsUIState>;
// ignore_for_file: type=lint // ignore_for_file: type=lint

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;
/// Create a copy of RSILauncherStateData String get version; asar_api.RsiLauncherAsarData get data; String get serverData; bool get isPatchInstalled; String? get enabledLocalization; bool? get enableDownloaderBoost;
/// with the given fields replaced by the non-null parameter values. /// Create a copy of RSILauncherStateData
@JsonKey(includeFromJson: false, includeToJson: false) /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @JsonKey(includeFromJson: false, includeToJson: false)
$RSILauncherStateDataCopyWith<RSILauncherStateData> get copyWith => @pragma('vm:prefer-inline')
_$RSILauncherStateDataCopyWithImpl<RSILauncherStateData>( $RSILauncherStateDataCopyWith<RSILauncherStateData> get copyWith => _$RSILauncherStateDataCopyWithImpl<RSILauncherStateData>(this as RSILauncherStateData, _$identity);
this as RSILauncherStateData, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode => Object.hash(runtimeType, version, data, serverData,
isPatchInstalled, enabledLocalization, enableDownloaderBoost);
@override @override
String toString() { bool operator ==(Object other) {
return 'RSILauncherStateData(version: $version, data: $data, serverData: $serverData, isPatchInstalled: $isPatchInstalled, enabledLocalization: $enabledLocalization, enableDownloaderBoost: $enableDownloaderBoost)'; 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));
} }
@override
int get hashCode => Object.hash(runtimeType,version,data,serverData,isPatchInstalled,enabledLocalization,enableDownloaderBoost);
@override
String toString() {
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) = @useResult
_$RSILauncherStateDataCopyWithImpl; $Res call({
@useResult String version, asar_api.RsiLauncherAsarData data, String serverData, bool isPatchInstalled, String? enabledLocalization, bool? enableDownloaderBoost
$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> {
@@ -80,125 +60,204 @@ class _$RSILauncherStateDataCopyWithImpl<$Res>
final RSILauncherStateData _self; final RSILauncherStateData _self;
final $Res Function(RSILauncherStateData) _then; final $Res Function(RSILauncherStateData) _then;
/// 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 return _then(_self.copyWith(
$Res call({ version: null == version ? _self.version : version // ignore: cast_nullable_to_non_nullable
Object? version = null, as String,data: null == data ? _self.data : data // ignore: cast_nullable_to_non_nullable
Object? data = null, as asar_api.RsiLauncherAsarData,serverData: null == serverData ? _self.serverData : serverData // ignore: cast_nullable_to_non_nullable
Object? serverData = null, as String,isPatchInstalled: null == isPatchInstalled ? _self.isPatchInstalled : isPatchInstalled // ignore: cast_nullable_to_non_nullable
Object? isPatchInstalled = null, as bool,enabledLocalization: freezed == enabledLocalization ? _self.enabledLocalization : enabledLocalization // ignore: cast_nullable_to_non_nullable
Object? enabledLocalization = freezed, as String?,enableDownloaderBoost: freezed == enableDownloaderBoost ? _self.enableDownloaderBoost : enableDownloaderBoost // ignore: cast_nullable_to_non_nullable
Object? enableDownloaderBoost = freezed, as bool?,
}) { ));
return _then(_self.copyWith( }
version: null == version
? _self.version }
: version // ignore: cast_nullable_to_non_nullable
as String,
data: null == data /// Adds pattern-matching-related methods to [RSILauncherStateData].
? _self.data extension RSILauncherStateDataPatterns on RSILauncherStateData {
: data // ignore: cast_nullable_to_non_nullable /// A variant of `map` that fallback to returning `orElse`.
as asar_api.RsiLauncherAsarData, ///
serverData: null == serverData /// It is equivalent to doing:
? _self.serverData /// ```dart
: serverData // ignore: cast_nullable_to_non_nullable /// switch (sealedClass) {
as String, /// case final Subclass value:
isPatchInstalled: null == isPatchInstalled /// return ...;
? _self.isPatchInstalled /// case _:
: isPatchInstalled // ignore: cast_nullable_to_non_nullable /// return orElse();
as bool, /// }
enabledLocalization: freezed == enabledLocalization /// ```
? _self.enabledLocalization
: enabledLocalization // ignore: cast_nullable_to_non_nullable @optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _RSILauncherStateData value)? $default,{required TResult orElse(),}){
as String?, final _that = this;
enableDownloaderBoost: freezed == enableDownloaderBoost switch (_that) {
? _self.enableDownloaderBoost case _RSILauncherStateData() when $default != null:
: enableDownloaderBoost // ignore: cast_nullable_to_non_nullable return $default(_that);case _:
as bool?, 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 { class _RSILauncherStateData implements RSILauncherStateData {
const _RSILauncherStateData( const _RSILauncherStateData({required this.version, required this.data, required this.serverData, this.isPatchInstalled = false, this.enabledLocalization, this.enableDownloaderBoost});
{required this.version,
required this.data,
required this.serverData,
this.isPatchInstalled = false,
this.enabledLocalization,
this.enableDownloaderBoost});
@override @override final String version;
final String version; @override final asar_api.RsiLauncherAsarData data;
@override @override final String serverData;
final asar_api.RsiLauncherAsarData data; @override@JsonKey() final bool isPatchInstalled;
@override @override final String? enabledLocalization;
final String serverData; @override final bool? enableDownloaderBoost;
@override
@JsonKey()
final bool isPatchInstalled;
@override
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 => __$RSILauncherStateDataCopyWithImpl<_RSILauncherStateData>(this, _$identity);
_$RSILauncherStateDataCopyWith<_RSILauncherStateData> get copyWith =>
__$RSILauncherStateDataCopyWithImpl<_RSILauncherStateData>(
this, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode => Object.hash(runtimeType, version, data, serverData,
isPatchInstalled, enabledLocalization, enableDownloaderBoost);
@override @override
String toString() { bool operator ==(Object other) {
return 'RSILauncherStateData(version: $version, data: $data, serverData: $serverData, isPatchInstalled: $isPatchInstalled, enabledLocalization: $enabledLocalization, enableDownloaderBoost: $enableDownloaderBoost)'; 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));
} }
@override
int get hashCode => Object.hash(runtimeType,version,data,serverData,isPatchInstalled,enabledLocalization,enableDownloaderBoost);
@override
String toString() {
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> {
@@ -207,45 +266,21 @@ class __$RSILauncherStateDataCopyWithImpl<$Res>
final _RSILauncherStateData _self; final _RSILauncherStateData _self;
final $Res Function(_RSILauncherStateData) _then; final $Res Function(_RSILauncherStateData) _then;
/// 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') return _then(_RSILauncherStateData(
$Res call({ version: null == version ? _self.version : version // ignore: cast_nullable_to_non_nullable
Object? version = null, as String,data: null == data ? _self.data : data // ignore: cast_nullable_to_non_nullable
Object? data = null, as asar_api.RsiLauncherAsarData,serverData: null == serverData ? _self.serverData : serverData // ignore: cast_nullable_to_non_nullable
Object? serverData = null, as String,isPatchInstalled: null == isPatchInstalled ? _self.isPatchInstalled : isPatchInstalled // ignore: cast_nullable_to_non_nullable
Object? isPatchInstalled = null, as bool,enabledLocalization: freezed == enabledLocalization ? _self.enabledLocalization : enabledLocalization // ignore: cast_nullable_to_non_nullable
Object? enabledLocalization = freezed, as String?,enableDownloaderBoost: freezed == enableDownloaderBoost ? _self.enableDownloaderBoost : enableDownloaderBoost // ignore: cast_nullable_to_non_nullable
Object? enableDownloaderBoost = freezed, as bool?,
}) { ));
return _then(_RSILauncherStateData( }
version: null == version
? _self.version
: version // ignore: cast_nullable_to_non_nullable
as String,
data: null == data
? _self.data
: 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?,
));
}
} }
// 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,52 +11,47 @@ 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;
/// Create a copy of LogAnalyzeLineData String get type; String get title; String? get data; String? get dateTime;
/// with the given fields replaced by the non-null parameter values. /// Create a copy of LogAnalyzeLineData
@JsonKey(includeFromJson: false, includeToJson: false) /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @JsonKey(includeFromJson: false, includeToJson: false)
$LogAnalyzeLineDataCopyWith<LogAnalyzeLineData> get copyWith => @pragma('vm:prefer-inline')
_$LogAnalyzeLineDataCopyWithImpl<LogAnalyzeLineData>( $LogAnalyzeLineDataCopyWith<LogAnalyzeLineData> get copyWith => _$LogAnalyzeLineDataCopyWithImpl<LogAnalyzeLineData>(this as LogAnalyzeLineData, _$identity);
this as LogAnalyzeLineData, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode => Object.hash(runtimeType, type, title, data, dateTime);
@override @override
String toString() { bool operator ==(Object other) {
return 'LogAnalyzeLineData(type: $type, title: $title, data: $data, dateTime: $dateTime)'; 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));
} }
@override
int get hashCode => Object.hash(runtimeType,type,title,data,dateTime);
@override
String toString() {
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) = @useResult
_$LogAnalyzeLineDataCopyWithImpl; $Res call({
@useResult 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> {
@@ -66,92 +60,200 @@ class _$LogAnalyzeLineDataCopyWithImpl<$Res>
final LogAnalyzeLineData _self; final LogAnalyzeLineData _self;
final $Res Function(LogAnalyzeLineData) _then; final $Res Function(LogAnalyzeLineData) _then;
/// 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 return _then(_self.copyWith(
$Res call({ type: null == type ? _self.type : type // ignore: cast_nullable_to_non_nullable
Object? type = null, as String,title: null == title ? _self.title : title // ignore: cast_nullable_to_non_nullable
Object? title = null, as String,data: freezed == data ? _self.data : data // ignore: cast_nullable_to_non_nullable
Object? data = freezed, as String?,dateTime: freezed == dateTime ? _self.dateTime : dateTime // ignore: cast_nullable_to_non_nullable
Object? dateTime = freezed, as String?,
}) { ));
return _then(_self.copyWith( }
type: null == type
? _self.type }
: type // ignore: cast_nullable_to_non_nullable
as String,
title: null == title /// Adds pattern-matching-related methods to [LogAnalyzeLineData].
? _self.title extension LogAnalyzeLineDataPatterns on LogAnalyzeLineData {
: title // ignore: cast_nullable_to_non_nullable /// A variant of `map` that fallback to returning `orElse`.
as String, ///
data: freezed == data /// It is equivalent to doing:
? _self.data /// ```dart
: data // ignore: cast_nullable_to_non_nullable /// switch (sealedClass) {
as String?, /// case final Subclass value:
dateTime: freezed == dateTime /// return ...;
? _self.dateTime /// case _:
: dateTime // ignore: cast_nullable_to_non_nullable /// return orElse();
as String?, /// }
)); /// ```
}
@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 { class _LogAnalyzeLineData implements LogAnalyzeLineData {
const _LogAnalyzeLineData( const _LogAnalyzeLineData({required this.type, required this.title, this.data, this.dateTime});
{required this.type, required this.title, this.data, this.dateTime});
@override @override final String type;
final String type; @override final String title;
@override @override final String? data;
final String title; @override final String? dateTime;
@override
final String? data;
@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 => __$LogAnalyzeLineDataCopyWithImpl<_LogAnalyzeLineData>(this, _$identity);
_$LogAnalyzeLineDataCopyWith<_LogAnalyzeLineData> get copyWith =>
__$LogAnalyzeLineDataCopyWithImpl<_LogAnalyzeLineData>(this, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode => Object.hash(runtimeType, type, title, data, dateTime);
@override @override
String toString() { bool operator ==(Object other) {
return 'LogAnalyzeLineData(type: $type, title: $title, data: $data, dateTime: $dateTime)'; 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));
} }
@override
int get hashCode => Object.hash(runtimeType,type,title,data,dateTime);
@override
String toString() {
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> {
@@ -160,35 +262,19 @@ class __$LogAnalyzeLineDataCopyWithImpl<$Res>
final _LogAnalyzeLineData _self; final _LogAnalyzeLineData _self;
final $Res Function(_LogAnalyzeLineData) _then; final $Res Function(_LogAnalyzeLineData) _then;
/// 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') return _then(_LogAnalyzeLineData(
$Res call({ type: null == type ? _self.type : type // ignore: cast_nullable_to_non_nullable
Object? type = null, as String,title: null == title ? _self.title : title // ignore: cast_nullable_to_non_nullable
Object? title = null, as String,data: freezed == data ? _self.data : data // ignore: cast_nullable_to_non_nullable
Object? data = freezed, as String?,dateTime: freezed == dateTime ? _self.dateTime : dateTime // ignore: cast_nullable_to_non_nullable
Object? dateTime = freezed, as String?,
}) { ));
return _then(_LogAnalyzeLineData( }
type: null == type
? _self.type
: type // ignore: cast_nullable_to_non_nullable
as String,
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?,
));
}
} }
// 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,28 +78,29 @@ 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, () => ToolsLogAnalyze()
) : this._internal( ..gameInstallPath = gameInstallPath
() => ToolsLogAnalyze() ..listSortReverse = listSortReverse,
..gameInstallPath = gameInstallPath from: toolsLogAnalyzeProvider,
..listSortReverse = listSortReverse, name: r'toolsLogAnalyzeProvider',
from: toolsLogAnalyzeProvider, debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
name: r'toolsLogAnalyzeProvider', ? null
debugGetCreateSourceHash: : _$toolsLogAnalyzeHash,
const bool.fromEnvironment('dart.vm.product') dependencies: ToolsLogAnalyzeFamily._dependencies,
? null allTransitiveDependencies:
: _$toolsLogAnalyzeHash, ToolsLogAnalyzeFamily._allTransitiveDependencies,
dependencies: ToolsLogAnalyzeFamily._dependencies, gameInstallPath: gameInstallPath,
allTransitiveDependencies: listSortReverse: listSortReverse,
ToolsLogAnalyzeFamily._allTransitiveDependencies, );
gameInstallPath: gameInstallPath,
listSortReverse: listSortReverse,
);
ToolsLogAnalyzeProvider._internal( ToolsLogAnalyzeProvider._internal(
super._createNotifier, { super._createNotifier, {
@@ -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,250 +11,273 @@ 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;
/// Create a copy of 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;
/// with the given fields replaced by the non-null parameter values. /// Create a copy of ToolsUIState
@JsonKey(includeFromJson: false, includeToJson: false) /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @JsonKey(includeFromJson: false, includeToJson: false)
$ToolsUIStateCopyWith<ToolsUIState> get copyWith => @pragma('vm:prefer-inline')
_$ToolsUIStateCopyWithImpl<ToolsUIState>( $ToolsUIStateCopyWith<ToolsUIState> get copyWith => _$ToolsUIStateCopyWithImpl<ToolsUIState>(this as ToolsUIState, _$identity);
this as ToolsUIState, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode => Object.hash(
runtimeType,
working,
scInstalledPath,
rsiLauncherInstalledPath,
const DeepCollectionEquality().hash(scInstallPaths),
const DeepCollectionEquality().hash(rsiLauncherInstallPaths),
const DeepCollectionEquality().hash(items),
isItemLoading);
@override @override
String toString() { bool operator ==(Object other) {
return 'ToolsUIState(working: $working, scInstalledPath: $scInstalledPath, rsiLauncherInstalledPath: $rsiLauncherInstalledPath, scInstallPaths: $scInstallPaths, rsiLauncherInstallPaths: $rsiLauncherInstallPaths, items: $items, isItemLoading: $isItemLoading)'; 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));
} }
@override
int get hashCode => Object.hash(runtimeType,working,scInstalledPath,rsiLauncherInstalledPath,const DeepCollectionEquality().hash(scInstallPaths),const DeepCollectionEquality().hash(rsiLauncherInstallPaths),const DeepCollectionEquality().hash(items),isItemLoading);
@override
String toString() {
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) = @useResult
_$ToolsUIStateCopyWithImpl; $Res call({
@useResult bool working, String scInstalledPath, String rsiLauncherInstalledPath, List<String> scInstallPaths, List<String> rsiLauncherInstallPaths, List<ToolsItemData> items, bool isItemLoading
$Res call( });
{bool working,
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;
final $Res Function(ToolsUIState) _then; final $Res Function(ToolsUIState) _then;
/// 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 return _then(_self.copyWith(
$Res call({ working: null == working ? _self.working : working // ignore: cast_nullable_to_non_nullable
Object? working = null, as bool,scInstalledPath: null == scInstalledPath ? _self.scInstalledPath : scInstalledPath // ignore: cast_nullable_to_non_nullable
Object? scInstalledPath = null, as String,rsiLauncherInstalledPath: null == rsiLauncherInstalledPath ? _self.rsiLauncherInstalledPath : rsiLauncherInstalledPath // ignore: cast_nullable_to_non_nullable
Object? rsiLauncherInstalledPath = null, as String,scInstallPaths: null == scInstallPaths ? _self.scInstallPaths : scInstallPaths // ignore: cast_nullable_to_non_nullable
Object? scInstallPaths = null, as List<String>,rsiLauncherInstallPaths: null == rsiLauncherInstallPaths ? _self.rsiLauncherInstallPaths : rsiLauncherInstallPaths // ignore: cast_nullable_to_non_nullable
Object? rsiLauncherInstallPaths = null, as List<String>,items: null == items ? _self.items : items // ignore: cast_nullable_to_non_nullable
Object? items = null, as List<ToolsItemData>,isItemLoading: null == isItemLoading ? _self.isItemLoading : isItemLoading // ignore: cast_nullable_to_non_nullable
Object? isItemLoading = null, as bool,
}) { ));
return _then(_self.copyWith( }
working: null == working
? _self.working }
: working // ignore: cast_nullable_to_non_nullable
as bool,
scInstalledPath: null == scInstalledPath /// Adds pattern-matching-related methods to [ToolsUIState].
? _self.scInstalledPath extension ToolsUIStatePatterns on ToolsUIState {
: scInstalledPath // ignore: cast_nullable_to_non_nullable /// A variant of `map` that fallback to returning `orElse`.
as String, ///
rsiLauncherInstalledPath: null == rsiLauncherInstalledPath /// It is equivalent to doing:
? _self.rsiLauncherInstalledPath /// ```dart
: rsiLauncherInstalledPath // ignore: cast_nullable_to_non_nullable /// switch (sealedClass) {
as String, /// case final Subclass value:
scInstallPaths: null == scInstallPaths /// return ...;
? _self.scInstallPaths /// case _:
: scInstallPaths // ignore: cast_nullable_to_non_nullable /// return orElse();
as List<String>, /// }
rsiLauncherInstallPaths: null == rsiLauncherInstallPaths /// ```
? _self.rsiLauncherInstallPaths
: rsiLauncherInstallPaths // ignore: cast_nullable_to_non_nullable @optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _ToolsUIState value)? $default,{required TResult orElse(),}){
as List<String>, final _that = this;
items: null == items switch (_that) {
? _self.items case _ToolsUIState() when $default != null:
: items // ignore: cast_nullable_to_non_nullable return $default(_that);case _:
as List<ToolsItemData>, return orElse();
isItemLoading: null == isItemLoading
? _self.isItemLoading }
: isItemLoading // ignore: cast_nullable_to_non_nullable }
as bool, /// 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 { class _ToolsUIState implements ToolsUIState {
_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;
{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 @override@JsonKey() final bool working;
@JsonKey() @override@JsonKey() final String scInstalledPath;
final bool working; @override@JsonKey() final String rsiLauncherInstalledPath;
@override final List<String> _scInstallPaths;
@JsonKey() @override@JsonKey() List<String> get scInstallPaths {
final String scInstalledPath; if (_scInstallPaths is EqualUnmodifiableListView) return _scInstallPaths;
@override // ignore: implicit_dynamic_type
@JsonKey() return EqualUnmodifiableListView(_scInstallPaths);
final String rsiLauncherInstalledPath; }
final List<String> _scInstallPaths;
@override
@JsonKey()
List<String> get scInstallPaths {
if (_scInstallPaths is EqualUnmodifiableListView) return _scInstallPaths;
// ignore: implicit_dynamic_type
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 { // ignore: implicit_dynamic_type
if (_rsiLauncherInstallPaths is EqualUnmodifiableListView) return EqualUnmodifiableListView(_rsiLauncherInstallPaths);
return _rsiLauncherInstallPaths; }
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_rsiLauncherInstallPaths);
}
final List<ToolsItemData> _items; final List<ToolsItemData> _items;
@override @override@JsonKey() List<ToolsItemData> get items {
@JsonKey() if (_items is EqualUnmodifiableListView) return _items;
List<ToolsItemData> get items { // ignore: implicit_dynamic_type
if (_items is EqualUnmodifiableListView) return _items; return EqualUnmodifiableListView(_items);
// ignore: implicit_dynamic_type }
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 => __$ToolsUIStateCopyWithImpl<_ToolsUIState>(this, _$identity);
_$ToolsUIStateCopyWith<_ToolsUIState> get copyWith =>
__$ToolsUIStateCopyWithImpl<_ToolsUIState>(this, _$identity);
@override
bool operator ==(Object 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));
}
@override
int get hashCode => Object.hash(
runtimeType,
working,
scInstalledPath,
rsiLauncherInstalledPath,
const DeepCollectionEquality().hash(_scInstallPaths),
const DeepCollectionEquality().hash(_rsiLauncherInstallPaths),
const DeepCollectionEquality().hash(_items),
isItemLoading);
@override @override
String toString() { bool operator ==(Object other) {
return 'ToolsUIState(working: $working, scInstalledPath: $scInstalledPath, rsiLauncherInstalledPath: $rsiLauncherInstalledPath, scInstallPaths: $scInstallPaths, rsiLauncherInstallPaths: $rsiLauncherInstallPaths, items: $items, isItemLoading: $isItemLoading)'; 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));
} }
@override
int get hashCode => Object.hash(runtimeType,working,scInstalledPath,rsiLauncherInstalledPath,const DeepCollectionEquality().hash(_scInstallPaths),const DeepCollectionEquality().hash(_rsiLauncherInstallPaths),const DeepCollectionEquality().hash(_items),isItemLoading);
@override
String toString() {
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> {
@@ -264,50 +286,22 @@ class __$ToolsUIStateCopyWithImpl<$Res>
final _ToolsUIState _self; final _ToolsUIState _self;
final $Res Function(_ToolsUIState) _then; final $Res Function(_ToolsUIState) _then;
/// 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') return _then(_ToolsUIState(
$Res call({ working: null == working ? _self.working : working // ignore: cast_nullable_to_non_nullable
Object? working = null, as bool,scInstalledPath: null == scInstalledPath ? _self.scInstalledPath : scInstalledPath // ignore: cast_nullable_to_non_nullable
Object? scInstalledPath = null, as String,rsiLauncherInstalledPath: null == rsiLauncherInstalledPath ? _self.rsiLauncherInstalledPath : rsiLauncherInstalledPath // ignore: cast_nullable_to_non_nullable
Object? rsiLauncherInstalledPath = null, as String,scInstallPaths: null == scInstallPaths ? _self._scInstallPaths : scInstallPaths // ignore: cast_nullable_to_non_nullable
Object? scInstallPaths = null, as List<String>,rsiLauncherInstallPaths: null == rsiLauncherInstallPaths ? _self._rsiLauncherInstallPaths : rsiLauncherInstallPaths // ignore: cast_nullable_to_non_nullable
Object? rsiLauncherInstallPaths = null, as List<String>,items: null == items ? _self._items : items // ignore: cast_nullable_to_non_nullable
Object? items = null, as List<ToolsItemData>,isItemLoading: null == isItemLoading ? _self.isItemLoading : isItemLoading // ignore: cast_nullable_to_non_nullable
Object? isItemLoading = null, as bool,
}) { ));
return _then(_ToolsUIState( }
working: null == working
? _self.working
: working // ignore: cast_nullable_to_non_nullable
as bool,
scInstalledPath: null == scInstalledPath
? _self.scInstalledPath
: scInstalledPath // 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,
));
}
} }
// dart format on // dart format on

View File

@@ -12,13 +12,14 @@ String _$toolsUIModelHash() => r'c8830e26df6c0ee572dd5e78c4ccef3317f8b4e6';
@ProviderFor(ToolsUIModel) @ProviderFor(ToolsUIModel)
final toolsUIModelProvider = 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
dependencies: null, : _$toolsUIModelHash,
allTransitiveDependencies: null, dependencies: null,
); allTransitiveDependencies: null,
);
typedef _$ToolsUIModel = AutoDisposeNotifier<ToolsUIState>; typedef _$ToolsUIModel = AutoDisposeNotifier<ToolsUIState>;
// ignore_for_file: type=lint // ignore_for_file: type=lint

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