2023-04-13 17:32:31 +02:00
|
|
|
import 'package:nc_photos/entity/collection_item.dart';
|
|
|
|
import 'package:nc_photos/entity/file_descriptor.dart';
|
|
|
|
import 'package:to_string/to_string.dart';
|
|
|
|
|
|
|
|
part 'basic_item.g.dart';
|
|
|
|
|
|
|
|
/// The basic form of [CollectionFileItem]
|
|
|
|
@toString
|
|
|
|
class BasicCollectionFileItem implements CollectionFileItem {
|
|
|
|
const BasicCollectionFileItem(this.file);
|
|
|
|
|
2024-02-16 18:57:48 +01:00
|
|
|
@override
|
|
|
|
BasicCollectionFileItem copyWith({
|
|
|
|
FileDescriptor? file,
|
|
|
|
}) {
|
|
|
|
return BasicCollectionFileItem(file ?? this.file);
|
|
|
|
}
|
|
|
|
|
2023-04-13 17:32:31 +02:00
|
|
|
@override
|
|
|
|
String toString() => _$toString();
|
|
|
|
|
|
|
|
@override
|
|
|
|
final FileDescriptor file;
|
|
|
|
}
|