mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 17:26:18 +01:00
24 lines
578 B
Dart
24 lines
578 B
Dart
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);
|
|
|
|
@override
|
|
BasicCollectionFileItem copyWith({
|
|
FileDescriptor? file,
|
|
}) {
|
|
return BasicCollectionFileItem(file ?? this.file);
|
|
}
|
|
|
|
@override
|
|
String toString() => _$toString();
|
|
|
|
@override
|
|
final FileDescriptor file;
|
|
}
|