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,483 @@
|
||||
// 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 'background_task_registry.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// FreezedGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
T _$identity<T>(T value) => value;
|
||||
|
||||
/// @nodoc
|
||||
mixin _$BackgroundTaskSession implements DiagnosticableTreeMixin {
|
||||
String get projectId;
|
||||
String get projectName;
|
||||
String get timelineId;
|
||||
String get timelineName;
|
||||
EditorTimelineSession get session;
|
||||
|
||||
/// Create a copy of BackgroundTaskSession
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
$BackgroundTaskSessionCopyWith<BackgroundTaskSession> get copyWith =>
|
||||
_$BackgroundTaskSessionCopyWithImpl<BackgroundTaskSession>(
|
||||
this as BackgroundTaskSession,
|
||||
_$identity,
|
||||
);
|
||||
|
||||
@override
|
||||
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
|
||||
final _this = this as BackgroundTaskSession;
|
||||
properties
|
||||
..add(DiagnosticsProperty('type', 'BackgroundTaskSession'))
|
||||
..add(DiagnosticsProperty('projectId', _this.projectId))
|
||||
..add(DiagnosticsProperty('projectName', _this.projectName))
|
||||
..add(DiagnosticsProperty('timelineId', _this.timelineId))
|
||||
..add(DiagnosticsProperty('timelineName', _this.timelineName))
|
||||
..add(DiagnosticsProperty('session', _this.session));
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
final _this = this as BackgroundTaskSession;
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is BackgroundTaskSession &&
|
||||
(identical(other.projectId, _this.projectId) ||
|
||||
other.projectId == _this.projectId) &&
|
||||
(identical(other.projectName, _this.projectName) ||
|
||||
other.projectName == _this.projectName) &&
|
||||
(identical(other.timelineId, _this.timelineId) ||
|
||||
other.timelineId == _this.timelineId) &&
|
||||
(identical(other.timelineName, _this.timelineName) ||
|
||||
other.timelineName == _this.timelineName) &&
|
||||
(identical(other.session, _this.session) ||
|
||||
other.session == _this.session));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
final _this = this as BackgroundTaskSession;
|
||||
return Object.hash(
|
||||
runtimeType,
|
||||
_this.projectId,
|
||||
_this.projectName,
|
||||
_this.timelineId,
|
||||
_this.timelineName,
|
||||
_this.session,
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
|
||||
final _this = this as BackgroundTaskSession;
|
||||
return 'BackgroundTaskSession(projectId: ${_this.projectId}, projectName: ${_this.projectName}, timelineId: ${_this.timelineId}, timelineName: ${_this.timelineName}, session: ${_this.session})';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class $BackgroundTaskSessionCopyWith<$Res> {
|
||||
factory $BackgroundTaskSessionCopyWith(
|
||||
BackgroundTaskSession value,
|
||||
$Res Function(BackgroundTaskSession) _then,
|
||||
) = _$BackgroundTaskSessionCopyWithImpl;
|
||||
@useResult
|
||||
$Res call({
|
||||
String projectId,
|
||||
String projectName,
|
||||
String timelineId,
|
||||
String timelineName,
|
||||
EditorTimelineSession session,
|
||||
});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$BackgroundTaskSessionCopyWithImpl<$Res>
|
||||
implements $BackgroundTaskSessionCopyWith<$Res> {
|
||||
_$BackgroundTaskSessionCopyWithImpl(this._self, this._then);
|
||||
|
||||
final BackgroundTaskSession _self;
|
||||
final $Res Function(BackgroundTaskSession) _then;
|
||||
|
||||
/// Create a copy of BackgroundTaskSession
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? projectId = null,
|
||||
Object? projectName = null,
|
||||
Object? timelineId = null,
|
||||
Object? timelineName = null,
|
||||
Object? session = null,
|
||||
}) {
|
||||
return _then(
|
||||
BackgroundTaskSession(
|
||||
projectId: null == projectId
|
||||
? _self.projectId
|
||||
: projectId // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
projectName: null == projectName
|
||||
? _self.projectName
|
||||
: projectName // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
timelineId: null == timelineId
|
||||
? _self.timelineId
|
||||
: timelineId // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
timelineName: null == timelineName
|
||||
? _self.timelineName
|
||||
: timelineName // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
session: null == session
|
||||
? _self.session
|
||||
: session // ignore: cast_nullable_to_non_nullable
|
||||
as EditorTimelineSession,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// Adds pattern-matching-related methods to [BackgroundTaskSession].
|
||||
extension BackgroundTaskSessionPatterns on BackgroundTaskSession {
|
||||
/// 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(_BackgroundTaskSession value)? $default, {
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _BackgroundTaskSession() 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(_BackgroundTaskSession value) $default,
|
||||
) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _BackgroundTaskSession():
|
||||
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(_BackgroundTaskSession value)? $default,
|
||||
) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _BackgroundTaskSession() 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(
|
||||
String projectId,
|
||||
String projectName,
|
||||
String timelineId,
|
||||
String timelineName,
|
||||
EditorTimelineSession session,
|
||||
)?
|
||||
$default, {
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _BackgroundTaskSession() when $default != null:
|
||||
return $default(
|
||||
_that.projectId,
|
||||
_that.projectName,
|
||||
_that.timelineId,
|
||||
_that.timelineName,
|
||||
_that.session,
|
||||
);
|
||||
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(
|
||||
String projectId,
|
||||
String projectName,
|
||||
String timelineId,
|
||||
String timelineName,
|
||||
EditorTimelineSession session,
|
||||
)
|
||||
$default,
|
||||
) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _BackgroundTaskSession():
|
||||
return $default(
|
||||
_that.projectId,
|
||||
_that.projectName,
|
||||
_that.timelineId,
|
||||
_that.timelineName,
|
||||
_that.session,
|
||||
);
|
||||
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(
|
||||
String projectId,
|
||||
String projectName,
|
||||
String timelineId,
|
||||
String timelineName,
|
||||
EditorTimelineSession session,
|
||||
)?
|
||||
$default,
|
||||
) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _BackgroundTaskSession() when $default != null:
|
||||
return $default(
|
||||
_that.projectId,
|
||||
_that.projectName,
|
||||
_that.timelineId,
|
||||
_that.timelineName,
|
||||
_that.session,
|
||||
);
|
||||
case _:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _BackgroundTaskSession
|
||||
with DiagnosticableTreeMixin
|
||||
implements BackgroundTaskSession {
|
||||
const _BackgroundTaskSession({
|
||||
required this.projectId,
|
||||
required this.projectName,
|
||||
required this.timelineId,
|
||||
required this.timelineName,
|
||||
required this.session,
|
||||
});
|
||||
|
||||
@override
|
||||
final String projectId;
|
||||
@override
|
||||
final String projectName;
|
||||
@override
|
||||
final String timelineId;
|
||||
@override
|
||||
final String timelineName;
|
||||
@override
|
||||
final EditorTimelineSession session;
|
||||
|
||||
/// Create a copy of BackgroundTaskSession
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$BackgroundTaskSessionCopyWith<_BackgroundTaskSession> get copyWith =>
|
||||
__$BackgroundTaskSessionCopyWithImpl<_BackgroundTaskSession>(
|
||||
this,
|
||||
_$identity,
|
||||
);
|
||||
|
||||
@override
|
||||
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
|
||||
properties
|
||||
..add(DiagnosticsProperty('type', 'BackgroundTaskSession'))
|
||||
..add(DiagnosticsProperty('projectId', projectId))
|
||||
..add(DiagnosticsProperty('projectName', projectName))
|
||||
..add(DiagnosticsProperty('timelineId', timelineId))
|
||||
..add(DiagnosticsProperty('timelineName', timelineName))
|
||||
..add(DiagnosticsProperty('session', session));
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _BackgroundTaskSession &&
|
||||
(identical(other.projectId, projectId) ||
|
||||
other.projectId == projectId) &&
|
||||
(identical(other.projectName, projectName) ||
|
||||
other.projectName == projectName) &&
|
||||
(identical(other.timelineId, timelineId) ||
|
||||
other.timelineId == timelineId) &&
|
||||
(identical(other.timelineName, timelineName) ||
|
||||
other.timelineName == timelineName) &&
|
||||
(identical(other.session, session) || other.session == session));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
return Object.hash(
|
||||
runtimeType,
|
||||
projectId,
|
||||
projectName,
|
||||
timelineId,
|
||||
timelineName,
|
||||
session,
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
|
||||
return 'BackgroundTaskSession(projectId: $projectId, projectName: $projectName, timelineId: $timelineId, timelineName: $timelineName, session: $session)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class _$BackgroundTaskSessionCopyWith<$Res>
|
||||
implements $BackgroundTaskSessionCopyWith<$Res> {
|
||||
factory _$BackgroundTaskSessionCopyWith(
|
||||
_BackgroundTaskSession value,
|
||||
$Res Function(_BackgroundTaskSession) _then,
|
||||
) = __$BackgroundTaskSessionCopyWithImpl;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({
|
||||
String projectId,
|
||||
String projectName,
|
||||
String timelineId,
|
||||
String timelineName,
|
||||
EditorTimelineSession session,
|
||||
});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$BackgroundTaskSessionCopyWithImpl<$Res>
|
||||
implements _$BackgroundTaskSessionCopyWith<$Res> {
|
||||
__$BackgroundTaskSessionCopyWithImpl(this._self, this._then);
|
||||
|
||||
final _BackgroundTaskSession _self;
|
||||
final $Res Function(_BackgroundTaskSession) _then;
|
||||
|
||||
/// Create a copy of BackgroundTaskSession
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$Res call({
|
||||
Object? projectId = null,
|
||||
Object? projectName = null,
|
||||
Object? timelineId = null,
|
||||
Object? timelineName = null,
|
||||
Object? session = null,
|
||||
}) {
|
||||
return _then(
|
||||
_BackgroundTaskSession(
|
||||
projectId: null == projectId
|
||||
? _self.projectId
|
||||
: projectId // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
projectName: null == projectName
|
||||
? _self.projectName
|
||||
: projectName // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
timelineId: null == timelineId
|
||||
? _self.timelineId
|
||||
: timelineId // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
timelineName: null == timelineName
|
||||
? _self.timelineName
|
||||
: timelineName // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
session: null == session
|
||||
? _self.session
|
||||
: session // ignore: cast_nullable_to_non_nullable
|
||||
as EditorTimelineSession,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user