Files
cutdex/lib/features/properties/picture_edits.freezed.dart
lingjhf 06f1c26681
Gitea CI / Assemble and validate CI artifacts (push) Successful in 1m47s
Gitea CI / Check code and tests (push) Successful in 7m15s
Gitea CI / Build Android APK (push) Successful in 4m6s
Gitea CI / Build Windows x64 app (push) Successful in 3m34s
Gitea CI / Audit and package Windows x64 (push) Successful in 1m29s
Gitea CI / Gitea CI passed (push) Successful in 1s
Gitea Release / Prepare draft Release (push) Failing after 8s
Gitea Release / Upload Android to draft Release (push) Skipped
Gitea Release / Upload Windows to draft Release (push) Skipped
Gitea Release / Verify and publish Release (push) Skipped
Move editor UI into the app and release verified Core dependencies (#14)
2026-10-11 19:59:40 +00:00

316 lines
8.5 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// ignore_for_file: type=lint, type=warning, deprecated_member_use, deprecated_member_use_from_same_package
// 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 'picture_edits.dart';
// **************************************************************************
// FreezedGenerator
// **************************************************************************
// GENERATED CODE - DO NOT MODIFY BY HAND
T _$identity<T>(T value) => value;
/// @nodoc
mixin _$PictureEditException {
PictureEditFailure get failure;
/// Create a copy of PictureEditException
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$PictureEditExceptionCopyWith<PictureEditException> get copyWith =>
_$PictureEditExceptionCopyWithImpl<PictureEditException>(
this as PictureEditException,
_$identity,
);
@override
bool operator ==(Object other) {
final _this = this as PictureEditException;
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is PictureEditException &&
(identical(other.failure, _this.failure) ||
other.failure == _this.failure));
}
@override
int get hashCode {
final _this = this as PictureEditException;
return Object.hash(runtimeType, _this.failure);
}
@override
String toString() {
final _this = this as PictureEditException;
return 'PictureEditException(failure: ${_this.failure})';
}
}
/// @nodoc
abstract mixin class $PictureEditExceptionCopyWith<$Res> {
factory $PictureEditExceptionCopyWith(
PictureEditException value,
$Res Function(PictureEditException) _then,
) = _$PictureEditExceptionCopyWithImpl;
@useResult
$Res call({PictureEditFailure failure});
}
/// @nodoc
class _$PictureEditExceptionCopyWithImpl<$Res>
implements $PictureEditExceptionCopyWith<$Res> {
_$PictureEditExceptionCopyWithImpl(this._self, this._then);
final PictureEditException _self;
final $Res Function(PictureEditException) _then;
/// Create a copy of PictureEditException
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({Object? failure = null}) {
return _then(
PictureEditException(
null == failure
? _self.failure
: failure // ignore: cast_nullable_to_non_nullable
as PictureEditFailure,
),
);
}
}
/// Adds pattern-matching-related methods to [PictureEditException].
extension PictureEditExceptionPatterns on PictureEditException {
/// 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(_PictureEditException value)? $default, {
required TResult orElse(),
}) {
final _that = this;
switch (_that) {
case _PictureEditException() 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(_PictureEditException value) $default,
) {
final _that = this;
switch (_that) {
case _PictureEditException():
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(_PictureEditException value)? $default,
) {
final _that = this;
switch (_that) {
case _PictureEditException() 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(PictureEditFailure failure)? $default, {
required TResult orElse(),
}) {
final _that = this;
switch (_that) {
case _PictureEditException() when $default != null:
return $default(_that.failure);
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(PictureEditFailure failure) $default,
) {
final _that = this;
switch (_that) {
case _PictureEditException():
return $default(_that.failure);
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(PictureEditFailure failure)? $default,
) {
final _that = this;
switch (_that) {
case _PictureEditException() when $default != null:
return $default(_that.failure);
case _:
return null;
}
}
}
/// @nodoc
class _PictureEditException implements PictureEditException {
const _PictureEditException(this.failure);
@override
final PictureEditFailure failure;
/// Create a copy of PictureEditException
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$PictureEditExceptionCopyWith<_PictureEditException> get copyWith =>
__$PictureEditExceptionCopyWithImpl<_PictureEditException>(
this,
_$identity,
);
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _PictureEditException &&
(identical(other.failure, failure) || other.failure == failure));
}
@override
int get hashCode {
return Object.hash(runtimeType, failure);
}
@override
String toString() {
return 'PictureEditException(failure: $failure)';
}
}
/// @nodoc
abstract mixin class _$PictureEditExceptionCopyWith<$Res>
implements $PictureEditExceptionCopyWith<$Res> {
factory _$PictureEditExceptionCopyWith(
_PictureEditException value,
$Res Function(_PictureEditException) _then,
) = __$PictureEditExceptionCopyWithImpl;
@override
@useResult
$Res call({PictureEditFailure failure});
}
/// @nodoc
class __$PictureEditExceptionCopyWithImpl<$Res>
implements _$PictureEditExceptionCopyWith<$Res> {
__$PictureEditExceptionCopyWithImpl(this._self, this._then);
final _PictureEditException _self;
final $Res Function(_PictureEditException) _then;
/// Create a copy of PictureEditException
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$Res call({Object? failure = null}) {
return _then(
_PictureEditException(
null == failure
? _self.failure
: failure // ignore: cast_nullable_to_non_nullable
as PictureEditFailure,
),
);
}
}