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,626 @@
|
||||
// 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 'conversation_repository.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// FreezedGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
T _$identity<T>(T value) => value;
|
||||
|
||||
/// @nodoc
|
||||
mixin _$ConversationMetadata {
|
||||
String get id;
|
||||
String get projectId;
|
||||
String get title;
|
||||
DateTime get createdAt;
|
||||
DateTime get updatedAt;
|
||||
String get providerId;
|
||||
String get modelId;
|
||||
String get timelineId;
|
||||
@JsonKey(required: true, disallowNullValue: true)
|
||||
bool get pending;
|
||||
@JsonKey(required: true, disallowNullValue: true)
|
||||
List<int?> get responseDurationsMs;
|
||||
|
||||
/// Create a copy of ConversationMetadata
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
$ConversationMetadataCopyWith<ConversationMetadata> get copyWith =>
|
||||
_$ConversationMetadataCopyWithImpl<ConversationMetadata>(
|
||||
this as ConversationMetadata,
|
||||
_$identity,
|
||||
);
|
||||
|
||||
/// Serializes this ConversationMetadata to a JSON map.
|
||||
Map<String, dynamic> toJson();
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
final _this = this as ConversationMetadata;
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is ConversationMetadata &&
|
||||
(identical(other.id, _this.id) || other.id == _this.id) &&
|
||||
(identical(other.projectId, _this.projectId) ||
|
||||
other.projectId == _this.projectId) &&
|
||||
(identical(other.title, _this.title) ||
|
||||
other.title == _this.title) &&
|
||||
(identical(other.createdAt, _this.createdAt) ||
|
||||
other.createdAt == _this.createdAt) &&
|
||||
(identical(other.updatedAt, _this.updatedAt) ||
|
||||
other.updatedAt == _this.updatedAt) &&
|
||||
(identical(other.providerId, _this.providerId) ||
|
||||
other.providerId == _this.providerId) &&
|
||||
(identical(other.modelId, _this.modelId) ||
|
||||
other.modelId == _this.modelId) &&
|
||||
(identical(other.timelineId, _this.timelineId) ||
|
||||
other.timelineId == _this.timelineId) &&
|
||||
(identical(other.pending, _this.pending) ||
|
||||
other.pending == _this.pending) &&
|
||||
const DeepCollectionEquality().equals(
|
||||
other.responseDurationsMs,
|
||||
_this.responseDurationsMs,
|
||||
));
|
||||
}
|
||||
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode {
|
||||
final _this = this as ConversationMetadata;
|
||||
return Object.hash(
|
||||
runtimeType,
|
||||
_this.id,
|
||||
_this.projectId,
|
||||
_this.title,
|
||||
_this.createdAt,
|
||||
_this.updatedAt,
|
||||
_this.providerId,
|
||||
_this.modelId,
|
||||
_this.timelineId,
|
||||
_this.pending,
|
||||
const DeepCollectionEquality().hash(_this.responseDurationsMs),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
final _this = this as ConversationMetadata;
|
||||
return 'ConversationMetadata(id: ${_this.id}, projectId: ${_this.projectId}, title: ${_this.title}, createdAt: ${_this.createdAt}, updatedAt: ${_this.updatedAt}, providerId: ${_this.providerId}, modelId: ${_this.modelId}, timelineId: ${_this.timelineId}, pending: ${_this.pending}, responseDurationsMs: ${_this.responseDurationsMs})';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class $ConversationMetadataCopyWith<$Res> {
|
||||
factory $ConversationMetadataCopyWith(
|
||||
ConversationMetadata value,
|
||||
$Res Function(ConversationMetadata) _then,
|
||||
) = _$ConversationMetadataCopyWithImpl;
|
||||
@useResult
|
||||
$Res call({
|
||||
String id,
|
||||
String projectId,
|
||||
String title,
|
||||
DateTime createdAt,
|
||||
DateTime updatedAt,
|
||||
String providerId,
|
||||
String modelId,
|
||||
String timelineId,
|
||||
@JsonKey(required: true, disallowNullValue: true) bool pending,
|
||||
@JsonKey(required: true, disallowNullValue: true)
|
||||
List<int?> responseDurationsMs,
|
||||
});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$ConversationMetadataCopyWithImpl<$Res>
|
||||
implements $ConversationMetadataCopyWith<$Res> {
|
||||
_$ConversationMetadataCopyWithImpl(this._self, this._then);
|
||||
|
||||
final ConversationMetadata _self;
|
||||
final $Res Function(ConversationMetadata) _then;
|
||||
|
||||
/// Create a copy of ConversationMetadata
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? id = null,
|
||||
Object? projectId = null,
|
||||
Object? title = null,
|
||||
Object? createdAt = null,
|
||||
Object? updatedAt = null,
|
||||
Object? providerId = null,
|
||||
Object? modelId = null,
|
||||
Object? timelineId = null,
|
||||
Object? pending = null,
|
||||
Object? responseDurationsMs = null,
|
||||
}) {
|
||||
return _then(
|
||||
ConversationMetadata(
|
||||
id: null == id
|
||||
? _self.id
|
||||
: id // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
projectId: null == projectId
|
||||
? _self.projectId
|
||||
: projectId // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
title: null == title
|
||||
? _self.title
|
||||
: title // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
createdAt: null == createdAt
|
||||
? _self.createdAt
|
||||
: createdAt // ignore: cast_nullable_to_non_nullable
|
||||
as DateTime,
|
||||
updatedAt: null == updatedAt
|
||||
? _self.updatedAt
|
||||
: updatedAt // ignore: cast_nullable_to_non_nullable
|
||||
as DateTime,
|
||||
providerId: null == providerId
|
||||
? _self.providerId
|
||||
: providerId // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
modelId: null == modelId
|
||||
? _self.modelId
|
||||
: modelId // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
timelineId: null == timelineId
|
||||
? _self.timelineId
|
||||
: timelineId // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
pending: null == pending
|
||||
? _self.pending
|
||||
: pending // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
responseDurationsMs: null == responseDurationsMs
|
||||
? _self.responseDurationsMs
|
||||
: responseDurationsMs // ignore: cast_nullable_to_non_nullable
|
||||
as List<int?>,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// Adds pattern-matching-related methods to [ConversationMetadata].
|
||||
extension ConversationMetadataPatterns on ConversationMetadata {
|
||||
/// 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(_ConversationMetadata value)? $default, {
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _ConversationMetadata() 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(_ConversationMetadata value) $default,
|
||||
) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _ConversationMetadata():
|
||||
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(_ConversationMetadata value)? $default,
|
||||
) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _ConversationMetadata() 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 id,
|
||||
String projectId,
|
||||
String title,
|
||||
DateTime createdAt,
|
||||
DateTime updatedAt,
|
||||
String providerId,
|
||||
String modelId,
|
||||
String timelineId,
|
||||
@JsonKey(required: true, disallowNullValue: true) bool pending,
|
||||
@JsonKey(required: true, disallowNullValue: true)
|
||||
List<int?> responseDurationsMs,
|
||||
)?
|
||||
$default, {
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _ConversationMetadata() when $default != null:
|
||||
return $default(
|
||||
_that.id,
|
||||
_that.projectId,
|
||||
_that.title,
|
||||
_that.createdAt,
|
||||
_that.updatedAt,
|
||||
_that.providerId,
|
||||
_that.modelId,
|
||||
_that.timelineId,
|
||||
_that.pending,
|
||||
_that.responseDurationsMs,
|
||||
);
|
||||
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 id,
|
||||
String projectId,
|
||||
String title,
|
||||
DateTime createdAt,
|
||||
DateTime updatedAt,
|
||||
String providerId,
|
||||
String modelId,
|
||||
String timelineId,
|
||||
@JsonKey(required: true, disallowNullValue: true) bool pending,
|
||||
@JsonKey(required: true, disallowNullValue: true)
|
||||
List<int?> responseDurationsMs,
|
||||
)
|
||||
$default,
|
||||
) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _ConversationMetadata():
|
||||
return $default(
|
||||
_that.id,
|
||||
_that.projectId,
|
||||
_that.title,
|
||||
_that.createdAt,
|
||||
_that.updatedAt,
|
||||
_that.providerId,
|
||||
_that.modelId,
|
||||
_that.timelineId,
|
||||
_that.pending,
|
||||
_that.responseDurationsMs,
|
||||
);
|
||||
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 id,
|
||||
String projectId,
|
||||
String title,
|
||||
DateTime createdAt,
|
||||
DateTime updatedAt,
|
||||
String providerId,
|
||||
String modelId,
|
||||
String timelineId,
|
||||
@JsonKey(required: true, disallowNullValue: true) bool pending,
|
||||
@JsonKey(required: true, disallowNullValue: true)
|
||||
List<int?> responseDurationsMs,
|
||||
)?
|
||||
$default,
|
||||
) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _ConversationMetadata() when $default != null:
|
||||
return $default(
|
||||
_that.id,
|
||||
_that.projectId,
|
||||
_that.title,
|
||||
_that.createdAt,
|
||||
_that.updatedAt,
|
||||
_that.providerId,
|
||||
_that.modelId,
|
||||
_that.timelineId,
|
||||
_that.pending,
|
||||
_that.responseDurationsMs,
|
||||
);
|
||||
case _:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _ConversationMetadata implements ConversationMetadata {
|
||||
const _ConversationMetadata({
|
||||
required this.id,
|
||||
required this.projectId,
|
||||
required this.title,
|
||||
required this.createdAt,
|
||||
required this.updatedAt,
|
||||
required this.providerId,
|
||||
required this.modelId,
|
||||
required this.timelineId,
|
||||
@JsonKey(required: true, disallowNullValue: true) required this.pending,
|
||||
@JsonKey(required: true, disallowNullValue: true)
|
||||
required List<int?> responseDurationsMs,
|
||||
}) : _responseDurationsMs = responseDurationsMs;
|
||||
factory _ConversationMetadata.fromJson(Map<String, dynamic> json) =>
|
||||
_$ConversationMetadataFromJson(json);
|
||||
|
||||
@override
|
||||
final String id;
|
||||
@override
|
||||
final String projectId;
|
||||
@override
|
||||
final String title;
|
||||
@override
|
||||
final DateTime createdAt;
|
||||
@override
|
||||
final DateTime updatedAt;
|
||||
@override
|
||||
final String providerId;
|
||||
@override
|
||||
final String modelId;
|
||||
@override
|
||||
final String timelineId;
|
||||
@override
|
||||
@JsonKey(required: true, disallowNullValue: true)
|
||||
final bool pending;
|
||||
final List<int?> _responseDurationsMs;
|
||||
@override
|
||||
@JsonKey(required: true, disallowNullValue: true)
|
||||
List<int?> get responseDurationsMs {
|
||||
if (_responseDurationsMs is EqualUnmodifiableListView)
|
||||
return _responseDurationsMs;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_responseDurationsMs);
|
||||
}
|
||||
|
||||
/// Create a copy of ConversationMetadata
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$ConversationMetadataCopyWith<_ConversationMetadata> get copyWith =>
|
||||
__$ConversationMetadataCopyWithImpl<_ConversationMetadata>(
|
||||
this,
|
||||
_$identity,
|
||||
);
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
return _$ConversationMetadataToJson(this);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _ConversationMetadata &&
|
||||
(identical(other.id, id) || other.id == id) &&
|
||||
(identical(other.projectId, projectId) ||
|
||||
other.projectId == projectId) &&
|
||||
(identical(other.title, title) || other.title == title) &&
|
||||
(identical(other.createdAt, createdAt) ||
|
||||
other.createdAt == createdAt) &&
|
||||
(identical(other.updatedAt, updatedAt) ||
|
||||
other.updatedAt == updatedAt) &&
|
||||
(identical(other.providerId, providerId) ||
|
||||
other.providerId == providerId) &&
|
||||
(identical(other.modelId, modelId) || other.modelId == modelId) &&
|
||||
(identical(other.timelineId, timelineId) ||
|
||||
other.timelineId == timelineId) &&
|
||||
(identical(other.pending, pending) || other.pending == pending) &&
|
||||
const DeepCollectionEquality().equals(
|
||||
other.responseDurationsMs,
|
||||
_responseDurationsMs,
|
||||
));
|
||||
}
|
||||
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode {
|
||||
return Object.hash(
|
||||
runtimeType,
|
||||
id,
|
||||
projectId,
|
||||
title,
|
||||
createdAt,
|
||||
updatedAt,
|
||||
providerId,
|
||||
modelId,
|
||||
timelineId,
|
||||
pending,
|
||||
const DeepCollectionEquality().hash(_responseDurationsMs),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'ConversationMetadata(id: $id, projectId: $projectId, title: $title, createdAt: $createdAt, updatedAt: $updatedAt, providerId: $providerId, modelId: $modelId, timelineId: $timelineId, pending: $pending, responseDurationsMs: $responseDurationsMs)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class _$ConversationMetadataCopyWith<$Res>
|
||||
implements $ConversationMetadataCopyWith<$Res> {
|
||||
factory _$ConversationMetadataCopyWith(
|
||||
_ConversationMetadata value,
|
||||
$Res Function(_ConversationMetadata) _then,
|
||||
) = __$ConversationMetadataCopyWithImpl;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({
|
||||
String id,
|
||||
String projectId,
|
||||
String title,
|
||||
DateTime createdAt,
|
||||
DateTime updatedAt,
|
||||
String providerId,
|
||||
String modelId,
|
||||
String timelineId,
|
||||
@JsonKey(required: true, disallowNullValue: true) bool pending,
|
||||
@JsonKey(required: true, disallowNullValue: true)
|
||||
List<int?> responseDurationsMs,
|
||||
});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$ConversationMetadataCopyWithImpl<$Res>
|
||||
implements _$ConversationMetadataCopyWith<$Res> {
|
||||
__$ConversationMetadataCopyWithImpl(this._self, this._then);
|
||||
|
||||
final _ConversationMetadata _self;
|
||||
final $Res Function(_ConversationMetadata) _then;
|
||||
|
||||
/// Create a copy of ConversationMetadata
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$Res call({
|
||||
Object? id = null,
|
||||
Object? projectId = null,
|
||||
Object? title = null,
|
||||
Object? createdAt = null,
|
||||
Object? updatedAt = null,
|
||||
Object? providerId = null,
|
||||
Object? modelId = null,
|
||||
Object? timelineId = null,
|
||||
Object? pending = null,
|
||||
Object? responseDurationsMs = null,
|
||||
}) {
|
||||
return _then(
|
||||
_ConversationMetadata(
|
||||
id: null == id
|
||||
? _self.id
|
||||
: id // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
projectId: null == projectId
|
||||
? _self.projectId
|
||||
: projectId // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
title: null == title
|
||||
? _self.title
|
||||
: title // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
createdAt: null == createdAt
|
||||
? _self.createdAt
|
||||
: createdAt // ignore: cast_nullable_to_non_nullable
|
||||
as DateTime,
|
||||
updatedAt: null == updatedAt
|
||||
? _self.updatedAt
|
||||
: updatedAt // ignore: cast_nullable_to_non_nullable
|
||||
as DateTime,
|
||||
providerId: null == providerId
|
||||
? _self.providerId
|
||||
: providerId // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
modelId: null == modelId
|
||||
? _self.modelId
|
||||
: modelId // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
timelineId: null == timelineId
|
||||
? _self.timelineId
|
||||
: timelineId // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
pending: null == pending
|
||||
? _self.pending
|
||||
: pending // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
responseDurationsMs: null == responseDurationsMs
|
||||
? _self._responseDurationsMs
|
||||
: responseDurationsMs // ignore: cast_nullable_to_non_nullable
|
||||
as List<int?>,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user