2023-04-13 17:32:31 +02:00
|
|
|
import 'package:nc_photos/entity/file_descriptor.dart';
|
2024-10-30 17:30:12 +01:00
|
|
|
import 'package:np_gps_map/np_gps_map.dart';
|
2023-04-13 17:32:31 +02:00
|
|
|
|
|
|
|
/// An item in a [Collection]
|
|
|
|
abstract class CollectionItem {
|
|
|
|
const CollectionItem();
|
|
|
|
}
|
|
|
|
|
|
|
|
abstract class CollectionFileItem implements CollectionItem {
|
|
|
|
const CollectionFileItem();
|
|
|
|
|
2024-02-16 18:57:48 +01:00
|
|
|
CollectionFileItem copyWith({
|
|
|
|
FileDescriptor? file,
|
|
|
|
});
|
|
|
|
|
2023-04-13 17:32:31 +02:00
|
|
|
FileDescriptor get file;
|
|
|
|
}
|
|
|
|
|
|
|
|
abstract class CollectionLabelItem implements CollectionItem {
|
|
|
|
const CollectionLabelItem();
|
|
|
|
|
|
|
|
/// An object used to identify this instance
|
|
|
|
///
|
|
|
|
/// [id] should be unique and stable
|
|
|
|
Object get id;
|
|
|
|
String get text;
|
|
|
|
}
|
2024-10-30 17:30:12 +01:00
|
|
|
|
|
|
|
abstract class CollectionMapItem implements CollectionItem {
|
|
|
|
const CollectionMapItem();
|
|
|
|
|
|
|
|
/// An object used to identify this instance
|
|
|
|
///
|
|
|
|
/// [id] should be unique and stable
|
|
|
|
Object get id;
|
|
|
|
CameraPosition get location;
|
|
|
|
}
|