2022-07-06 23:12:55 +02:00
|
|
|
import 'package:equatable/equatable.dart';
|
|
|
|
import 'package:photo_manager/photo_manager.dart';
|
|
|
|
|
|
|
|
class ErrorUploadAsset extends Equatable {
|
|
|
|
final String id;
|
|
|
|
final DateTime createdAt;
|
|
|
|
final String fileName;
|
|
|
|
final String fileType;
|
|
|
|
final AssetEntity asset;
|
|
|
|
final String errorMessage;
|
|
|
|
|
|
|
|
const ErrorUploadAsset({
|
|
|
|
required this.id,
|
|
|
|
required this.createdAt,
|
|
|
|
required this.fileName,
|
|
|
|
required this.fileType,
|
|
|
|
required this.asset,
|
|
|
|
required this.errorMessage,
|
|
|
|
});
|
|
|
|
|
|
|
|
ErrorUploadAsset copyWith({
|
|
|
|
String? id,
|
|
|
|
DateTime? createdAt,
|
|
|
|
String? fileName,
|
|
|
|
String? fileType,
|
|
|
|
AssetEntity? asset,
|
|
|
|
String? errorMessage,
|
|
|
|
}) {
|
|
|
|
return ErrorUploadAsset(
|
|
|
|
id: id ?? this.id,
|
|
|
|
createdAt: createdAt ?? this.createdAt,
|
|
|
|
fileName: fileName ?? this.fileName,
|
|
|
|
fileType: fileType ?? this.fileType,
|
|
|
|
asset: asset ?? this.asset,
|
|
|
|
errorMessage: errorMessage ?? this.errorMessage,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
String toString() {
|
|
|
|
return 'ErrorUploadAsset(id: $id, createdAt: $createdAt, fileName: $fileName, fileType: $fileType, asset: $asset, errorMessage: $errorMessage)';
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
List<Object> get props {
|
|
|
|
return [
|
|
|
|
id,
|
2022-10-25 16:51:03 +02:00
|
|
|
createdAt,
|
2022-07-06 23:12:55 +02:00
|
|
|
fileName,
|
|
|
|
fileType,
|
2022-10-25 16:51:03 +02:00
|
|
|
asset,
|
2022-07-06 23:12:55 +02:00
|
|
|
errorMessage,
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|