Refactoring
Some checks failed
Build Linux App / build (push) Failing after 1m33s

This commit is contained in:
2026-02-23 10:02:23 -05:00
parent 21f1387fa8
commit 0c9eb8878d
57 changed files with 8179 additions and 1114 deletions

View File

@@ -0,0 +1,263 @@
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
part of 'ai_model_settings_state.dart';
// **************************************************************************
// FreezedGenerator
// **************************************************************************
T _$identity<T>(T value) => value;
final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models',
);
/// @nodoc
mixin _$AiModelSettingsState {
bool get isDownloading => throw _privateConstructorUsedError;
double get progress => throw _privateConstructorUsedError;
String get currentTask => throw _privateConstructorUsedError;
bool get areModelsValidated => throw _privateConstructorUsedError;
String? get errorMessage => throw _privateConstructorUsedError;
/// Create a copy of AiModelSettingsState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$AiModelSettingsStateCopyWith<AiModelSettingsState> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $AiModelSettingsStateCopyWith<$Res> {
factory $AiModelSettingsStateCopyWith(
AiModelSettingsState value,
$Res Function(AiModelSettingsState) then,
) = _$AiModelSettingsStateCopyWithImpl<$Res, AiModelSettingsState>;
@useResult
$Res call({
bool isDownloading,
double progress,
String currentTask,
bool areModelsValidated,
String? errorMessage,
});
}
/// @nodoc
class _$AiModelSettingsStateCopyWithImpl<
$Res,
$Val extends AiModelSettingsState
>
implements $AiModelSettingsStateCopyWith<$Res> {
_$AiModelSettingsStateCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of AiModelSettingsState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? isDownloading = null,
Object? progress = null,
Object? currentTask = null,
Object? areModelsValidated = null,
Object? errorMessage = freezed,
}) {
return _then(
_value.copyWith(
isDownloading: null == isDownloading
? _value.isDownloading
: isDownloading // ignore: cast_nullable_to_non_nullable
as bool,
progress: null == progress
? _value.progress
: progress // ignore: cast_nullable_to_non_nullable
as double,
currentTask: null == currentTask
? _value.currentTask
: currentTask // ignore: cast_nullable_to_non_nullable
as String,
areModelsValidated: null == areModelsValidated
? _value.areModelsValidated
: areModelsValidated // ignore: cast_nullable_to_non_nullable
as bool,
errorMessage: freezed == errorMessage
? _value.errorMessage
: errorMessage // ignore: cast_nullable_to_non_nullable
as String?,
)
as $Val,
);
}
}
/// @nodoc
abstract class _$$AiModelSettingsStateImplCopyWith<$Res>
implements $AiModelSettingsStateCopyWith<$Res> {
factory _$$AiModelSettingsStateImplCopyWith(
_$AiModelSettingsStateImpl value,
$Res Function(_$AiModelSettingsStateImpl) then,
) = __$$AiModelSettingsStateImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({
bool isDownloading,
double progress,
String currentTask,
bool areModelsValidated,
String? errorMessage,
});
}
/// @nodoc
class __$$AiModelSettingsStateImplCopyWithImpl<$Res>
extends _$AiModelSettingsStateCopyWithImpl<$Res, _$AiModelSettingsStateImpl>
implements _$$AiModelSettingsStateImplCopyWith<$Res> {
__$$AiModelSettingsStateImplCopyWithImpl(
_$AiModelSettingsStateImpl _value,
$Res Function(_$AiModelSettingsStateImpl) _then,
) : super(_value, _then);
/// Create a copy of AiModelSettingsState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? isDownloading = null,
Object? progress = null,
Object? currentTask = null,
Object? areModelsValidated = null,
Object? errorMessage = freezed,
}) {
return _then(
_$AiModelSettingsStateImpl(
isDownloading: null == isDownloading
? _value.isDownloading
: isDownloading // ignore: cast_nullable_to_non_nullable
as bool,
progress: null == progress
? _value.progress
: progress // ignore: cast_nullable_to_non_nullable
as double,
currentTask: null == currentTask
? _value.currentTask
: currentTask // ignore: cast_nullable_to_non_nullable
as String,
areModelsValidated: null == areModelsValidated
? _value.areModelsValidated
: areModelsValidated // ignore: cast_nullable_to_non_nullable
as bool,
errorMessage: freezed == errorMessage
? _value.errorMessage
: errorMessage // ignore: cast_nullable_to_non_nullable
as String?,
),
);
}
}
/// @nodoc
class _$AiModelSettingsStateImpl implements _AiModelSettingsState {
const _$AiModelSettingsStateImpl({
this.isDownloading = false,
this.progress = 0.0,
this.currentTask = '',
this.areModelsValidated = false,
this.errorMessage,
});
@override
@JsonKey()
final bool isDownloading;
@override
@JsonKey()
final double progress;
@override
@JsonKey()
final String currentTask;
@override
@JsonKey()
final bool areModelsValidated;
@override
final String? errorMessage;
@override
String toString() {
return 'AiModelSettingsState(isDownloading: $isDownloading, progress: $progress, currentTask: $currentTask, areModelsValidated: $areModelsValidated, errorMessage: $errorMessage)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$AiModelSettingsStateImpl &&
(identical(other.isDownloading, isDownloading) ||
other.isDownloading == isDownloading) &&
(identical(other.progress, progress) ||
other.progress == progress) &&
(identical(other.currentTask, currentTask) ||
other.currentTask == currentTask) &&
(identical(other.areModelsValidated, areModelsValidated) ||
other.areModelsValidated == areModelsValidated) &&
(identical(other.errorMessage, errorMessage) ||
other.errorMessage == errorMessage));
}
@override
int get hashCode => Object.hash(
runtimeType,
isDownloading,
progress,
currentTask,
areModelsValidated,
errorMessage,
);
/// Create a copy of AiModelSettingsState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$AiModelSettingsStateImplCopyWith<_$AiModelSettingsStateImpl>
get copyWith =>
__$$AiModelSettingsStateImplCopyWithImpl<_$AiModelSettingsStateImpl>(
this,
_$identity,
);
}
abstract class _AiModelSettingsState implements AiModelSettingsState {
const factory _AiModelSettingsState({
final bool isDownloading,
final double progress,
final String currentTask,
final bool areModelsValidated,
final String? errorMessage,
}) = _$AiModelSettingsStateImpl;
@override
bool get isDownloading;
@override
double get progress;
@override
String get currentTask;
@override
bool get areModelsValidated;
@override
String? get errorMessage;
/// Create a copy of AiModelSettingsState
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$AiModelSettingsStateImplCopyWith<_$AiModelSettingsStateImpl>
get copyWith => throw _privateConstructorUsedError;
}