backend
This commit is contained in:
parent
193ae3b0ea
commit
3e374d24f6
13 changed files with 126 additions and 3 deletions
18
lib/features/home/data/models/image_model.dart
Normal file
18
lib/features/home/data/models/image_model.dart
Normal file
|
@ -0,0 +1,18 @@
|
|||
class ImageModel<T extends Comparable> {
|
||||
const ImageModel({
|
||||
required this.uri,
|
||||
required this.comparableIndex,
|
||||
required this.imageName,
|
||||
});
|
||||
|
||||
/// An image's target [Uri].
|
||||
///
|
||||
/// Storing an image's [ByteData] is more expensive, memory-wise.
|
||||
final Uri uri;
|
||||
|
||||
/// A unique identifier that can be used for indexing the image.
|
||||
final T comparableIndex;
|
||||
|
||||
/// Given name of the image.
|
||||
final String imageName;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue