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
// coverage:ignore-file
// 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
@@ -12,65 +11,47 @@ part of 'performance_ui_model.dart';
// dart format off
T _$identity<T>(T value) => value;
/// @nodoc
mixin _$HomePerformanceUIState {
bool get showGraphicsPerformanceTip;
bool get enabled;
Map<String, List<GamePerformanceData>>? get performanceMap;
String get workingString;
/// Create a copy of HomePerformanceUIState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$HomePerformanceUIStateCopyWith<HomePerformanceUIState> get copyWith =>
_$HomePerformanceUIStateCopyWithImpl<HomePerformanceUIState>(
this as HomePerformanceUIState, _$identity);
bool get showGraphicsPerformanceTip; bool get enabled; Map<String, List<GamePerformanceData>>? get performanceMap; String get workingString;
/// Create a copy of HomePerformanceUIState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$HomePerformanceUIStateCopyWith<HomePerformanceUIState> get copyWith => _$HomePerformanceUIStateCopyWithImpl<HomePerformanceUIState>(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
String toString() {
return 'HomePerformanceUIState(showGraphicsPerformanceTip: $showGraphicsPerformanceTip, enabled: $enabled, performanceMap: $performanceMap, workingString: $workingString)';
}
@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
String toString() {
return 'HomePerformanceUIState(showGraphicsPerformanceTip: $showGraphicsPerformanceTip, enabled: $enabled, performanceMap: $performanceMap, workingString: $workingString)';
}
}
/// @nodoc
abstract mixin class $HomePerformanceUIStateCopyWith<$Res> {
factory $HomePerformanceUIStateCopyWith(HomePerformanceUIState value,
$Res Function(HomePerformanceUIState) _then) =
_$HomePerformanceUIStateCopyWithImpl;
@useResult
$Res call(
{bool showGraphicsPerformanceTip,
bool enabled,
Map<String, List<GamePerformanceData>>? performanceMap,
String workingString});
}
abstract mixin class $HomePerformanceUIStateCopyWith<$Res> {
factory $HomePerformanceUIStateCopyWith(HomePerformanceUIState value, $Res Function(HomePerformanceUIState) _then) = _$HomePerformanceUIStateCopyWithImpl;
@useResult
$Res call({
bool showGraphicsPerformanceTip, bool enabled, Map<String, List<GamePerformanceData>>? performanceMap, String workingString
});
}
/// @nodoc
class _$HomePerformanceUIStateCopyWithImpl<$Res>
implements $HomePerformanceUIStateCopyWith<$Res> {
@@ -79,121 +60,208 @@ class _$HomePerformanceUIStateCopyWithImpl<$Res>
final HomePerformanceUIState _self;
final $Res Function(HomePerformanceUIState) _then;
/// Create a copy of HomePerformanceUIState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? showGraphicsPerformanceTip = null,
Object? enabled = null,
Object? performanceMap = freezed,
Object? workingString = null,
}) {
return _then(_self.copyWith(
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,
));
}
/// Create a copy of HomePerformanceUIState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? showGraphicsPerformanceTip = null,Object? enabled = null,Object? performanceMap = freezed,Object? workingString = null,}) {
return _then(_self.copyWith(
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,
));
}
}
/// Adds pattern-matching-related methods to [HomePerformanceUIState].
extension HomePerformanceUIStatePatterns on HomePerformanceUIState {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _HomePerformanceUIState value)? $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _HomePerformanceUIState() when $default != null:
return $default(_that);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _HomePerformanceUIState value) $default,){
final _that = this;
switch (_that) {
case _HomePerformanceUIState():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _HomePerformanceUIState value)? $default,){
final _that = this;
switch (_that) {
case _HomePerformanceUIState() when $default != null:
return $default(_that);case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( bool showGraphicsPerformanceTip, bool enabled, Map<String, List<GamePerformanceData>>? performanceMap, String workingString)? $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _HomePerformanceUIState() when $default != null:
return $default(_that.showGraphicsPerformanceTip,_that.enabled,_that.performanceMap,_that.workingString);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( bool showGraphicsPerformanceTip, bool enabled, Map<String, List<GamePerformanceData>>? performanceMap, String workingString) $default,) {final _that = this;
switch (_that) {
case _HomePerformanceUIState():
return $default(_that.showGraphicsPerformanceTip,_that.enabled,_that.performanceMap,_that.workingString);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( bool showGraphicsPerformanceTip, bool enabled, Map<String, List<GamePerformanceData>>? performanceMap, String workingString)? $default,) {final _that = this;
switch (_that) {
case _HomePerformanceUIState() when $default != null:
return $default(_that.showGraphicsPerformanceTip,_that.enabled,_that.performanceMap,_that.workingString);case _:
return null;
}
}
}
/// @nodoc
class _HomePerformanceUIState implements HomePerformanceUIState {
_HomePerformanceUIState(
{this.showGraphicsPerformanceTip = true,
this.enabled = false,
final Map<String, List<GamePerformanceData>>? performanceMap,
this.workingString = ""})
: _performanceMap = performanceMap;
_HomePerformanceUIState({this.showGraphicsPerformanceTip = true, this.enabled = false, final Map<String, List<GamePerformanceData>>? performanceMap, this.workingString = ""}): _performanceMap = performanceMap;
@override
@JsonKey()
final bool showGraphicsPerformanceTip;
@override
@JsonKey()
final bool enabled;
final Map<String, List<GamePerformanceData>>? _performanceMap;
@override
Map<String, List<GamePerformanceData>>? get performanceMap {
final value = _performanceMap;
if (value == null) return null;
if (_performanceMap is EqualUnmodifiableMapView) return _performanceMap;
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView(value);
}
@override@JsonKey() final bool showGraphicsPerformanceTip;
@override@JsonKey() final bool enabled;
final Map<String, List<GamePerformanceData>>? _performanceMap;
@override Map<String, List<GamePerformanceData>>? get performanceMap {
final value = _performanceMap;
if (value == null) return null;
if (_performanceMap is EqualUnmodifiableMapView) return _performanceMap;
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView(value);
}
@override
@JsonKey()
final String workingString;
@override@JsonKey() final String workingString;
/// Create a copy of HomePerformanceUIState
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$HomePerformanceUIStateCopyWith<_HomePerformanceUIState> get copyWith =>
__$HomePerformanceUIStateCopyWithImpl<_HomePerformanceUIState>(
this, _$identity);
/// Create a copy of HomePerformanceUIState
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$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
String toString() {
return 'HomePerformanceUIState(showGraphicsPerformanceTip: $showGraphicsPerformanceTip, enabled: $enabled, performanceMap: $performanceMap, workingString: $workingString)';
}
@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
String toString() {
return 'HomePerformanceUIState(showGraphicsPerformanceTip: $showGraphicsPerformanceTip, enabled: $enabled, performanceMap: $performanceMap, workingString: $workingString)';
}
}
/// @nodoc
abstract mixin class _$HomePerformanceUIStateCopyWith<$Res>
implements $HomePerformanceUIStateCopyWith<$Res> {
factory _$HomePerformanceUIStateCopyWith(_HomePerformanceUIState value,
$Res Function(_HomePerformanceUIState) _then) =
__$HomePerformanceUIStateCopyWithImpl;
@override
@useResult
$Res call(
{bool showGraphicsPerformanceTip,
bool enabled,
Map<String, List<GamePerformanceData>>? performanceMap,
String workingString});
}
abstract mixin class _$HomePerformanceUIStateCopyWith<$Res> implements $HomePerformanceUIStateCopyWith<$Res> {
factory _$HomePerformanceUIStateCopyWith(_HomePerformanceUIState value, $Res Function(_HomePerformanceUIState) _then) = __$HomePerformanceUIStateCopyWithImpl;
@override @useResult
$Res call({
bool showGraphicsPerformanceTip, bool enabled, Map<String, List<GamePerformanceData>>? performanceMap, String workingString
});
}
/// @nodoc
class __$HomePerformanceUIStateCopyWithImpl<$Res>
implements _$HomePerformanceUIStateCopyWith<$Res> {
@@ -202,35 +270,19 @@ class __$HomePerformanceUIStateCopyWithImpl<$Res>
final _HomePerformanceUIState _self;
final $Res Function(_HomePerformanceUIState) _then;
/// Create a copy of HomePerformanceUIState
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$Res call({
Object? showGraphicsPerformanceTip = null,
Object? enabled = null,
Object? performanceMap = freezed,
Object? workingString = null,
}) {
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,
));
}
/// Create a copy of HomePerformanceUIState
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? showGraphicsPerformanceTip = null,Object? enabled = null,Object? performanceMap = freezed,Object? workingString = null,}) {
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

View File

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