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.
This commit is contained in:
commit
27e77fff39
718 files changed
+183958
No files matched your search
@@ -0,0 +1,627 @@
|
||||
// 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 _$PictureEditTarget {
|
||||
TimelineVersion get version;
|
||||
int get tick;
|
||||
|
||||
/// Create a copy of PictureEditTarget
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
$PictureEditTargetCopyWith<PictureEditTarget> get copyWith =>
|
||||
_$PictureEditTargetCopyWithImpl<PictureEditTarget>(
|
||||
this as PictureEditTarget,
|
||||
_$identity,
|
||||
);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
final _this = this as PictureEditTarget;
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is PictureEditTarget &&
|
||||
(identical(other.version, _this.version) ||
|
||||
other.version == _this.version) &&
|
||||
(identical(other.tick, _this.tick) || other.tick == _this.tick));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
final _this = this as PictureEditTarget;
|
||||
return Object.hash(runtimeType, _this.version, _this.tick);
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
final _this = this as PictureEditTarget;
|
||||
return 'PictureEditTarget(version: ${_this.version}, tick: ${_this.tick})';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class $PictureEditTargetCopyWith<$Res> {
|
||||
factory $PictureEditTargetCopyWith(
|
||||
PictureEditTarget value,
|
||||
$Res Function(PictureEditTarget) _then,
|
||||
) = _$PictureEditTargetCopyWithImpl;
|
||||
@useResult
|
||||
$Res call({TimelineVersion version, int tick});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$PictureEditTargetCopyWithImpl<$Res>
|
||||
implements $PictureEditTargetCopyWith<$Res> {
|
||||
_$PictureEditTargetCopyWithImpl(this._self, this._then);
|
||||
|
||||
final PictureEditTarget _self;
|
||||
final $Res Function(PictureEditTarget) _then;
|
||||
|
||||
/// Create a copy of PictureEditTarget
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({Object? version = null, Object? tick = null}) {
|
||||
return _then(
|
||||
PictureEditTarget(
|
||||
version: null == version
|
||||
? _self.version
|
||||
: version // ignore: cast_nullable_to_non_nullable
|
||||
as TimelineVersion,
|
||||
tick: null == tick
|
||||
? _self.tick
|
||||
: tick // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// Adds pattern-matching-related methods to [PictureEditTarget].
|
||||
extension PictureEditTargetPatterns on PictureEditTarget {
|
||||
/// 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(_PictureEditTarget value)? $default, {
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _PictureEditTarget() 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(_PictureEditTarget value) $default,
|
||||
) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _PictureEditTarget():
|
||||
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(_PictureEditTarget value)? $default,
|
||||
) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _PictureEditTarget() 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(TimelineVersion version, int tick)? $default, {
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _PictureEditTarget() when $default != null:
|
||||
return $default(_that.version, _that.tick);
|
||||
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(TimelineVersion version, int tick) $default,
|
||||
) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _PictureEditTarget():
|
||||
return $default(_that.version, _that.tick);
|
||||
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(TimelineVersion version, int tick)? $default,
|
||||
) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _PictureEditTarget() when $default != null:
|
||||
return $default(_that.version, _that.tick);
|
||||
case _:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _PictureEditTarget implements PictureEditTarget {
|
||||
const _PictureEditTarget({required this.version, required this.tick});
|
||||
|
||||
@override
|
||||
final TimelineVersion version;
|
||||
@override
|
||||
final int tick;
|
||||
|
||||
/// Create a copy of PictureEditTarget
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$PictureEditTargetCopyWith<_PictureEditTarget> get copyWith =>
|
||||
__$PictureEditTargetCopyWithImpl<_PictureEditTarget>(this, _$identity);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _PictureEditTarget &&
|
||||
(identical(other.version, version) || other.version == version) &&
|
||||
(identical(other.tick, tick) || other.tick == tick));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
return Object.hash(runtimeType, version, tick);
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'PictureEditTarget(version: $version, tick: $tick)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class _$PictureEditTargetCopyWith<$Res>
|
||||
implements $PictureEditTargetCopyWith<$Res> {
|
||||
factory _$PictureEditTargetCopyWith(
|
||||
_PictureEditTarget value,
|
||||
$Res Function(_PictureEditTarget) _then,
|
||||
) = __$PictureEditTargetCopyWithImpl;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({TimelineVersion version, int tick});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$PictureEditTargetCopyWithImpl<$Res>
|
||||
implements _$PictureEditTargetCopyWith<$Res> {
|
||||
__$PictureEditTargetCopyWithImpl(this._self, this._then);
|
||||
|
||||
final _PictureEditTarget _self;
|
||||
final $Res Function(_PictureEditTarget) _then;
|
||||
|
||||
/// Create a copy of PictureEditTarget
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$Res call({Object? version = null, Object? tick = null}) {
|
||||
return _then(
|
||||
_PictureEditTarget(
|
||||
version: null == version
|
||||
? _self.version
|
||||
: version // ignore: cast_nullable_to_non_nullable
|
||||
as TimelineVersion,
|
||||
tick: null == tick
|
||||
? _self.tick
|
||||
: tick // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// @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,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user