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.
646 lines
18 KiB
Dart
646 lines
18 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 'subtitle_task_actions.dart';
|
|
|
|
// **************************************************************************
|
|
// FreezedGenerator
|
|
// **************************************************************************
|
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
T _$identity<T>(T value) => value;
|
|
|
|
/// @nodoc
|
|
mixin _$SubtitleActionFeedback {
|
|
SubtitleActionKind get kind;
|
|
int? get cueCount;
|
|
|
|
/// Create a copy of SubtitleActionFeedback
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@pragma('vm:prefer-inline')
|
|
$SubtitleActionFeedbackCopyWith<SubtitleActionFeedback> get copyWith =>
|
|
_$SubtitleActionFeedbackCopyWithImpl<SubtitleActionFeedback>(
|
|
this as SubtitleActionFeedback,
|
|
_$identity,
|
|
);
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
final _this = this as SubtitleActionFeedback;
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is SubtitleActionFeedback &&
|
|
(identical(other.kind, _this.kind) || other.kind == _this.kind) &&
|
|
(identical(other.cueCount, _this.cueCount) ||
|
|
other.cueCount == _this.cueCount));
|
|
}
|
|
|
|
@override
|
|
int get hashCode {
|
|
final _this = this as SubtitleActionFeedback;
|
|
return Object.hash(runtimeType, _this.kind, _this.cueCount);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
final _this = this as SubtitleActionFeedback;
|
|
return 'SubtitleActionFeedback(kind: ${_this.kind}, cueCount: ${_this.cueCount})';
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract mixin class $SubtitleActionFeedbackCopyWith<$Res> {
|
|
factory $SubtitleActionFeedbackCopyWith(
|
|
SubtitleActionFeedback value,
|
|
$Res Function(SubtitleActionFeedback) _then,
|
|
) = _$SubtitleActionFeedbackCopyWithImpl;
|
|
@useResult
|
|
$Res call({SubtitleActionKind kind, int? cueCount});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$SubtitleActionFeedbackCopyWithImpl<$Res>
|
|
implements $SubtitleActionFeedbackCopyWith<$Res> {
|
|
_$SubtitleActionFeedbackCopyWithImpl(this._self, this._then);
|
|
|
|
final SubtitleActionFeedback _self;
|
|
final $Res Function(SubtitleActionFeedback) _then;
|
|
|
|
/// Create a copy of SubtitleActionFeedback
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({Object? kind = null, Object? cueCount = freezed}) {
|
|
return _then(
|
|
SubtitleActionFeedback(
|
|
kind: null == kind
|
|
? _self.kind
|
|
: kind // ignore: cast_nullable_to_non_nullable
|
|
as SubtitleActionKind,
|
|
cueCount: freezed == cueCount
|
|
? _self.cueCount
|
|
: cueCount // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// Adds pattern-matching-related methods to [SubtitleActionFeedback].
|
|
extension SubtitleActionFeedbackPatterns on SubtitleActionFeedback {
|
|
/// 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(_SubtitleActionFeedback value)? $default, {
|
|
required TResult orElse(),
|
|
}) {
|
|
final _that = this;
|
|
switch (_that) {
|
|
case _SubtitleActionFeedback() 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(_SubtitleActionFeedback value) $default,
|
|
) {
|
|
final _that = this;
|
|
switch (_that) {
|
|
case _SubtitleActionFeedback():
|
|
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(_SubtitleActionFeedback value)? $default,
|
|
) {
|
|
final _that = this;
|
|
switch (_that) {
|
|
case _SubtitleActionFeedback() 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(SubtitleActionKind kind, int? cueCount)? $default, {
|
|
required TResult orElse(),
|
|
}) {
|
|
final _that = this;
|
|
switch (_that) {
|
|
case _SubtitleActionFeedback() when $default != null:
|
|
return $default(_that.kind, _that.cueCount);
|
|
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(SubtitleActionKind kind, int? cueCount) $default,
|
|
) {
|
|
final _that = this;
|
|
switch (_that) {
|
|
case _SubtitleActionFeedback():
|
|
return $default(_that.kind, _that.cueCount);
|
|
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(SubtitleActionKind kind, int? cueCount)? $default,
|
|
) {
|
|
final _that = this;
|
|
switch (_that) {
|
|
case _SubtitleActionFeedback() when $default != null:
|
|
return $default(_that.kind, _that.cueCount);
|
|
case _:
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _SubtitleActionFeedback implements SubtitleActionFeedback {
|
|
const _SubtitleActionFeedback({required this.kind, this.cueCount});
|
|
|
|
@override
|
|
final SubtitleActionKind kind;
|
|
@override
|
|
final int? cueCount;
|
|
|
|
/// Create a copy of SubtitleActionFeedback
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@pragma('vm:prefer-inline')
|
|
_$SubtitleActionFeedbackCopyWith<_SubtitleActionFeedback> get copyWith =>
|
|
__$SubtitleActionFeedbackCopyWithImpl<_SubtitleActionFeedback>(
|
|
this,
|
|
_$identity,
|
|
);
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _SubtitleActionFeedback &&
|
|
(identical(other.kind, kind) || other.kind == kind) &&
|
|
(identical(other.cueCount, cueCount) ||
|
|
other.cueCount == cueCount));
|
|
}
|
|
|
|
@override
|
|
int get hashCode {
|
|
return Object.hash(runtimeType, kind, cueCount);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SubtitleActionFeedback(kind: $kind, cueCount: $cueCount)';
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract mixin class _$SubtitleActionFeedbackCopyWith<$Res>
|
|
implements $SubtitleActionFeedbackCopyWith<$Res> {
|
|
factory _$SubtitleActionFeedbackCopyWith(
|
|
_SubtitleActionFeedback value,
|
|
$Res Function(_SubtitleActionFeedback) _then,
|
|
) = __$SubtitleActionFeedbackCopyWithImpl;
|
|
@override
|
|
@useResult
|
|
$Res call({SubtitleActionKind kind, int? cueCount});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$SubtitleActionFeedbackCopyWithImpl<$Res>
|
|
implements _$SubtitleActionFeedbackCopyWith<$Res> {
|
|
__$SubtitleActionFeedbackCopyWithImpl(this._self, this._then);
|
|
|
|
final _SubtitleActionFeedback _self;
|
|
final $Res Function(_SubtitleActionFeedback) _then;
|
|
|
|
/// Create a copy of SubtitleActionFeedback
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$Res call({Object? kind = null, Object? cueCount = freezed}) {
|
|
return _then(
|
|
_SubtitleActionFeedback(
|
|
kind: null == kind
|
|
? _self.kind
|
|
: kind // ignore: cast_nullable_to_non_nullable
|
|
as SubtitleActionKind,
|
|
cueCount: freezed == cueCount
|
|
? _self.cueCount
|
|
: cueCount // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$SubtitleActionException {
|
|
SubtitleActionKind get kind;
|
|
Object get cause;
|
|
|
|
/// Create a copy of SubtitleActionException
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@pragma('vm:prefer-inline')
|
|
$SubtitleActionExceptionCopyWith<SubtitleActionException> get copyWith =>
|
|
_$SubtitleActionExceptionCopyWithImpl<SubtitleActionException>(
|
|
this as SubtitleActionException,
|
|
_$identity,
|
|
);
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
final _this = this as SubtitleActionException;
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is SubtitleActionException &&
|
|
(identical(other.kind, _this.kind) || other.kind == _this.kind) &&
|
|
const DeepCollectionEquality().equals(other.cause, _this.cause));
|
|
}
|
|
|
|
@override
|
|
int get hashCode {
|
|
final _this = this as SubtitleActionException;
|
|
return Object.hash(
|
|
runtimeType,
|
|
_this.kind,
|
|
const DeepCollectionEquality().hash(_this.cause),
|
|
);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
final _this = this as SubtitleActionException;
|
|
return 'SubtitleActionException(kind: ${_this.kind}, cause: ${_this.cause})';
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract mixin class $SubtitleActionExceptionCopyWith<$Res> {
|
|
factory $SubtitleActionExceptionCopyWith(
|
|
SubtitleActionException value,
|
|
$Res Function(SubtitleActionException) _then,
|
|
) = _$SubtitleActionExceptionCopyWithImpl;
|
|
@useResult
|
|
$Res call({SubtitleActionKind kind, Object cause});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$SubtitleActionExceptionCopyWithImpl<$Res>
|
|
implements $SubtitleActionExceptionCopyWith<$Res> {
|
|
_$SubtitleActionExceptionCopyWithImpl(this._self, this._then);
|
|
|
|
final SubtitleActionException _self;
|
|
final $Res Function(SubtitleActionException) _then;
|
|
|
|
/// Create a copy of SubtitleActionException
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({Object? kind = null, Object? cause = null}) {
|
|
return _then(
|
|
SubtitleActionException(
|
|
null == kind
|
|
? _self.kind
|
|
: kind // ignore: cast_nullable_to_non_nullable
|
|
as SubtitleActionKind,
|
|
null == cause ? _self.cause : cause,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// Adds pattern-matching-related methods to [SubtitleActionException].
|
|
extension SubtitleActionExceptionPatterns on SubtitleActionException {
|
|
/// 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(_SubtitleActionException value)? $default, {
|
|
required TResult orElse(),
|
|
}) {
|
|
final _that = this;
|
|
switch (_that) {
|
|
case _SubtitleActionException() 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(_SubtitleActionException value) $default,
|
|
) {
|
|
final _that = this;
|
|
switch (_that) {
|
|
case _SubtitleActionException():
|
|
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(_SubtitleActionException value)? $default,
|
|
) {
|
|
final _that = this;
|
|
switch (_that) {
|
|
case _SubtitleActionException() 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(SubtitleActionKind kind, Object cause)? $default, {
|
|
required TResult orElse(),
|
|
}) {
|
|
final _that = this;
|
|
switch (_that) {
|
|
case _SubtitleActionException() when $default != null:
|
|
return $default(_that.kind, _that.cause);
|
|
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(SubtitleActionKind kind, Object cause) $default,
|
|
) {
|
|
final _that = this;
|
|
switch (_that) {
|
|
case _SubtitleActionException():
|
|
return $default(_that.kind, _that.cause);
|
|
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(SubtitleActionKind kind, Object cause)? $default,
|
|
) {
|
|
final _that = this;
|
|
switch (_that) {
|
|
case _SubtitleActionException() when $default != null:
|
|
return $default(_that.kind, _that.cause);
|
|
case _:
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _SubtitleActionException implements SubtitleActionException {
|
|
const _SubtitleActionException(this.kind, this.cause);
|
|
|
|
@override
|
|
final SubtitleActionKind kind;
|
|
@override
|
|
final Object cause;
|
|
|
|
/// Create a copy of SubtitleActionException
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@pragma('vm:prefer-inline')
|
|
_$SubtitleActionExceptionCopyWith<_SubtitleActionException> get copyWith =>
|
|
__$SubtitleActionExceptionCopyWithImpl<_SubtitleActionException>(
|
|
this,
|
|
_$identity,
|
|
);
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _SubtitleActionException &&
|
|
(identical(other.kind, kind) || other.kind == kind) &&
|
|
const DeepCollectionEquality().equals(other.cause, cause));
|
|
}
|
|
|
|
@override
|
|
int get hashCode {
|
|
return Object.hash(
|
|
runtimeType,
|
|
kind,
|
|
const DeepCollectionEquality().hash(cause),
|
|
);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SubtitleActionException(kind: $kind, cause: $cause)';
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract mixin class _$SubtitleActionExceptionCopyWith<$Res>
|
|
implements $SubtitleActionExceptionCopyWith<$Res> {
|
|
factory _$SubtitleActionExceptionCopyWith(
|
|
_SubtitleActionException value,
|
|
$Res Function(_SubtitleActionException) _then,
|
|
) = __$SubtitleActionExceptionCopyWithImpl;
|
|
@override
|
|
@useResult
|
|
$Res call({SubtitleActionKind kind, Object cause});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$SubtitleActionExceptionCopyWithImpl<$Res>
|
|
implements _$SubtitleActionExceptionCopyWith<$Res> {
|
|
__$SubtitleActionExceptionCopyWithImpl(this._self, this._then);
|
|
|
|
final _SubtitleActionException _self;
|
|
final $Res Function(_SubtitleActionException) _then;
|
|
|
|
/// Create a copy of SubtitleActionException
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$Res call({Object? kind = null, Object? cause = null}) {
|
|
return _then(
|
|
_SubtitleActionException(
|
|
null == kind
|
|
? _self.kind
|
|
: kind // ignore: cast_nullable_to_non_nullable
|
|
as SubtitleActionKind,
|
|
null == cause ? _self.cause : cause,
|
|
),
|
|
);
|
|
}
|
|
}
|