This commit is contained in:
Mehul Ahal 2022-12-20 20:29:46 +01:00
parent 193ae3b0ea
commit 3e374d24f6
13 changed files with 126 additions and 3 deletions

View 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;
}