mc_gallery/lib/features/home/data/models/image_model.dart
2022-12-21 22:47:09 +01:00

18 lines
403 B
Dart

class ImageModel {
const ImageModel({
required this.uri,
required this.imageIndex,
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 int imageIndex;
/// Given name of the image.
final String imageName;
}