Files
cutdex/lib/features/media/processing_targets.freezed.dart
T
lingjhf 27e77fff39 feat: initial Cutdex application
Add the Flutter video editing application with project management, media
import, timeline editing, preview, AI assistance, diagnostics and settings.

Include shared UI and native host packages, platform runners, application
tests and release tooling.

Provide usage and contribution guides, the MIT license and third-party
notices. Exclude local credentials, build outputs and validation data.
2026-10-05 23:36:23 +08:00

856 lines
23 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 'processing_targets.dart';
// **************************************************************************
// FreezedGenerator
// **************************************************************************
// GENERATED CODE - DO NOT MODIFY BY HAND
T _$identity<T>(T value) => value;
/// @nodoc
mixin _$TranscriptionClipTarget {
SequenceId get sequence;
String get clipId;
String get mediaId;
String get name;
int get audioStream;
/// Create a copy of TranscriptionClipTarget
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$TranscriptionClipTargetCopyWith<TranscriptionClipTarget> get copyWith =>
_$TranscriptionClipTargetCopyWithImpl<TranscriptionClipTarget>(
this as TranscriptionClipTarget,
_$identity,
);
@override
bool operator ==(Object other) {
final _this = this as TranscriptionClipTarget;
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is TranscriptionClipTarget &&
(identical(other.sequence, _this.sequence) ||
other.sequence == _this.sequence) &&
(identical(other.clipId, _this.clipId) ||
other.clipId == _this.clipId) &&
(identical(other.mediaId, _this.mediaId) ||
other.mediaId == _this.mediaId) &&
(identical(other.name, _this.name) || other.name == _this.name) &&
(identical(other.audioStream, _this.audioStream) ||
other.audioStream == _this.audioStream));
}
@override
int get hashCode {
final _this = this as TranscriptionClipTarget;
return Object.hash(
runtimeType,
_this.sequence,
_this.clipId,
_this.mediaId,
_this.name,
_this.audioStream,
);
}
@override
String toString() {
final _this = this as TranscriptionClipTarget;
return 'TranscriptionClipTarget(sequence: ${_this.sequence}, clipId: ${_this.clipId}, mediaId: ${_this.mediaId}, name: ${_this.name}, audioStream: ${_this.audioStream})';
}
}
/// @nodoc
abstract mixin class $TranscriptionClipTargetCopyWith<$Res> {
factory $TranscriptionClipTargetCopyWith(
TranscriptionClipTarget value,
$Res Function(TranscriptionClipTarget) _then,
) = _$TranscriptionClipTargetCopyWithImpl;
@useResult
$Res call({
SequenceId sequence,
String clipId,
String mediaId,
String name,
int audioStream,
});
}
/// @nodoc
class _$TranscriptionClipTargetCopyWithImpl<$Res>
implements $TranscriptionClipTargetCopyWith<$Res> {
_$TranscriptionClipTargetCopyWithImpl(this._self, this._then);
final TranscriptionClipTarget _self;
final $Res Function(TranscriptionClipTarget) _then;
/// Create a copy of TranscriptionClipTarget
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? sequence = null,
Object? clipId = null,
Object? mediaId = null,
Object? name = null,
Object? audioStream = null,
}) {
return _then(
TranscriptionClipTarget(
sequence: null == sequence
? _self.sequence
: sequence // ignore: cast_nullable_to_non_nullable
as SequenceId,
clipId: null == clipId
? _self.clipId
: clipId // ignore: cast_nullable_to_non_nullable
as String,
mediaId: null == mediaId
? _self.mediaId
: mediaId // ignore: cast_nullable_to_non_nullable
as String,
name: null == name
? _self.name
: name // ignore: cast_nullable_to_non_nullable
as String,
audioStream: null == audioStream
? _self.audioStream
: audioStream // ignore: cast_nullable_to_non_nullable
as int,
),
);
}
}
/// Adds pattern-matching-related methods to [TranscriptionClipTarget].
extension TranscriptionClipTargetPatterns on TranscriptionClipTarget {
/// 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(_TranscriptionClipTarget value)? $default, {
required TResult orElse(),
}) {
final _that = this;
switch (_that) {
case _TranscriptionClipTarget() 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(_TranscriptionClipTarget value) $default,
) {
final _that = this;
switch (_that) {
case _TranscriptionClipTarget():
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(_TranscriptionClipTarget value)? $default,
) {
final _that = this;
switch (_that) {
case _TranscriptionClipTarget() 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(
SequenceId sequence,
String clipId,
String mediaId,
String name,
int audioStream,
)?
$default, {
required TResult orElse(),
}) {
final _that = this;
switch (_that) {
case _TranscriptionClipTarget() when $default != null:
return $default(
_that.sequence,
_that.clipId,
_that.mediaId,
_that.name,
_that.audioStream,
);
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(
SequenceId sequence,
String clipId,
String mediaId,
String name,
int audioStream,
)
$default,
) {
final _that = this;
switch (_that) {
case _TranscriptionClipTarget():
return $default(
_that.sequence,
_that.clipId,
_that.mediaId,
_that.name,
_that.audioStream,
);
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(
SequenceId sequence,
String clipId,
String mediaId,
String name,
int audioStream,
)?
$default,
) {
final _that = this;
switch (_that) {
case _TranscriptionClipTarget() when $default != null:
return $default(
_that.sequence,
_that.clipId,
_that.mediaId,
_that.name,
_that.audioStream,
);
case _:
return null;
}
}
}
/// @nodoc
class _TranscriptionClipTarget implements TranscriptionClipTarget {
const _TranscriptionClipTarget({
required this.sequence,
required this.clipId,
required this.mediaId,
required this.name,
required this.audioStream,
});
@override
final SequenceId sequence;
@override
final String clipId;
@override
final String mediaId;
@override
final String name;
@override
final int audioStream;
/// Create a copy of TranscriptionClipTarget
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$TranscriptionClipTargetCopyWith<_TranscriptionClipTarget> get copyWith =>
__$TranscriptionClipTargetCopyWithImpl<_TranscriptionClipTarget>(
this,
_$identity,
);
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _TranscriptionClipTarget &&
(identical(other.sequence, sequence) ||
other.sequence == sequence) &&
(identical(other.clipId, clipId) || other.clipId == clipId) &&
(identical(other.mediaId, mediaId) || other.mediaId == mediaId) &&
(identical(other.name, name) || other.name == name) &&
(identical(other.audioStream, audioStream) ||
other.audioStream == audioStream));
}
@override
int get hashCode {
return Object.hash(
runtimeType,
sequence,
clipId,
mediaId,
name,
audioStream,
);
}
@override
String toString() {
return 'TranscriptionClipTarget(sequence: $sequence, clipId: $clipId, mediaId: $mediaId, name: $name, audioStream: $audioStream)';
}
}
/// @nodoc
abstract mixin class _$TranscriptionClipTargetCopyWith<$Res>
implements $TranscriptionClipTargetCopyWith<$Res> {
factory _$TranscriptionClipTargetCopyWith(
_TranscriptionClipTarget value,
$Res Function(_TranscriptionClipTarget) _then,
) = __$TranscriptionClipTargetCopyWithImpl;
@override
@useResult
$Res call({
SequenceId sequence,
String clipId,
String mediaId,
String name,
int audioStream,
});
}
/// @nodoc
class __$TranscriptionClipTargetCopyWithImpl<$Res>
implements _$TranscriptionClipTargetCopyWith<$Res> {
__$TranscriptionClipTargetCopyWithImpl(this._self, this._then);
final _TranscriptionClipTarget _self;
final $Res Function(_TranscriptionClipTarget) _then;
/// Create a copy of TranscriptionClipTarget
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$Res call({
Object? sequence = null,
Object? clipId = null,
Object? mediaId = null,
Object? name = null,
Object? audioStream = null,
}) {
return _then(
_TranscriptionClipTarget(
sequence: null == sequence
? _self.sequence
: sequence // ignore: cast_nullable_to_non_nullable
as SequenceId,
clipId: null == clipId
? _self.clipId
: clipId // ignore: cast_nullable_to_non_nullable
as String,
mediaId: null == mediaId
? _self.mediaId
: mediaId // ignore: cast_nullable_to_non_nullable
as String,
name: null == name
? _self.name
: name // ignore: cast_nullable_to_non_nullable
as String,
audioStream: null == audioStream
? _self.audioStream
: audioStream // ignore: cast_nullable_to_non_nullable
as int,
),
);
}
}
/// @nodoc
mixin _$BackgroundRemovalClipTarget {
SequenceId get sequence;
String get clipId;
String get mediaId;
String get name;
/// Create a copy of BackgroundRemovalClipTarget
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$BackgroundRemovalClipTargetCopyWith<BackgroundRemovalClipTarget>
get copyWith =>
_$BackgroundRemovalClipTargetCopyWithImpl<BackgroundRemovalClipTarget>(
this as BackgroundRemovalClipTarget,
_$identity,
);
@override
bool operator ==(Object other) {
final _this = this as BackgroundRemovalClipTarget;
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is BackgroundRemovalClipTarget &&
(identical(other.sequence, _this.sequence) ||
other.sequence == _this.sequence) &&
(identical(other.clipId, _this.clipId) ||
other.clipId == _this.clipId) &&
(identical(other.mediaId, _this.mediaId) ||
other.mediaId == _this.mediaId) &&
(identical(other.name, _this.name) || other.name == _this.name));
}
@override
int get hashCode {
final _this = this as BackgroundRemovalClipTarget;
return Object.hash(
runtimeType,
_this.sequence,
_this.clipId,
_this.mediaId,
_this.name,
);
}
@override
String toString() {
final _this = this as BackgroundRemovalClipTarget;
return 'BackgroundRemovalClipTarget(sequence: ${_this.sequence}, clipId: ${_this.clipId}, mediaId: ${_this.mediaId}, name: ${_this.name})';
}
}
/// @nodoc
abstract mixin class $BackgroundRemovalClipTargetCopyWith<$Res> {
factory $BackgroundRemovalClipTargetCopyWith(
BackgroundRemovalClipTarget value,
$Res Function(BackgroundRemovalClipTarget) _then,
) = _$BackgroundRemovalClipTargetCopyWithImpl;
@useResult
$Res call({SequenceId sequence, String clipId, String mediaId, String name});
}
/// @nodoc
class _$BackgroundRemovalClipTargetCopyWithImpl<$Res>
implements $BackgroundRemovalClipTargetCopyWith<$Res> {
_$BackgroundRemovalClipTargetCopyWithImpl(this._self, this._then);
final BackgroundRemovalClipTarget _self;
final $Res Function(BackgroundRemovalClipTarget) _then;
/// Create a copy of BackgroundRemovalClipTarget
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? sequence = null,
Object? clipId = null,
Object? mediaId = null,
Object? name = null,
}) {
return _then(
BackgroundRemovalClipTarget(
sequence: null == sequence
? _self.sequence
: sequence // ignore: cast_nullable_to_non_nullable
as SequenceId,
clipId: null == clipId
? _self.clipId
: clipId // ignore: cast_nullable_to_non_nullable
as String,
mediaId: null == mediaId
? _self.mediaId
: mediaId // ignore: cast_nullable_to_non_nullable
as String,
name: null == name
? _self.name
: name // ignore: cast_nullable_to_non_nullable
as String,
),
);
}
}
/// Adds pattern-matching-related methods to [BackgroundRemovalClipTarget].
extension BackgroundRemovalClipTargetPatterns on BackgroundRemovalClipTarget {
/// 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(_BackgroundRemovalClipTarget value)? $default, {
required TResult orElse(),
}) {
final _that = this;
switch (_that) {
case _BackgroundRemovalClipTarget() 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(_BackgroundRemovalClipTarget value) $default,
) {
final _that = this;
switch (_that) {
case _BackgroundRemovalClipTarget():
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(_BackgroundRemovalClipTarget value)? $default,
) {
final _that = this;
switch (_that) {
case _BackgroundRemovalClipTarget() 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(
SequenceId sequence,
String clipId,
String mediaId,
String name,
)?
$default, {
required TResult orElse(),
}) {
final _that = this;
switch (_that) {
case _BackgroundRemovalClipTarget() when $default != null:
return $default(
_that.sequence,
_that.clipId,
_that.mediaId,
_that.name,
);
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(
SequenceId sequence,
String clipId,
String mediaId,
String name,
)
$default,
) {
final _that = this;
switch (_that) {
case _BackgroundRemovalClipTarget():
return $default(
_that.sequence,
_that.clipId,
_that.mediaId,
_that.name,
);
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(
SequenceId sequence,
String clipId,
String mediaId,
String name,
)?
$default,
) {
final _that = this;
switch (_that) {
case _BackgroundRemovalClipTarget() when $default != null:
return $default(
_that.sequence,
_that.clipId,
_that.mediaId,
_that.name,
);
case _:
return null;
}
}
}
/// @nodoc
class _BackgroundRemovalClipTarget implements BackgroundRemovalClipTarget {
const _BackgroundRemovalClipTarget({
required this.sequence,
required this.clipId,
required this.mediaId,
required this.name,
});
@override
final SequenceId sequence;
@override
final String clipId;
@override
final String mediaId;
@override
final String name;
/// Create a copy of BackgroundRemovalClipTarget
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$BackgroundRemovalClipTargetCopyWith<_BackgroundRemovalClipTarget>
get copyWith =>
__$BackgroundRemovalClipTargetCopyWithImpl<_BackgroundRemovalClipTarget>(
this,
_$identity,
);
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _BackgroundRemovalClipTarget &&
(identical(other.sequence, sequence) ||
other.sequence == sequence) &&
(identical(other.clipId, clipId) || other.clipId == clipId) &&
(identical(other.mediaId, mediaId) || other.mediaId == mediaId) &&
(identical(other.name, name) || other.name == name));
}
@override
int get hashCode {
return Object.hash(runtimeType, sequence, clipId, mediaId, name);
}
@override
String toString() {
return 'BackgroundRemovalClipTarget(sequence: $sequence, clipId: $clipId, mediaId: $mediaId, name: $name)';
}
}
/// @nodoc
abstract mixin class _$BackgroundRemovalClipTargetCopyWith<$Res>
implements $BackgroundRemovalClipTargetCopyWith<$Res> {
factory _$BackgroundRemovalClipTargetCopyWith(
_BackgroundRemovalClipTarget value,
$Res Function(_BackgroundRemovalClipTarget) _then,
) = __$BackgroundRemovalClipTargetCopyWithImpl;
@override
@useResult
$Res call({SequenceId sequence, String clipId, String mediaId, String name});
}
/// @nodoc
class __$BackgroundRemovalClipTargetCopyWithImpl<$Res>
implements _$BackgroundRemovalClipTargetCopyWith<$Res> {
__$BackgroundRemovalClipTargetCopyWithImpl(this._self, this._then);
final _BackgroundRemovalClipTarget _self;
final $Res Function(_BackgroundRemovalClipTarget) _then;
/// Create a copy of BackgroundRemovalClipTarget
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$Res call({
Object? sequence = null,
Object? clipId = null,
Object? mediaId = null,
Object? name = null,
}) {
return _then(
_BackgroundRemovalClipTarget(
sequence: null == sequence
? _self.sequence
: sequence // ignore: cast_nullable_to_non_nullable
as SequenceId,
clipId: null == clipId
? _self.clipId
: clipId // ignore: cast_nullable_to_non_nullable
as String,
mediaId: null == mediaId
? _self.mediaId
: mediaId // ignore: cast_nullable_to_non_nullable
as String,
name: null == name
? _self.name
: name // ignore: cast_nullable_to_non_nullable
as String,
),
);
}
}