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,344 @@
|
||||
// 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 'project_assets_changed.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// FreezedGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
T _$identity<T>(T value) => value;
|
||||
|
||||
/// @nodoc
|
||||
mixin _$ProjectAssetsChanged {
|
||||
String get projectId;
|
||||
List<AssetDocument> get assets;
|
||||
|
||||
/// Create a copy of ProjectAssetsChanged
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
$ProjectAssetsChangedCopyWith<ProjectAssetsChanged> get copyWith =>
|
||||
_$ProjectAssetsChangedCopyWithImpl<ProjectAssetsChanged>(
|
||||
this as ProjectAssetsChanged,
|
||||
_$identity,
|
||||
);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
final _this = this as ProjectAssetsChanged;
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is ProjectAssetsChanged &&
|
||||
(identical(other.projectId, _this.projectId) ||
|
||||
other.projectId == _this.projectId) &&
|
||||
const DeepCollectionEquality().equals(other.assets, _this.assets));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
final _this = this as ProjectAssetsChanged;
|
||||
return Object.hash(
|
||||
runtimeType,
|
||||
_this.projectId,
|
||||
const DeepCollectionEquality().hash(_this.assets),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
final _this = this as ProjectAssetsChanged;
|
||||
return 'ProjectAssetsChanged(projectId: ${_this.projectId}, assets: ${_this.assets})';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class $ProjectAssetsChangedCopyWith<$Res> {
|
||||
factory $ProjectAssetsChangedCopyWith(
|
||||
ProjectAssetsChanged value,
|
||||
$Res Function(ProjectAssetsChanged) _then,
|
||||
) = _$ProjectAssetsChangedCopyWithImpl;
|
||||
@useResult
|
||||
$Res call({String projectId, List<AssetDocument> assets});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$ProjectAssetsChangedCopyWithImpl<$Res>
|
||||
implements $ProjectAssetsChangedCopyWith<$Res> {
|
||||
_$ProjectAssetsChangedCopyWithImpl(this._self, this._then);
|
||||
|
||||
final ProjectAssetsChanged _self;
|
||||
final $Res Function(ProjectAssetsChanged) _then;
|
||||
|
||||
/// Create a copy of ProjectAssetsChanged
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({Object? projectId = null, Object? assets = null}) {
|
||||
return _then(
|
||||
ProjectAssetsChanged(
|
||||
null == projectId
|
||||
? _self.projectId
|
||||
: projectId // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
null == assets
|
||||
? _self.assets
|
||||
: assets // ignore: cast_nullable_to_non_nullable
|
||||
as List<AssetDocument>,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// Adds pattern-matching-related methods to [ProjectAssetsChanged].
|
||||
extension ProjectAssetsChangedPatterns on ProjectAssetsChanged {
|
||||
/// 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(_ProjectAssetsChanged value)? snapshot,
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _ProjectAssetsChanged() when snapshot != null:
|
||||
return snapshot(_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?>({
|
||||
required TResult Function(_ProjectAssetsChanged value) snapshot,
|
||||
}) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _ProjectAssetsChanged():
|
||||
return snapshot(_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(_ProjectAssetsChanged value)? snapshot,
|
||||
}) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _ProjectAssetsChanged() when snapshot != null:
|
||||
return snapshot(_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, List<AssetDocument> assets)? snapshot,
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _ProjectAssetsChanged() when snapshot != null:
|
||||
return snapshot(_that.projectId, _that.assets);
|
||||
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?>({
|
||||
required TResult Function(String projectId, List<AssetDocument> assets)
|
||||
snapshot,
|
||||
}) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _ProjectAssetsChanged():
|
||||
return snapshot(_that.projectId, _that.assets);
|
||||
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, List<AssetDocument> assets)? snapshot,
|
||||
}) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _ProjectAssetsChanged() when snapshot != null:
|
||||
return snapshot(_that.projectId, _that.assets);
|
||||
case _:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _ProjectAssetsChanged implements ProjectAssetsChanged {
|
||||
const _ProjectAssetsChanged(this.projectId, List<AssetDocument> assets)
|
||||
: _assets = assets;
|
||||
|
||||
@override
|
||||
final String projectId;
|
||||
final List<AssetDocument> _assets;
|
||||
@override
|
||||
List<AssetDocument> get assets {
|
||||
if (_assets is EqualUnmodifiableListView) return _assets;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_assets);
|
||||
}
|
||||
|
||||
/// Create a copy of ProjectAssetsChanged
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$ProjectAssetsChangedCopyWith<_ProjectAssetsChanged> get copyWith =>
|
||||
__$ProjectAssetsChangedCopyWithImpl<_ProjectAssetsChanged>(
|
||||
this,
|
||||
_$identity,
|
||||
);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _ProjectAssetsChanged &&
|
||||
(identical(other.projectId, projectId) ||
|
||||
other.projectId == projectId) &&
|
||||
const DeepCollectionEquality().equals(other.assets, _assets));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
return Object.hash(
|
||||
runtimeType,
|
||||
projectId,
|
||||
const DeepCollectionEquality().hash(_assets),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'ProjectAssetsChanged.snapshot(projectId: $projectId, assets: $assets)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class _$ProjectAssetsChangedCopyWith<$Res>
|
||||
implements $ProjectAssetsChangedCopyWith<$Res> {
|
||||
factory _$ProjectAssetsChangedCopyWith(
|
||||
_ProjectAssetsChanged value,
|
||||
$Res Function(_ProjectAssetsChanged) _then,
|
||||
) = __$ProjectAssetsChangedCopyWithImpl;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({String projectId, List<AssetDocument> assets});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$ProjectAssetsChangedCopyWithImpl<$Res>
|
||||
implements _$ProjectAssetsChangedCopyWith<$Res> {
|
||||
__$ProjectAssetsChangedCopyWithImpl(this._self, this._then);
|
||||
|
||||
final _ProjectAssetsChanged _self;
|
||||
final $Res Function(_ProjectAssetsChanged) _then;
|
||||
|
||||
/// Create a copy of ProjectAssetsChanged
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$Res call({Object? projectId = null, Object? assets = null}) {
|
||||
return _then(
|
||||
_ProjectAssetsChanged(
|
||||
null == projectId
|
||||
? _self.projectId
|
||||
: projectId // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
null == assets
|
||||
? _self._assets
|
||||
: assets // ignore: cast_nullable_to_non_nullable
|
||||
as List<AssetDocument>,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user